Skip to content

feat(lumen): compact phone filters, calmer detail pages and fewer folded boxes - #745

Open
ncbudd wants to merge 16 commits into
snapetech-org:mainfrom
ncbudd:pr/lumen-phone-layout
Open

ncbudd wants to merge 16 commits into
snapetech-org:mainfrom
ncbudd:pr/lumen-phone-layout

Conversation

@ncbudd

@ncbudd ncbudd commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Summary

A layout pass over Lumen on phones, from using it daily on the production install. Desktop and tablet layouts stay as they are unless a bullet says otherwise.

Filters on phones

  • Movies and Series: only the availability switch and a Filters button with a count stay on the page. Sort, genres, network, status and More Filters open in a bottom sheet with Clear and Done. Each filter in use shows as a removable chip on one scrolling line.
  • Comics, Books, Music and Requests: a shared PhoneFilterBar keeps the one control people switch most (Comics: type, Books: library, Music: release types, Requests: status) and moves the rest into the same sheet.
    • Long chip lists (podcast categories and others) scroll on one line.
    • Stacked sheets keep the page inert until the last one closes, and Escape closes the top one (useDialog).
  • Discover: the chip row under the search links only to the media pages this server has. Provider Discovery joins Coming Soon and Share & Identify in the sidebar and the phone More menu.
  • Music and Podcasts:
    • Music Discover gets release type, sort, genre, dates and in-library filters that open the catalog list. Podcasts gets a Following filter on the chart.
    • Music sections sat 60 px apart: the tab panel's display: contents wrapper picked up the section margin on top of the grid gap. They now use the grid gap alone.
    • "Play opens in" moves from the Music page to "When you press Play" on the You page. Lumen settings gains Music apps: which of Aurral, Plex and Hearth people may pick, and the default.
    • The phone app option is now called Hearth (formerly Shelf, shown as "coming") and gets Android intent links to its play routes. The saved value stays shelf, so existing choices keep working.

Detail pages

  • Fewer actions on phones: movie, series, book, artist and comic pages keep their main and everyday actions. Indexer search, blocklist, issue reports, associations, management and similar actions go into one More sheet (MoreActions). More never holds a single item: a lone action shows in place.
  • The top of the page:
    • The description sits right under the title, two lines with Show more (ClampText), instead of lower down or in a folded Overview box. Books, manga and comics show three lines.
    • Status, ratings and the small actions flow as one wrapping group, so no chip is cut off at a scroller's edge. Phones show the top two ratings and +N.
    • Movies show one availability chip when HD and 4K are both on the server ("On Plex · HD + 4K").
    • The dot line never starts or ends a wrapped line with a dot, and empty items leave no stray dot.
    • Discover's previous/next are a labelled pair at the top corner of the art, and only the arrow that leads somewhere shows.
  • Phones, scrolling: the back button joins a solid bar with the title once the page scrolls, so it never covers content. The sticky action bar keeps every button on one line: the title gives way, and Manage keeps only its icon when three buttons share the bar.
  • Fewer folded boxes:
    • Movie and TV: Starring and Crew are one Cast & Crew box. Details, Subject Tags and (TV) Media Server are one Details box.
    • Album: one Credits & Details box (facts, artists, subject tags) right under the songs. Book: Subjects moves into Details.
    • Saved "Keep open" choices carry over: the combined box opens for any saved choice of its parts, closing it for good clears them all, and #crew / #mediaServer links open the combined box at that part.
    • Folded boxes stack 8–10 px apart as one list instead of a full section gap each. The section margin rule no longer adds 28 px on top of the 22 px grid gap in .dcols columns (desktop too).
  • Albums: ratings are a chip row next to the status, sources without a rating are left out, song rows use a small get button, and long albums show ten songs, then "All N songs".
  • People: each filmography group shows 12 titles, then "Show all (N)". The credits list stays on screen while it refreshes, so a bulk request's result no longer vanishes.
  • Books:
    • Overview right under the format cards and action row, then the edition or narrator list, then Collection, Advanced Request Options and Details, like the manga page.
    • Edition and narration pickers show four rows, then "All N editions" / "All N narrations", and the selected row stays in view.
    • One Follow button under the narrations, for the selected narrator, replaces the stack of per-narrator buttons. The ebook page shows its edition as one card (EditionPreview).
    • Switching between ebook and audiobook on a book opened without a lookup title no longer blanks the page: the saved answer shows while the new one loads, and hovering or touching the format link asks for it ahead.
  • Fixed on the way: duplicate React keys left stale Watchlist buttons on movie pages; the actions now live in their own containers.

Settings, You and Administration on phones

  • Account and Lumen settings fold their sections. Jump links and #section addresses open the section they point to. User Settings shows its toolbar links and jump chips as one sideways-scrolling row, Import lists first.
  • You folds the nine admin groups into one "All Settings and Tools" box and Discover, Library, Acquisition and Support into "Library & Tools" (17 folds down to 6).
  • Administration folds TV, book, music and software services into one "Media Services" box (9 folds down to 6).
  • Request limits shows no empty heading when there is nothing to list.

Search page

  • An empty Book Series section is hidden, and partial provider failures become one quiet note with Retry instead of an error card. Sort is a chip on phones.

Other

  • Requests: a row's buttons run under the whole row instead of down the narrow text column, and the sentence that repeats the list's order is hidden on phones.
  • Discover shelves drop the Title View chip (it stays under You > Appearance; touch screens always show titles).

Testing

  • New tests:
    • phone-filters.spec.ts: the filter sheet, chips and Clear on each page, phones only;
    • book-edition-layout.spec.ts: book section order, the four-row pickers, the single Follow button and the format switch;
    • member-pass.spec.ts: a member with only request and auto-approve permissions, on every size;
    • review-pages.spec.ts: folded-section gaps, the account chip row and the detail top;
    • hearthLink.test.mjs: Hearth intent links;
    • shared helpers phoneSections.ts and discoveryFilters.ts. Specs that visit folded groups or combined boxes open them first and keep their checks.
  • Local checks on main as of today (00b4b12d1):
    • Lumen tsc, build and unit tests (90): pass;
    • pnpm i18n:check and ESLint on the changed Lumen files: pass;
    • Lumen browser specs for the touched screens (desktop, iPhone, Android, tablet): app, comics-manga, book-library, music-playback, phone-filters, book-edition-layout, member-pass, review-pages, review-core, account-settings, admin-navigation, mobile-navigation, watchlist, share, lumen-preferences, detail-options-localization, music-format-request and book-grouping. 2,117 passed, 45 failed:
      • 10 were newer specs from main that didn't know about the phone filter sheet (original language and origin country after a reload, and the comic catalogue locale spec, on phones). The last commit opens the sheet in them; they now pass on all four sizes (20 of 20).
      • 32 also fail on untouched main:
        • the 4 review-core tests on every size (16);
        • "artist details follow new album releases" (4): the spec's /follow fixture always answers an empty list, so the new Following readback can't confirm the write;
        • "series watch rule keeps the rejected selection", "Classic comic discovery bookmarks" (it looks for "Maximum Issues"; the restored English catalog now says "Max issues") and "Music album and artist details localize" (12).
      • 3 phone navigation timeouts (share Share & Identify reachability, mobile-navigation landmarks) passed when rerun (12 of 12).
  • Live: running on the production install since 2026-11-27 (filters) and 2026-11-28 (the rest).

AI assistance

AI tools helped write parts of the code and tests. I reviewed the changes, ran the tests listed above, and checked it on a live install.

…chips

On phones, Movies and Series show only the availability switch and a
Filters button with a count. Sort, genres, network, status and More
Filters open in a bottom sheet, with Clear and Done at its foot. Each
filter in use shows as a removable chip on one scrolling line. Desktop
and tablet layouts are unchanged.
…ns the menu

The chip row under the Discover search now links only to the media pages
this server has. Coming Soon and Share & Identify were already in the
sidebar and phone More menu; Provider Discovery is added there.
A shared PhoneFilterBar keeps the control people switch most on the
page, puts the rest in a bottom sheet and shows removable chips for
filters that narrow the list. Comics keeps the type switch, Books the
library switch, Music the release types and Requests the status chips.
Podcast categories and other long chip lists scroll on one line. Stacked
sheets keep the page inert until the last one closes, and Escape closes
the top one.
…arth play links

Music sections sat 60px apart because the tab panel's display:contents
wrapper picked up the section margin rule on top of the page grid gap;
it now uses the grid gap alone. Play opens in moves from the Music page
to When you press Play on the You page, and Lumen settings gains Music
apps: which of Aurral, Plex and Hearth people may pick, plus the
default. Shelf is now Hearth, with Android intent links to Hearth's play
routes and the saved value kept as shelf. Music Discover gets release
type, sort, genre, dates and in-library filters that open the catalogue
list; Podcasts gets a Following filter on the chart.
… long text

TV, movie, book, artist and comics detail pages keep their main and
everyday actions on phones and put indexer search, blocklist, issue
reports, associations, management and similar actions in one More sheet.
Status pills share one scrolling line, long descriptions show four lines
with Show more, and disclosures no longer stack an extra 28px margin on
the grid gap. Account settings get jump links to the list imports,
linked from You. Moving the detail actions into their own containers
also stops duplicate React keys from leaving stale Watchlist buttons on
movie pages.
…ion chips

The section margin rule also skipped .dcols columns, which stacked 28px
on their 22px grid gap between Starring, Crew and Subject Tags. Wider
screens keep the detail actions visible but in their own group, set
apart from the ratings, with ratings and actions at one 36px height.
…arch

- More never holds a single item: one action shows in place
- Account and Lumen settings fold their sections on phones; jump links
  and #section addresses open the section they point to
- Search: empty Book Series hidden, partial service failures become one
  quiet note with Retry, sort is a chip on phones, no gap above results
