feat: use sexier audio waveform #265
Reference in New Issue
Block a user
Delete Branch "worktree-starry-gliding-hennessy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #261
Summary by CodeRabbit
New Features
Refactor
Chores
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
70e916ef-44db-464c-9305-3122b1f98244📥 Commits
Reviewing files that changed from the base of the PR and between
8ed8e2cccbandba82729f27.📒 Files selected for processing (1)
js/desktop/src/components/audio/centered-waveform.tsx🚧 Files skipped from review as they are similar to previous changes (1)
📝 Walkthrough
Walkthrough
This PR replaces the three-bar AudioLevelBars visualizer with a new canvas-based CenteredWaveform (frequency-domain, log-spaced bars, asymmetric smoothing, DPR-aware). It also removes the local useRecordingMode hook and imports RecordingMode from the media-settings store; UI consumers are updated to the new component.
Changes
Audio Waveform Visualization Replacement
js/desktop/src/components/audio/centered-waveform.tsxcurrentColorrendering, and DPR-aware backing store updates.js/desktop/src/hooks/use-recording-mode.ts,js/desktop/src/features/compose/use-recorder.tsRecordingModetype anduseRecordingModehook removed fromuse-recording-mode.ts; import source updated to@/stores/media-settings-storeinuse-recorder.ts.js/desktop/src/features/compose/recording-overlay.tsxRecordingModefrom media-settings store; replacesAudioLevelBarswithCenteredWaveformin review playback and live recording paths. RefactorsReviewPlaybackaudio element fromuseReftouseState-backed setter pattern.js/desktop/src/features/particles/media-particle-view.tsx,js/desktop/src/features/settings/audio-video-settings-page.tsxCenteredWaveforminstead ofAudioLevelBars. Settings page reworksInlineLevelMeterto show a muted placeholder when no audio, or centered waveform with fixed dimensions when available; small comment tweak in particle view.Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~22 minutes
Possibly related issues
#261: Sexier audio waveform — This PR implements the new centered waveform visualization and replaces all instances of the old audio level bars, aligning with the requested UI enhancement.Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (1 warning, 1 inconclusive)
#261by implementing a new audio waveform visualization component, but linked issue lacks detailed requirements to fully validate implementation completeness.#261to verify that all specified requirements for the audio waveform are met by the CenteredWaveform implementation.✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
worktree-starry-gliding-hennessyComment
@coderabbitai helpto get the list of available commands and usage tips.