feat: highlight the current book's column in the TOC (Closes #6) #10

Merged
shahondin1624 merged 1 commits from feature/issue-6-highlight-current-book-toc-column into main 2026-03-17 09:35:56 +01:00

Summary

  • Adds TocConfig with highlight_column field to BookConfig (e.g. toc: { highlight_column: "CL" })
  • TocRenderer applies a light gray background to the header and data cells of the designated column
  • Both headerCell and entryCell support an isHighlighted flag for conditional shading
  • Two new config parser tests verify highlight_column parsing and default behavior

Test plan

  • All existing tests pass (gradle test)
  • New test: parse config with toc highlight column
  • New test: parse config without toc section uses defaults (null highlight)

Closes #6

## Summary - Adds `TocConfig` with `highlight_column` field to `BookConfig` (e.g. `toc: { highlight_column: "CL" }`) - `TocRenderer` applies a light gray background to the header and data cells of the designated column - Both `headerCell` and `entryCell` support an `isHighlighted` flag for conditional shading - Two new config parser tests verify `highlight_column` parsing and default behavior ## Test plan - [x] All existing tests pass (`gradle test`) - [x] New test: parse config with toc highlight column - [x] New test: parse config without toc section uses defaults (null highlight) Closes #6
shahondin1624 added 1 commit 2026-03-17 09:35:41 +01:00
Add TocConfig with highlightColumn field to BookConfig. TocRenderer now
applies a light gray background shading to the designated column header
and data cells, making it easy to visually distinguish the current book's
page numbers from reference book columns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
shahondin1624 force-pushed feature/issue-6-highlight-current-book-toc-column from 79688be51e to 0139327034 2026-03-17 09:35:49 +01:00 Compare
shahondin1624 merged commit 0139327034 into main 2026-03-17 09:35:56 +01:00
shahondin1624 deleted branch feature/issue-6-highlight-current-book-toc-column 2026-03-17 09:35:56 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shahondin1624/songbook#10