Closed jptrsn closed 2 months ago
The changes encompass a comprehensive refactoring of the Angular application, focusing on the action management system, particularly within the NgRx store. The action creators have been consolidated into a structured format using createActionGroup
, enhancing organization and readability. Additionally, various components have been updated to reflect these changes, including modifications to styles, HTML templates, and localization files, resulting in improved user interface and experience.
Files | Change Summary |
---|---|
packages/client/src/app/actions/recogntion.actions.ts |
Refactored action creators into createActionGroup , introduced new actions for transcript database management, and updated existing action names for clarity. |
packages/client/src/app/app.component.scss |
Added styling for app-header with a new z-index and box shadow for improved visibility. |
packages/client/src/app/app.component.ts |
Updated import path for RecognitionActions and modified method calls to reflect new action names. |
packages/client/src/app/app.module.ts |
Added SupporterRenderComponent to module declarations and reorganized import statements for clarity. |
packages/client/src/app/components/footer/footer.component.html |
Adjusted anchor element classes for responsiveness and simplified copyright text display. |
packages/client/src/app/components/header/header.component.html |
Enhanced UI with new background color, conditional visibility for titles, and refined logic for authentication-based menu items. |
packages/client/src/app/components/header/header.component.ts |
Added isViewingBroadcast property to track broadcast viewing state and updated navigation items for better access control. |
packages/client/src/app/components/header/header.model.ts |
Introduced optional loginRequired property to MenuItem interface for better menu item visibility control. |
packages/client/src/app/components/home/home.component.spec.ts |
Updated import path for RecognitionActions and modified method calls in tests to reflect new action names. |
packages/client/src/app/components/obs-connection-status/obs-connection-status.component.ts |
Updated import path for RecognitionActions and simplified method calls for dispatching actions. |
packages/client/src/app/components/supporter-render/supporter-render.component.html |
Introduced new HTML template for rendering supporter status with dynamic feedback. |
packages/client/src/app/components/supporter-render/supporter-render.component.spec.ts |
Created unit test suite for SupporterRenderComponent with a basic test case. |
packages/client/src/app/components/supporter-render/supporter-render.component.ts |
Implemented SupporterRenderComponent for dynamic display of user support status. |
packages/client/src/app/components/welcome-splash/welcome-splash.component.html |
Replaced button logic with <app-supporter-render> component for improved structure. |
packages/client/src/app/components/welcome-splash/welcome-splash.component.ts |
Removed isMobile property to streamline component logic. |
packages/client/src/app/directives/background-magnitude.directive.ts |
Added maxValue input property for configurable magnitude handling and refined gradient generation logic. |
packages/client/src/app/effects/audio-stream.effects.ts |
Renamed action creators for clarity in audio stream management. |
packages/client/src/app/effects/recognition.effects.ts |
Updated action names and added new effects for improved recognition handling. |
packages/client/src/app/effects/settings.effects.ts |
Changed import path for RecognitionActions for better organization. |
packages/client/src/app/effects/user.effects.ts |
Enhanced account deletion process to ensure associated data is purged. |
packages/client/src/app/models/recognition.model.ts |
Removed export statement for RecognitionActions , indicating a shift in action management. |
packages/client/src/app/modules/auth/components/login/login.component.ts |
Adjusted navigation logic post-login for improved user experience. |
packages/client/src/app/modules/media/components/audio-input-enable/audio-input-enable.component.html |
Modified button class attributes for styling consistency. |
packages/client/src/app/modules/media/components/audio-input-enable/audio-input-enable.component.ts |
Added Router service for navigation and improved audio stream connection logic. |
packages/client/src/app/modules/media/components/recognition-control-sidebar/recognition-control-sidebar.component.html |
Modified button rendering logic based on recognition state. |
packages/client/src/app/modules/media/components/recognition-control-sidebar/recognition-control-sidebar.component.ts |
Updated action names for clarity in recognition state management. |
packages/client/src/app/modules/media/components/recognition-enable/recognition-enable.component.ts |
Added Router service to constructor and refined toggleState logic. |
packages/client/src/app/modules/media/components/recognized-text/recognized-text.component.ts |
Introduced recognitionPaused property and resume method for better state management. |
packages/client/src/app/modules/media/services/recognition.service.ts |
Enhanced error handling and control flow for speech recognition. |
packages/client/src/app/modules/media/services/transcription.service.ts |
Altered finalizeTranscript method return type and added deleteDatabase method for improved functionality. |
packages/client/src/app/reducers/recognition.reducer.ts |
Updated action handling to reflect new action names and added new action for deleting transcript database. |
packages/client/src/app/selectors/user.selector.ts |
Added new selector function selectUserContributes for improved user contribution assessment. |
packages/client/src/app/services/local-db/local-db.service.ts |
Introduced deleteDatabase method for managing database lifecycle. |
packages/client/src/assets/i18n/*.json |
Enhanced localization files with new keys and translations related to user accounts, transcription services, and community support. |
packages/client/src/styles.scss |
Added new CSS animation and class for a pulsing effect to enhance user interaction. |
sequenceDiagram
participant User
participant AppComponent
participant RecognitionActions
participant Store
User->>AppComponent: Initiate recognition
AppComponent->>Store: Dispatch RecognitionActions.connect
Store->>RecognitionActions: Handle connection
RecognitionActions-->>Store: Connection success
Store->>User: Update UI with recognition status
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
SupporterRenderComponent
to display user support status.Bug Fixes
Documentation
Style