Vellum/internal/media
mithral 4c51482dd6 Home: five sections — Continue, Most Viewed, Suggestions, Recently Added, Explore
The landing screen now reads as a product rather than a list.

- migration 0006: item_views, per user. "Most viewed" is personal — what I
  re-read is not what you re-read. Counted when an item is opened in a reader,
  so the number means consumed, not merely fetched.
- Suggestions: unstarted items related to what the user has been consuming —
  same author first, then same kind, then recent as a floor. Each carries the
  reason it was chosen ("More by Daft Punk"), because a suggestion nobody can
  understand is noise.
- Explore: a mixed sample across every kind, excluding in-progress items so the
  zone is discovery rather than a repeat.
- Home fetches all five shelves in one request; the screen never pops in.
- web: Shelf gained subtitle/badge support, Card gained a subtitle, and the
  home renders four shelves plus a wrapping Explore grid.

Three bugs found and fixed while verifying:

- Continue showed a multi-track audiobook once per chapter. GROUP BY item_id
  with MAX(updated_at) picks one card per item (SQLite takes the bare columns
  from the row that produced the max).
- Suggestions and Explore passed their SQL arguments in the wrong order: the IN
  list precedes the user id in those queries, so a user id was being bound as a
  library id. Covered by a scoping test that would have caught it.
- The sidebar lost its media types on a cold, logged-out load. bootstrap()
  fetched media types inside a Promise.all with /auth/me, so the expected 401
  rejected the whole thing and nothing refetched after login. Media types are
  public and now load independently.
2026-10-10 16:59:39 -04:00
..
covers.go Phase 3: EPUB module, file streaming, per-user progress 2026-10-09 16:36:27 -04:00
discover.go Home: five sections — Continue, Most Viewed, Suggestions, Recently Added, Explore 2026-10-10 16:59:39 -04:00
discover_test.go Home: five sections — Continue, Most Viewed, Suggestions, Recently Added, Explore 2026-10-10 16:59:39 -04:00
handlers.go Home: five sections — Continue, Most Viewed, Suggestions, Recently Added, Explore 2026-10-10 16:59:39 -04:00
home.go Home: five sections — Continue, Most Viewed, Suggestions, Recently Added, Explore 2026-10-10 16:59:39 -04:00
items.go Redesign the user-facing experience: home, browse, item pages 2026-10-09 21:38:11 -04:00
media.go Phase 4: CBZ comics module and reader 2026-10-09 21:07:59 -04:00