jptrsn / zip-captions

Open source browser closed-caption generator
https://zipcaptions.app
GNU General Public License v3.0
45 stars 7 forks source link

Feature/transcript follow up #127

Closed jptrsn closed 2 months ago

jptrsn commented 2 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 2 months ago

Walkthrough

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.

Changes

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.

Sequence Diagram(s)

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?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.