Skip to content

TT-7210, TT-7243, TT-7108 Enhance MediaRecord and WSAudioPlayer components with waveform duration management and UI improvements#346

Merged
sarahentzel merged 1 commit into
developfrom
TT-7210-record-step
Jun 9, 2026
Merged

TT-7210, TT-7243, TT-7108 Enhance MediaRecord and WSAudioPlayer components with waveform duration management and UI improvements#346
sarahentzel merged 1 commit into
developfrom
TT-7210-record-step

Conversation

@gtryus

@gtryus gtryus commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
  • Added waveform duration state management in MediaRecord to control save functionality based on audio duration.
  • Updated MediaRecord to handle waveform duration changes and reflect this in the save button state.
  • Improved UI responsiveness in WSAudioPlayer and SelectVoice components by adjusting layout properties and ensuring proper text wrapping.
  • Introduced new tests for MediaRecord to validate save gating behavior based on waveform duration.

…nents with waveform duration management and UI improvements

- Added waveform duration state management in MediaRecord to control save functionality based on audio duration.
- Updated MediaRecord to handle waveform duration changes and reflect this in the save button state.
- Improved UI responsiveness in WSAudioPlayer and SelectVoice components by adjusting layout properties and ensuring proper text wrapping.
- Introduced new tests for MediaRecord to validate save gating behavior based on waveform duration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the renderer’s audio recording/editing flow by tracking waveform duration to prevent saving “empty” audio, and improves several dialog/player layouts to better handle narrow/mobile widths and long text.

Changes:

  • Added waveformDuration state in MediaRecord to gate save behavior (including disabling waveform save when duration is 0).
  • Updated WSAudioPlayer, BigDialog, and SelectVoice layouts to avoid horizontal overflow and improve text wrapping.
  • Added unit tests for MediaRecord to validate save gating based on waveform duration.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/renderer/src/hoc/BigDialog.tsx Makes dialog title/description layout shrinkable and enables word wrapping to prevent overflow.
src/renderer/src/components/WSAudioPlayer.tsx Improves AI overlay text wrapping and adjusts voice dialog sizing/behavior for mobile layouts; routes change handling through handleChanged().
src/renderer/src/components/MediaRecord.tsx Introduces waveform duration tracking to prevent save when duration is 0 and resets duration on reset.
src/renderer/src/components/MediaRecord.test.tsx Adds tests ensuring save is only enabled when waveform duration is positive.
src/renderer/src/business/voice/SelectVoice.tsx Improves responsiveness and wrapping for voice selection UI.

</Typography>
<Divider sx={{ m: 1 }} />
<ActionRow>
<ActionRow sx={{ flexWrap: 'wrap', gap: 1, minWidth: 0 }}>
@sarahentzel sarahentzel merged commit ed5fd60 into develop Jun 9, 2026
3 checks passed
@sarahentzel sarahentzel deleted the TT-7210-record-step branch June 9, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants