Commit Graph
24 Commits
Author SHA1 Message Date
amirhosein mazaheri 58c3c20933 feat(voice): enhance audio stream lifecycle with sent_bytes validation and ref-attributed idle tracking 2026-10-12 18:51:05 +03:30
amirhosein mazaheri 89c6bc6d44 build: adjust initial and component style budgets in angular.json 2026-10-12 17:52:07 +03:30
amirhosein mazaheri 97427a1581 fix(voice): handle exact consumed-sample progress and direct native-rate playback 2026-10-12 17:51:52 +03:30
PeymanHonarjoo b3eb4a6de5 feat(settings): adjust document actions layout to prevent button wrapping 2026-10-12 17:30:23 +03:30
PeymanHonarjoo 9e8dd33927 feat: implement answer-limited state handling in voice stream service
- Introduced handling for 'answer_limited' events from the server, allowing the UI to reflect when an assistant's answer has reached the output-token limit.
- Updated the VoiceStreamService to manage limited and interrupted turns with bounded memory.
- Enhanced the transcript component to display appropriate messages for limited answers, including a fallback for unavailable text.
- Added styles to visually indicate limited answers in the UI.
- Created unit tests for the new functionality, ensuring correct behavior for limited answers and their presentation.
2026-10-12 16:51:04 +03:30
PeymanHonarjoo 0af55f52a3 feat(uuid): implement UUID generation for non-secure contexts and replace crypto.randomUUID() usage 2026-10-12 16:50:52 +03:30
PeymanHonarjoo e268631386 feat(voice): add audio cues for session lifecycle
Introduce VoiceCueService to play 'ready' and 'end' audio cues during
voice stream sessions. This provides auditory feedback when a session
starts and concludes.
2026-10-11 17:25:44 +03:30
PeymanHonarjoo a6c466e1ba feat(settings): implement document removal and responsive table layout
Add a confirmation workflow for removing documents and refactor the
documents table to support responsive layouts. The table now uses
a fixed layout with defined column widths and handles overflow on
mobile devices. The redundant filename column has been removed.
2026-10-11 17:25:28 +03:30
PeymanHonarjoo 2ac7a099b5 feat(ui): add ngx-toastr with zoneless compatibility
Add ngx-toastr and a proxy-based ToastrService wrapper that
manually triggers appRef.tick() to ensure toast notifications
render correctly in a zoneless change detection environment.
2026-10-11 17:24:52 +03:30
PeymanHonarjoo c1e7a8ac5a feat(sidebar): implement smooth expansion animations and RTL support
Add staggered transitions to sidebar labels to prevent text reflow during expansion. Update account menu to RTL direction and localize logout text. Refine collapsed sidebar layout for improved icon alignment.
2026-10-11 17:23:34 +03:30
PeymanHonarjoo e0b22868f2 refactor(ui): remove unused sourceKind and update text in chat questions 2026-10-11 11:01:27 +03:30
PeymanHonarjoo 28590c6dce refactor: overhaul home UI and audio playback reliability
Redesign the home page and voice stream panel into a compact dock
layout to improve the chat experience. Implement a flush mechanism in
the PCM playback worklet to handle the resampler tail, preventing
premature session termination due to phantom outstanding playback.
Fix document filter visibility in settings to ensure controls remain
accessible when no results match, and refactor transcript insertion
to maintain correct user/assistant ordering.
2026-10-10 17:47:51 +03:30
PeymanHonarjoo be17544f2d feat(voice): enhance streaming engine and improve system reliability
Improve the PCM playback worklet with robust resampling and buffer
management. Refactor the voice-stream service for better session
teardown and error handling. Fix authentication issues by enabling
credentials in HttpService and using relative URLs. Add Jalali date
support and an AI model configuration tab in settings. Enhance
diagnostics for voice transport and the audio engine.
2026-10-10 15:12:57 +03:30
Peyman Honarjoo ff7fcbc4bb build(ui): expand application shell and implement administrative dashboard pages
This commit significantly expands the application's routing, navigation, and administrative capabilities. It introduces several new functional modules and refines the core layout for a more professional, dashboard-oriented experience.

- **Routing & Navigation**:
  - Added routes for `wallboard`, `call-center`, `call-center/calls`, and `chat-questions`.
  - Updated `SidebarComponent` to include all new navigation items.
  - Enhanced `LayoutComponent` with dynamic navigation based on user roles (admin vs. user).
- **New Administrative Pages**:
  - `WallboardPage`: Implements a real-time KPI dashboard with call activity trends and outcome distributions.
  - `CallCenterPage`: Provides a symbolic interface for managing call center connectivity and synchronization.
  - `CallCenterCallsPage`: Implements a call history retrieval interface with filtering capabilities.
  - `ChatQuestionsPage`: Adds a module for reviewing user questions from web and mobile channels.
- **Core Infrastructure & Refinement**:
  - Updated `AppConfig` to include an `APP_INITIALIZER` for validating user identity via `AuthService` on startup.
  - Refined `HomeComponent` layout to a "Claude-style" continuous chat column.
  - Implemented global themed scrollbars and integrated the 'Lahze' font family.
  - Added `proxy.conf.json` and updated `angular.json` to support local backend development.
- **Documentation**:
  - Added comprehensive API handoff guides for frontend-backend connection and MVP API catalog.
