Skip to content

One set of book actions everywhere; series and author matching - #7

Merged
Mischou01 merged 1 commit into
mainfrom
library-actions
Oct 25, 2026
Merged

Mischou01 merged 1 commit into
mainfrom
library-actions

Conversation

@Mischou01

Copy link
Copy Markdown
Owner

What changes

  • One set of actions. The book's menu (right-click), the selection bar and its new ⋯ menu all come from src/library/bookMenus.ts. With one book selected, the ⋯ menu offers Open, About this book, Edit details…, Highlights and Show in folder. With several, it offers Put in a series….
  • Long-press selects on touch screens, as in Android's own apps. The select tick no longer sticks to the last book tapped (:hover is now limited to devices that can hover).
  • Edit details… in the menu. It opens the form directly, and closing the form closes the sheet.
  • Name matching (src/library/names.ts):
    • Series and authors are suggested from the library as you type.
    • A name that differs only in capitals, spacing, accents, a leading "The" or "Surname, Given" order saves as the library's spelling.
    • Picking a series fills in its next number.
  • Put in a series… for several books, optionally numbered in the order they're shown. An empty name takes them out of their series.

Frontend only; there are no Rust changes.

Checks

  • bun run check passes, with 111 tests including new ones in names.test.ts.
  • Checked in Playwright at desktop size and at phone size with touch: right-click menu, long-press to select, the ⋯ menu, series and author suggestions, and the series dialog (saves Red Rising 4 and 5).
  • Not yet tried: long-press on a real Android device.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DvrowUapeanfHMa7yWfmbT

- The book's menu, the selection bar and its new "More" menu share one list
  of actions (bookMenus.ts). With one book selected, About this book, Edit
  details, Highlights and Show in folder are there too.
- Pressing and holding a book with a finger selects it, as in Android's own
  apps. The selection tick no longer sticks to the last book tapped.
- "Edit details…" is in the book's menu and opens the form directly.
- Series and authors typed in the details form are matched to the ones
  already in the library: suggestions while typing, and a name that differs
  only in capitals, spacing, accents or "Surname, Given" order saves as the
  library's spelling. Picking a series fills in its next number.
- "Put in a series…" for several selected books, optionally numbered in
  the order shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DvrowUapeanfHMa7yWfmbT
@Mischou01
Mischou01 merged commit d29f5d1 into main Oct 25, 2026
6 checks passed
@Mischou01
Mischou01 deleted the library-actions branch October 25, 2026 17:37
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