Skip to content

Add line grouping view to lyrics editor - #14

Merged
cchacs merged 2 commits into
mainfrom
agent/line-group-view
Sep 23, 2026
Merged

cchacs merged 2 commits into
mainfrom
agent/line-group-view

Conversation

@cchacs

@cchacs cchacs commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a Words/Lines view toggle to the manual lyrics editor
  • group existing word entries by line-break markers for display
  • preserve the original ordering, timing, and saved arrangement

Testing

  • node --check screen.js
  • py -m pytest (28 passed)
  • git diff --check

@codacy-production

codacy-production Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 40 complexity · 0 duplication

Metric Results
Complexity 40
Duplication 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ℹ️ Minor suggestions only — the line view is sound and preserves the editor model, but it hides timing progress and has one selection/timestamp mismatch worth a look.

Reviewed changes — a Words/Lines view toggle for the manual lyrics editor plus the new line-grouping render logic (screen.html, screen.js).

  • View toggle (screen.html) — Adds a Words/Lines toggle beside the syllable count; buttons use the existing inline-onclick pattern with literal args.
  • Grouping state + renderer (screen.js) — _lsEditorListGrouping ('word'/'line') picks between the preserved word rows and new line rows grouped at brk markers; the count label pluralizes per view. Grouping logic is correct against the join/brk model, and the word view renders identically to before.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using Big Pickle (free) | 𝕏

Comment thread screen.js Resolved
Comment thread screen.js Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes — incremental delta e09eb27..829fd9b (fix(editor): preserve line timing cues), which addresses both findings from the prior review.

  • Added a per-line untimed aggregate — line rows now render a yellow N untimed badge whenever any syllable in the line is missing t or d, restoring the timing-progress signal the word view already had.
  • Aligned the click target with the displayed timestamp — clicking a line row now selects the first timed syllable (falling back to line.startIndex when the whole line is untimed), so the inspector agrees with the shown time instead of landing on an untimed line start.

The fix is minimal and consistent with the existing model: the untimed criterion (t == null || d == null) matches the word view badge and the save-path skip logic, node --check screen.js passes, and both prior review threads are resolved. Word-view rendering is untouched.

Pullfrog  | View workflow run | Using Big Pickle (free) | 𝕏

@cchacs
cchacs merged commit f0f38af into main Sep 23, 2026
6 checks passed
@cchacs
cchacs deleted the agent/line-group-view branch September 23, 2026 20:32
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