Skip to content

Jump to a letter in title-ordered library browse instead of filtering #554

Closed

Description

@Quick104

Summary

The server now reports where each letter starts in a title-ordered library, so a client can jump within the full list instead of filtering it. The web app uses this for its A–Z bar (Silo-Server/silo-server#2346). The phone browse screen's A–Z selection (selectNamePrefix in BrowseViewModel) sets name_prefix. That filters the grid down to one letter and hides the rest of the library. #28 asks for a letter-index fast scroll on phone grids, and #26 for an A–Z destination on Android TV. This issue covers the server data both can use.

What to change

  • When getCatalogSearchCapabilities reports letter_index: true and the browse is sorted by title, call POST /api/v2/catalog/letters with the browse's library_id, type, match, groups, and order. The response lists each letter that has titles, with its count and the zero-based position of its first title.
  • Choosing a letter scrolls the grid to position, loading that window with seek on queryCatalogItems, instead of applying name_prefix. total is the exact list size.
  • Grey out letters missing from the response. Titles file under their sort title ("The Hobbit" under H), accented initials fold to their base letter, and digits and symbols go under #.
  • Keep the name_prefix filter for servers that don't report letter_index.

Reference

AI disclosure

Drafted by Claude Code (claude-opus-5-5) from the server change and the app's current browse code, at a maintainer's direction.

Activity

  1. added
    api-v2
    enhancement
    impact: polish
    priority: P2
    triaged
    on Oct 12, 2026
  2. added a commit that references this issue on Nov 12, 2026
    2b52331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-v2enhancementimpact: polishpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions