Skip to content

feat(lyrics-review): Add Replace Segment Lyrics mode#389

Merged
beveradb merged 2 commits intomainfrom
feat/sess-20260212-1121-replace-lyrics-segments
Feb 12, 2026
Merged

feat(lyrics-review): Add Replace Segment Lyrics mode#389
beveradb merged 2 commits intomainfrom
feat/sess-20260212-1121-replace-lyrics-segments

Conversation

@beveradb
Copy link
Collaborator

Summary

  • Adds a third mode ("Replace Segment Lyrics") to the Edit All Lyrics modal, enabling users to swap custom lyrics line-by-line while preserving existing segment timing
  • Extracts createWordsWithDistributedTiming shared utility from EditModal for reuse
  • Fixes Makefile build-frontend to clean stale output before copying (was causing old JS chunks to persist)
  • Restores accidentally deleted nextjs_frontend/__init__.py

Test plan

  • Unit tests for createWordsWithDistributedTiming (8 cases)
  • Component tests for Replace Segments mode (17 cases)
  • E2E Playwright tests (8 cases)
  • All 306 Jest tests pass
  • Manual local testing with real audio file via karaoke-gen CLI

@coderabbitai ignore

🤖 Generated with Claude Code

beveradb and others added 2 commits February 12, 2026 15:01
Add a third mode to the Edit All Lyrics modal that lets users swap in
custom lyrics line-by-line while preserving existing segment timing.
Unlike "Replace All" which loses all timing data, this mode keeps each
segment's start/end times and creates new word objects with estimated
timing from the segment duration.

- Add createWordsWithDistributedTiming shared utility in wordUtils.ts
- Refactor EditModal's handleReplaceAllWords to use the shared utility
- Add "Replace Segment Lyrics" card in ModeSelectionModal
- Add replaceSegments mode with line-count validation in ReplaceAllLyricsModal
- Fix Makefile build-frontend to clean stale output before copying
- Restore accidentally deleted nextjs_frontend/__init__.py
- Add unit tests (wordUtils), component tests, and E2E Playwright tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@beveradb beveradb merged commit 2f15cfc into main Feb 12, 2026
77 of 83 checks passed
@beveradb beveradb deleted the feat/sess-20260212-1121-replace-lyrics-segments branch February 12, 2026 20:39
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.

1 participant

Comments