- Phone toolbars let long button labels wrap (French metadata page)
- Member pass spec (request + auto-approve only) on every size
…ions

- User Settings on phones: the toolbar links and the jump chips become one
  sideways-scrolling row, Import lists first, nothing listed twice
- A run of collapsed sections or closed panels sits 10px apart in a page
  or detail body instead of the container's full gap
- Gap test covers Account and Lumen settings
…tings

Detail pages (movie, series, album and the rest that share the top):
- the description sits right under the title, two lines with Show more,
  instead of lower down or in a folded Overview box
- the dot line never starts or ends a wrapped line with a dot, and empty
  items (no genres) leave no stray dot
- Discover's previous/next are a labelled pair at the top corner of the
  art instead of loose arrows under the genres
- status, ratings and the small actions flow as one wrapping group: no
  chip cut off at a scroller's edge, and a lone More sits beside them;
  phones show the top two ratings and +N for the rest
- scrolled down, the back button joins a solid bar with the title so it
  never covers the content
- the sticky bar keeps every button on one line; the title gives way, and
  Manage keeps only its icon when three buttons share a phone bar
- Series Collections shows only when the series is in one, with the same
  chevron as the other boxes; the Episode Queue chip is short
Album pages: ratings are a chip row by the status and sources without a
rating are left out; song rows use a small get button; long albums show
ten songs, then All N songs.
Requests: a row's buttons run under the whole row instead of down the
narrow text column.
Discover: no Title View chip on the shelves (it stays under You >
Appearance; touch screens always show titles).
… on phones

- movie: one availability chip when HD and 4K are both on the server
  ("On Plex · HD + 4K"); phones show the best-known rating (IMDb) and +N;
  Playback Options moves into More, and More is a small icon chip
- Show more under a short description is a small text link
- album: View Artists and Subject Tags come after the songs
- phones: a shorter strip of art above the poster
- You and Administration: each settings group folds behind its title on
  phones (still a heading); folded groups sit close together
- person: each filmography group shows 12 titles, then Show all (N)
- person: the credits list is kept while it refreshes, so a bulk request's
  result stays on screen instead of vanishing with a remount
Specs open folded groups (tests/browser/phoneSections.ts) or expand first
and keep their checks.

Also: Discover's previous/next shows only the arrow that leads
somewhere. Specs open the folded You and Administration groups (also
after tab taps) and accept the combined HD + 4K chip.
…repeated Requests sentence

- folded boxes on a detail page stack 8-10px apart as one list
- phones: with two or more buttons the sticky bar drops the squeezed title;
  the main button keeps its full label
- phones: the Requests sentence that repeats the list's order is hidden
Detail pages:
- Movie and TV: Starring and Crew are one Cast & Crew box. Movie/Series Details,
  Subject Tags and (TV) Media Server are one Details box. Collection stays.
- Album: one Credits & Details box (album facts, artists, subject tags) right
  under the songs, 10px from the last song on phones.
- Book: Subjects moves into the Details box.
- Parts of a combined box keep a small heading (bare mode of VideoDisclosure,
  CreditsDisclosure and SubjectTagsDisclosure).

Saved "Keep open" choices carry over: Cast & Crew uses the cast key and also
opens for a saved crew choice; Details uses the details key and also opens for
saved subject tag, media server (TV) and artist (album) choices. Closing a box
for good clears the merged keys too. #crew and #mediaServer links open the
combined box at that part.

You and Administration on phones:
- You folds the nine admin groups into one "All Settings and Tools" box and
  Discover, Library, Acquisition and Support into "Library & Tools"
  (17 folds -> 6).
- Administration folds TV, books, music and software services into one
  "Media Services" box (9 folds -> 6).
- Wider screens keep every group as its own section, as before.

Specs open the combined Cast & Crew, Details and Credits & Details boxes
and match the You Library heading exactly next to Library & Tools.
- Book, ebook, audiobook, manga and comic descriptions show three lines with
  Show more (the shared ClampText).
- Edition and narration pickers show the first four rows, then
  "All N editions" / "All N narrations"; the selected row always stays in view.
- The stack of per-narrator Follow buttons is one Follow button under the list,
  for the selected narrator (else the owned one, else the first solo narrator).
- The ebook page shows its edition as one card, like a single-edition manga.
- Switching format on a book opened without a lookup title no longer blanks the
  page for a fresh SeerrNG lookup: the saved answer shows while the titled one
  loads, and pointing at or touching the format link asks for it ahead.
…ions

Book, ebook and audiobook pages now read like the manga page: overview right
under the format cards and action row, then the edition or narrator list, then
Collection and Advanced Request Options, then Details. Advanced Request Options
gets the same chevron as the other folded boxes.
The comic catalogue locale spec and the original language and origin
country specs check filters that phones keep in the Filters sheet. They
now open the sheet first, and again after a reload closes it; wider
screens are unchanged (the helpers do nothing there).
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