2026-10-10 00:20:00 +03:30
Peyman Honarjoo 0b5a882ecb feat(reports): implement reports page and data visualization components
Implement a comprehensive reports dashboard including user question
summaries, AI performance metrics, and usage trends. This includes
the creation of several reusable chart components and supporting
services.

- Add `ReportsPage` with tabbed navigation for questions and performance
- Implement `ReportsService` with mock data support for rapid development
- Create reusable UI components: `BarChartComponent`, `DoughnutChartComponent`, and `LineChartComponent`
- Add `format.util.ts` for Persian digit and number formatting
- Integrate 'Lahze' font family and add font assets
- Add unit tests for `ReportsPage` and `ReportsService`
2026-10-09 17:48:18 +03:30
PeymanHonarjoo 72e7d0a007 refactor(core): improve auth flow and update service configurations
Refactor authentication handling and update environment-specific
configurations for local development.

- Update `LayoutComponent` to handle asynchronous logout and redirect
  to login page.
- Update `LoginPage` to navigate to home after successful submission.
- Hardcode API and image URLs to local development IP in `HttpService`
  and `VoiceStreamConfig`.
- Adjust typing animation delay in `HomePage` for more natural feel.
- Comment out unused settings items and update `AiChatInputComponent`
  border radius.
2026-10-08 13:45:30 +03:30
PeymanHonarjoo f6ce43453a feat(voice): implement real-time voice-to-voice streaming engine
Introduce a complete low-level audio processing and streaming pipeline
for live voice conversations.

- Implement `VoiceAudioEngine` using `AudioWorklet` for low-latency
  PCM16 capture and playback.
- Add `pcm-capture` and `pcm-playback` worklets for high-performance
  audio processing outside the main thread.
- Implement `VoiceStreamService` to manage the voice-to-voice state
  machine (LISTENING, PROCESSING, SPEAKING, INTERRUPTED).
- Add `VoiceApiService` for managing conversation and session lifecycle
  via REST and WebSocket.
- Create `VoiceStreamPanelComponent` to display real-time transcripts,
  status indicators, and the animated voice orb.
- Integrate voice streaming into the `AiChatInputComponent` with
  support for seamless UI transitions between text and voice modes.
2026-10-08 12:52:29 +03:30
PeymanHonarjoo 447849289e feat(auth): implement login page and authentication flow
Implement a complete authentication system including a new login page,
updated authentication service, and conditional routing.

- Add `LoginPage` component with animated UI and form validation
- Update `AuthService` to handle user sessions, CSRF tokens, and
  enhanced user data structures
- Implement conditional rendering in `App` component based on
  authentication state
- Add `postRaw` and `getRaw` methods to `HttpService` for direct
  API interaction
- Update routing to include login path and prepare for auth guards
- Add rate limiting error handling (429) in `HttpService`
2026-10-08 12:49:13 +03:30
Peyman Honarjoo 4db40bfc64 style(settings): update dark mode styles and improve component usability
- Replace direct attribute selectors with :host-context for better encapsulation
- Add pointer cursor to tab buttons
- Update background colors for settings cards and content in dark mode
2026-10-07 23:03:03 +03:30
Peyman Honarjoo dd0a661919 refactor(ui): optimize layout responsiveness and component positioning
- Switch to dynamic viewport height (dvh) for better mobile support
- Implement fixed positioning for chat input using :host-context
- Simplify home page layout logic and remove redundant padding
- Disable Angular CLI analytics in configuration
2026-10-07 23:02:57 +03:30
PeymanHonarjoo d22cd65e28 feat(ui): implement voice interaction and enhanced home page animations
Introduces a comprehensive voice interaction system and upgrades the home page
experience with dynamic typing effects and improved layout transitions.

Key changes:
- Added `MicrophoneService` for managing media stream lifecycle and permissions.
- Added `SpeechRecognitionService` for continuous speech-to-text processing.
- Added `VoiceOrbService` using Three.js to render an animated audio-reactive
  orb.
- Enhanced `HomePage` with a randomized typing effect for welcome titles
  and improved state management for message transitions.
- Refactored `AiChatInputComponent` to support seamless switching between
  text composer and voice recording modes.
- Improved `SidebarComponent` navigation logic and styling.
- Updated global styles and component CSS for better theme consistency
  and smoother animations.
2026-10-06 17:27:52 +03:30
PeymanHonarjoo 3a0001c30d feat(ui): implement home page and ai chat input with voice orb
Implement the core user interface components including the home page,
a sophisticated AI chat input component, and a 3D voice visualization
service using Three.js.

- Add `HomePage` component with responsive layout and theme integration.
- Add `AiChatInputComponent` supporting text, file attachments, and
  voice mode transitions.
- Implement `VoiceOrbService` using Three.js to provide a reactive
  3D animated orb for voice interaction.
- Update routing to include the new home page.
- Refactor `SettingsPage` to clean up unused RTL logic and improve
  UI styling.
- Adjust Angular build budgets in `angular.json` to accommodate
  increased bundle size from Three.js.
2026-10-06 12:03:02 +03:30
PeymanHonarjoo 268a431c1e first commit 2026-10-06 09:57:33 +03:30
PeymanHonarjoo fe4dfeb2ec initial commit 2026-10-05 10:02:10 +03:30