Bookmarks (🔖) for poets, books/chapters and poems; word book on its own page #47

Merged
anas merged 1 commits from feature/bookmarks-and-word-book into main 2026-10-08 22:00:43 +00:00
Owner

Owner direction: the word collection is separate from bookmarks, and bookmarks use the bookmark glyph rather than hearts.

Bookmarks (نشانات)

  • 🔖 نشان buttons on poet pages, book/chapter pages (new: books and chapters can be bookmarked) and poem pages; grey when not set, coloured when set.
  • Contents lists, book/chapter cards and poet cards show 🔖 where the reader has bookmarks.
  • /library is now نشانات: bookmarked poets, books and chapters, poems, couplets and phrases, each with its path.

Word book (ذخیرۂ الفاظ): its own page, /words, separate from bookmarks. Tabs between نشانات, ذخیرۂ الفاظ and پروفائل; header links to both.

  • Word sidebar button: ذخیرۂ الفاظ میں ڈالیں (+), becoming ذخیرۂ الفاظ میں ہے (✓); selection menu: + ذخیرۂ الفاظ.

API: library kind category (books and chapters) in toggle, state, marks and the list (with its path).

Tested: npm test 25 pass (incl. bookmarking a chapter, unknown chapter 404, chapter path). Headless Chrome: chapter, poet and poem bookmarks set; the غزل card shows 🔖 on Ghalib's page; the word button wording before and after; /library has no words and /words has no bookmarks.

🤖 Generated with Claude Code

Owner direction: the word collection is separate from bookmarks, and bookmarks use the bookmark glyph rather than hearts. **Bookmarks (نشانات)** - 🔖 **نشان** buttons on poet pages, book/chapter pages (new: books and chapters can be bookmarked) and poem pages; grey when not set, coloured when set. - Contents lists, book/chapter cards and poet cards show 🔖 where the reader has bookmarks. - `/library` is now **نشانات**: bookmarked poets, books and chapters, poems, couplets and phrases, each with its path. **Word book (ذخیرۂ الفاظ)**: its own page, `/words`, separate from bookmarks. Tabs between نشانات, ذخیرۂ الفاظ and پروفائل; header links to both. - Word sidebar button: **ذخیرۂ الفاظ میں ڈالیں** (+), becoming **ذخیرۂ الفاظ میں ہے** (✓); selection menu: **+ ذخیرۂ الفاظ**. **API**: library kind `category` (books and chapters) in toggle, state, marks and the list (with its path). **Tested**: `npm test` 25 pass (incl. bookmarking a chapter, unknown chapter 404, chapter path). Headless Chrome: chapter, poet and poem bookmarks set; the غزل card shows 🔖 on Ghalib's page; the word button wording before and after; `/library` has no words and `/words` has no bookmarks. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 1 commit 2026-10-08 21:59:02 +00:00
Owner direction: the word collection is separate from bookmarks, and bookmarks use the bookmark
glyph, not hearts.
- 🔖 نشان buttons on poet, book/chapter (new) and poem pages; contents lists and cards show 🔖.
- /library (نشانات): bookmarked poets, books and chapters, poems, couplets, phrases.
- /words (ذخیرۂ الفاظ): the word book on its own page; tabs between the two; header links.
- Word button: 'ذخیرۂ الفاظ میں ڈالیں' (+), 'ذخیرۂ الفاظ میں ہے' (✓) once added.
- API: library kind 'category' (books and chapters) in toggle, state, marks and the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anas merged commit 2b558ea494 into main 2026-10-08 22:00:43 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: anas/divan#47
No description provided.