Skip to content

Watchlist: a plex.tv Watchlist tab, page, catalog page, Detail and menu controls - #831

Merged
GLinnik21 merged 244 commits into
mainfrom
watchlist
Oct 18, 2026
Merged

GLinnik21 merged 244 commits into
mainfrom
watchlist

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up: #830.

Why

The plex.tv Watchlist was out of scope (docs/search.md §6, docs/parity-gaps.md). This PR adds it as its own tab-bar destination, as approved in the Watchlist design. The design's source of truth is the canvas artifact (v54). Its Motion board shows frozen ground, a 30 px menu shadow, the menu gone before the grid reflows, and the wash held, then eased, after a Remove.

What

Data

  • plex.tv client (plex::watchlist):
    • Paged list (Size ≤ 100), the released list, per-item userState and catalog item, and add/remove PUTs.
    • It uses the active profile's own plex.tv token (session::plex_tv_credential), never a PMS token.
    • Log lines carry the endpoint shape and status only.
  • Finding titles on servers (Client::find_by_guids): one comma-joined guid= batch per server and type, at most 40 guids per request.
  • Store (data::watchlist, stores::watchlist, StoreId::Watchlist):
    • Optimistic writes, coalesced per title. A ledger keeps an in-flight read from overwriting a newer press. A failed write reverts.
    • Six tile states, set when data lands: playable, coming soon, on no server, server offline, unknown, and coming soon but already on a server.
    • Sort and filter run on the client, with a locale-aware title comparator.
  • ETag on the first page (NET1):
    • CURLOPT_HEADERFUNCTION keeps the response ETag.
    • Page 0 sends If-None-Match; a 304 keeps the rows.
  • Live updates:
    • Watched state and progress on a matched tile ride the existing view-state path (held_keys, Shown.watchlist, the reread arms).
    • Owned servers' feeds now subscribe filters=playing,timeline. A finished library add or delete re-matches the Watchlist. The frame shape is from a captured TimelineEntry.

Screens

  • Tab bar: an icon-only bookmark tab sits before Search (TabFace::Icon, STRIP_BASE + 5). Positional maps became key lookups.
  • Watchlist page:
    • A 6-column grid with the title and one "Sort & Filter" pill. The pill morphs into a glass popover with Type, Sort and Show sections.
    • Full-screen read-outs for an empty list and for a filter that leaves nothing.
    • State marks in the tick slot and a focus caption.
    • The hold menu has Remove. A Remove plays the grid landing (DS4).
    • Sort & Filter reflows live under its open menu. The hold and account menus still freeze the page, and a Remove lands only once its menu is gone.
  • Catalog page (screens::catalog, StoreId::Catalog): for a title that is on no server. It shows a status line, an "Add to Watchlist" / "On Watchlist" pill and no Play.
  • Detail: a bookmark disc second after Play/Resume. It fills from the bottom with a ribbon drop. The hero geometry moved to appkit::hero_layout.
  • Hold menus: "Add to Watchlist" on a movie, "Add Show to Watchlist" on an episode, Remove, and Go to catalog. Adding from a menu pulses the tab-bar bookmark.

Design-system changes

  • New icons: bookmark (outline and filled), clock, server-slash, circle-slash.
  • One role token for the tile corner veil, black at 55% (DS2).
  • Read-out verdicts in bright ink (DS3).
  • Grid landings (DS4):
    • The frame a change lands on still draws the old slots, so cards never jump new → old → slide.
    • The Watchlist feed runs at the head of frame_ingest, before the screens tick.
    • Draw order follows roles: ghosts, still cards, cards fading in, movers (longest travel on top, ranked once when the landing begins), then focus.
    • A new card starts its fade once moving cards cover less than half of its cell.
    • The count and the focus caption change on the landing's first moving frame.
    • The page wash holds its old key through a landing and never passes through the neutral fallback.
  • Neutral icon tabs (DS5).
  • Glass menus on frozen ground over a 30% scrim (DS6). While a page reflows under a menu that allows it, the page draws live under the frozen panel. On settle, the host is retaken once, and the old capture crossfades out over 0.15 s (gfx::FrameCache keeps one previous copy and releases it when the fade ends).
  • The morph open style (DS7).
  • Letter-spacing in gfx text (DS8).

Sign-in fixes found along the way

  • A sign-in over a stored session no longer seats the previous account's profile.
  • A re-sign-in compares the owner's identity, not the token, before clearing a stored account's memory.

Debug only

  • A debug build refuses every Watchlist write unless the mock's discover stand-in is armed (Q11).
  • An owner-only trigger, plxnative-watchlist-live, lets the owner check real writes. It is logged once at boot, and each write logs its status. .claude/hooks/watchlist-live-guard.py blocks agents from creating it, and AGENTS.md and the tv-session skill say why.
  • When a write is refused, the header shows "Debug: watchlist write blocked". This cue exists only in a devtriggers build, and a test checks that.

Tile states: a title on none of your servers wears a circle-slash mark under a 55% wash (25% when focused), captioned "Not on your servers". A server that is offline keeps server-slash.

Languages: every Watchlist string exists in all seven shipped catalogs: en, es, be, fr and main's new it, pt-PT and de. Month captions include it, pt-PT and de.

Docs: docs/watchlist.md (new); docs/search.md, docs/parity-gaps.md, docs/pms-api.md and docs/module-layers.md; the ui and screens guides. A doc-claim audit ran, and its findings are fixed on the branch.

Verification

  • make check on the committed tree at 1a4bd78 (clean before and after): 17402 passed, 0 failed, 122 ignored over all test result: lines. Last cargo stage: test result: ok. 1802 passed; 0 failed; 60 ignored; 0 measured; 0 filtered out.
  • Shipping feature set: cargo +1.99.1 check --lib --no-default-features passes.
  • ARM: make ARM_PROFILE=release FLAVOR=debug builds at 1a4bd78 and was deployed to the set (verify-deploy: 43 files match).
  • Replay: the three fixtures were re-recorded against the tree with main merged in (shape pin 0x07c8_d161_c006_f959), and they replay SAME. The later reflow commits did not move them (tests/test_replay_fixtures.py in make check).
  • fw-compat review: passes for firmware 4.4.2 through 11.2.0.
    • There is no new extern, dynlib! or #[link], and the DT_NEEDED list is unchanged.
    • The only new curl options are CURLOPT_HEADERFUNCTION (20079) and CURLOPT_HEADERDATA (10029), set through the existing curl_easy_setopt wrapper. libcurl has had them since 7.10, older than the 7.53.1 floor.
  • Grid motion tests (each written first and watched failing):
    • The first drawn frame after a change equals the frame before it, for both Sort/Filter and Remove, in the app's real order.
    • Sort & Filter changes the grid under its open menu, and the hold menu still freezes it.
    • Draw order in flight, and the half-clear fade start.
    • The count and the caption change on the same frame.
    • The wash never aims at neutral.
    • The glass host is retaken exactly once per reflow, with a monotone 0.15 s crossfade and the old copy released.
  • Simulator, optimized build against the mock (14 titles), frame by frame: a filter change under the open menu, a mid-flight re-toggle, a sort-direction reversal and a Remove. The Remove's write reached the mock only.
  • Sign-in fix, simulator against the mock (two synthetic mock accounts): a sign-in over a stored session seats the new account ("Alex Example"), not the previous account's "Kid" profile (2dfcadd shows the bug).
  • TV:
    • The owner checked the grid animations on the set at 773dc20 ("Animations are super"). 1a4bd78, which adds the caption timing and the half-clear fade, was then deployed and launched for them.
    • The cost of the menu glass was profiled earlier against the mock.
    • The live page pass under the menu while a grid reflows, and the 0.15 s crossfade, have not been measured on the set.
  • Real-account add/remove: no agent verified it or wrote to a real account. The owner's live switch is on the set for their own check.

Build bench

Measured before main was merged in. The Makefile diff against main is still only the disk-preflight target.

make build-bench, 3 runs per scenario, interleaved, run back to back on the same Mac (Apple M4, 10 cores, rustc 1.101.0-nightly, 8 front-end threads). The base ran in a clean checkout of c08e295.

Scenario base c08e295 median (min–max) branch 8f26c47 median (min–max)
No-op host test build 0.1 s (0.1–0.2) 0.1 s (0.1–0.1)
Edit leaf (plx_base cbuf.rs), non-incremental 27.3 s (26.7–27.3) 24.1 s (23.9–24.7)
Edit leaf (plx_machine landgate.rs), non-incremental 25.9 s (25.7–26.4) 23.5 s (22.9–23.6)
Edit leaf (plx_platform devcaps.rs), non-incremental 25.4 s (24.8–25.7) 22.6 s (22.3–22.6)
Edit leaf (plx_gfx overdraw.rs), non-incremental 11.4 s (11.3–11.7) 10.7 s (10.3–11.2)
Edit leaf (plx_net stream_redirect.rs), non-incremental 21.4 s (21.4–22.7) 19.2 s (19.0–20.1)
Edit leaf (plx_ui dwell.rs), non-incremental 10.7 s (10.6–10.8) 10.3 s (9.8–10.8)
Edit leaf (plx_plex retry.rs), non-incremental 21.0 s (21.0–21.3) 18.9 s (18.8–19.1)
Edit leaf (plx_telemetry window.rs), non-incremental 18.4 s (18.0–18.9) 16.7 s (16.3–17.1)
Edit leaf (plx_data tape.rs), non-incremental 16.5 s (16.4–16.5) 15.0 s (14.8–15.0)
Edit leaf (plx_session scripted.rs), non-incremental 9.4 s (9.4–9.5) 8.7 s (8.6–8.7)
Edit leaf (plx_media units.rs), non-incremental 11.4 s (11.4–11.6) 10.4 s (10.4–10.6)
Edit leaf (plx_appkit skip_pill.rs), non-incremental 8.5 s (8.5–8.6) 7.8 s (7.8–7.9)
Edit leaf (plx_screens clock_readout.rs), non-incremental 8.1 s (8.0–8.2) 7.4 s (7.4–7.5)
Edit leaf (app coldstart.rs), non-incremental 4.0 s (3.9–4.0) 3.5 s (3.4–3.5)
Edit hub (plx_ui lib.rs), non-incremental 10.5 s (10.5–10.6) 9.8 s (9.7–10.2)
Unit suite run (default features) 74.1 s (74.0–74.3) 59.4 s (59.0–60.7)
  • Reading the numbers: the branch is not slower anywhere. Its consistently lower medians are not a speedup claim. The base ran first, under heavier load: it logged 33 load warnings with load up to 13.6, against 22 up to 12.1 on the branch.
  • The Makefile change is a disk-preflight free-space check in front of check and check-replay. It touches no compile recipe.
  • The unit suite runs 7991 tests on the base and 8403 on the branch.
  • Skipped rows: the incremental rows are skipped on the base because it has no target-fast. On the branch they read 11.5 s (cbuf.rs) and 4.1 s (ui lib.rs). The ARM staticlib row is skipped on both: neither checkout had a tvdev archive.

Effects to know

  • Screen-shape pin: moved at Bump A (the strip and Watchlist arguments), Bump B (ContentArg::Catalog and CatalogScreen) and one re-pin (catalog identity in ARG_SHAPE). All three replay fixtures were re-recorded each time.
  • Feeds: owned servers' feeds now carry library timeline frames even while the Watchlist is closed. Unwanted frames are dropped on the feed worker.
  • Debug installs: a debug install writes nothing to plex.tv unless the owner creates the live switch or the mock is armed.
  • Account data across a re-sign-in: track memory, subtitle offsets, per-profile preferences and consent are still stamped with a token fingerprint. A re-sign-in by the same owner loses them; Per-account memory is stamped with a token fingerprint, so a re-sign-in by the same owner loses it #830 tracks moving them to owner identity.

🤖 Generated with Claude Code

claude and others added 30 commits October 15, 2026 21:51
…Watchlist

Baked by tools/readout-glyphs.py's polygon booleans at the inline weight (stroke 2.2,
the weight of search/restart/info), one even-odd path each:
- bookmark / bookmark-fill: the tab and the not-on/on-the-list states; the filled
  twin is the outline's own silhouette, so the state flip never moves an edge.
- clock: coming soon (the read-out's clock base at the inline weight).
- server-slash: its server is offline (the read-out's server base, slashed the way
  wifi-slash is).

Graded through src/svg.c at 28px and 112px: full opacity reached, no ink on the
border. No Icon variant yet; the Watchlist implementation adds them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HcmBfRRonyYQMBUm29X1US
… signatures, W2 data::watchlist model/order/ledger shapes)

Types and signatures only; bodies are unimplemented stubs for W1a/W1b/W2a/W2b to fill.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Wires the four inline marks committed in assets/icons (baked by
tools/readout-glyphs.py at the 2.2 weight) into the Icon enum: src()
includes each asset, ink_x() and band() carry the bounds measured from
the path data, and host tests grade every mark at 28px and 112px through
the production clamp (full opacity, no ink on the border). A drift test
checks the ink entries against the asset paths themselves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mption (DS5)

The shared strip now takes its pills as TabFace values: a captured word, or
an icon mark. Search is an Icon face (60x60, 32 px mark, 16 px gap, mixed_ink
unchanged) instead of an empty label that paint recognised by position.

Positional maps in library and search become key lookups against
widgets::TAB_KEY_{HOME,MOVIES,SHOWS,SEARCH,CHIP} (Search +3, chip +4 unchanged).
Behaviour-neutral. Adds an overscan_rects test: five focus stops do not scroll
and the drawn track clears the audited track rect.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… type per kind, plex:// only

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…table transport (W1a)

discover() base with loopback trigger, paged/released lists, userState array+object,
catalog item, add/remove PUT, drift-tolerant parsing, dev-build write refusal, closure tests.
account.rs: headers/loopback_http/note_response_contact/endpoint_shape pub(super).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n/Es/Be/Fr

Adds LocaleContext::month_day with hand-written month tables (no ICU name data compiled
in); Belarusian long form takes the genitive after the day number. New watchlist.json
catalogs in each shipped language, with a test that every key is present in all four.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…reId::Watchlist

Ledger: optimistic flip, one ordered write worker, same-id coalescing with the newest intent
winning, revert on failure (no toast), reads overridden by intents newer than their stamp.
WatchlistStore: owned state plus Arc mailbox, list/rematch/write workers, WatchlistAuth captured
on the main thread, landings tagged {profile generation, epoch, request}, stale ones dropped,
facts_gen/roster_gen re-derive tile states, held_keys and the ViewChange patch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…stays Unknown, reread page failure not truncated; discriminating stale-landing tests

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GLinnik21 and others added 22 commits October 17, 2026 20:02
… press)

The strip is a Control focus group, so the remote's OK on a pill or the
account chip arms a press and the page hears PressCommit with the strip
key focused, never Activate. WatchlistScreen answered PressCommit only
for a card and returned Handled::Yes with nothing emitted, so every strip
press died in it and only BACK left the page. Home, Library and Search
all fall back to the focused element on PressCommit; the Watchlist never
did, from the day the strip was wired to it.

One activate() now serves Activate and a non-card PressCommit: Try again,
the Sort & Filter pill and the strip.

Tests (red before, green after): the screen's committed strip press, the
real key path through the dispatcher on the wiring rig, and the whole
loop (hostsim) taking the route Home -> Watchlist -> Home by the strip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A strip tab's mint asks for the page's group 0. The Watchlist mounts
before its rows are fed, so its grid (group 0) is empty and the engine
fell back to the first non-empty group it is given: the strip, which the
container lists first, at its left end, the account chip. Search and the
Library meet the same fallback and seat themselves (Search its field on
Mount, the Library its head through its provisional seat); the Watchlist
had no self-seat, so its arrival stayed on the chip.

The page now seats its own arrival the same way, with a fresh Enter
addressed to itself: the header's pill while nothing has landed, then the
first tile on the first landing, reported as a deliberate move like the
tab mint. The seat is the page's only until the reader acts (any key down
or pointer event), and a restored page keeps the reader's seat.

Reordering the composed groups (strip last) was tried and rejected: the
Library's arrival test caught its head tile popping under the dissolve.

Tests: a strip arrival on Search and the Watchlist seats in the page
(hostsim, whole loop), the wiring rig's arrival is off the strip and
follows to the first tile, and a key before the rows land is kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Removes Grid/StackView::ground_cuts, PageGround::draw_cut, Painter::ambient_cut,
Source::peek and ready_on, card_art_opaque, subtract_rects, the groundcut dev switch,
their tests and the clip-guide line. The post-Remove ease and the AmbientWash::K doc stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…count's profile

A QR sign-in that is not a sign-out (a stored session that could not be
activated, "Use another account" after a no-servers verdict, the dev
/tmp/plxnative-login trigger tv-session's --screen login arms) starts from the
stored record. `Authorized` replaced only the account token, so the previous
account's `user` rode through `SignedIn` (which stamped the new account's
plex.tv token onto it) into the published profile: a single-user account
signing in next showed the previous account's name and avatar on the profile
chip (`Session::account` prefers the active profile's title over the roster),
and the discovery save wrote the previous profile and its offline profile
cache (`profiles`) under the new account.

`Authorized` now resets `user`, `home_users` and `profiles` before the request
identity is recomputed; `SignedIn` writes the new roster and a Home account
seats through the picker. On disk, the login-over-another-account clearance in
`replace_after_reauthentication_guarded_with_outcome` also drops `home_pins`
and `recent_searches`, keyed by profile uuid with "" for every account's owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…re clearing a stored account's memory

A fresh QR sign-in always mints a new account token, so comparing tokens made the
same person re-signing in lose their Home pins, searches, last library and library
views. The clearance now compares the roster admin's plex.tv id (unknown on either
side clears), and the offline profile cache Authorized empties is restored from the
stored record when the SignedIn roster names the same owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the reader's focus back

follow_seat queues a fresh Enter to the page itself. The dispatcher queue is FIFO but
a drain budget can carry the Tick that emits it over a frame, so the reader's next key
lands ahead of the Enter; the key claimed the seat and the late Enter, which the engine
applies whatever the page answers, then seated the first tile over the reader's move.
The page now counts the seat Enters that were in flight when the reader acted and, when
one arrives, asks for the reader's current focus back with an Enter of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…refused write says so

A debug (devtriggers) build refused every Watchlist add/remove unless the mock's discover
stand-in was armed (Q11), so the owner's real-account check on debug saw presses that did
nothing: the flip and its revert landed in the same frame. The owner's decision:

- `plxnative-watchlist-live` in the install's runtime root lets a devtriggers build send the
  write to plex.tv. Off by default, latched once at boot, which logs
  `watchlist: LIVE writes enabled by trigger`; each write that goes out logs its endpoint shape
  and status. The stand-in still takes the write when armed.
- While the last write was refused, the Watchlist header says
  `Debug: watchlist write blocked`. The line, its feed and its string are compiled only into a
  devtriggers build, so nightly and stable keep Q8's silence.
- No agent may create the file unless the owner asks in that session: AGENTS.md and the
  tv-session skill say so, and a new PreToolUse hook (watchlist-live-guard.py, with its suite
  in make check) refuses a Bash command that would create it or `--arm` it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… switch made stale

check-localization refuses an app-owned literal, so the cue is the catalog key
watchlist.page.debug_write_blocked in en/es/fr/be (be: наладка, skarnik; заблакіраваны,
verbum). The refusal log names both ways past the failsafe, and the transport doc, the app
feed's module doc, the failed-write test's doc and the hook-suite comment no longer say a
debug build only writes through the stand-in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner could not tell a no-server tile from a playable one with the wash
alone. The mark sits in the watched tick's corner like clock (coming soon)
and server-slash (server offline), at the inline 2.2 weight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HcmBfRRonyYQMBUm29X1US
…vier wash

NotOnAnyServer takes Icon::CircleSlash as its corner mark (the clock and
server-slash treatment), and its wash goes 30%/10% to 55%/25%. The catalog
page's status line follows the tile: on-no-server wears circle-slash, server
offline keeps server-slash.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolutions:
- tv-session skill: kept both the Watchlist-writes paragraph and the netloss-proxy paragraph.
- home/mod.rs: kept main's per-tick hero anchor and the branch's hero_len (the bookmark disc
  makes the hero group's length per title); home/tests.rs kept both test modules.
- i18n/tests.rs: kept both sides; month-day tests cover it, pt and de; the Watchlist catalog
  test reads every shipped language by registry tag instead of a hand-written list.
- i18n/mod.rs: month_day tables for Italian, European Portuguese and German.
- locales/{it,pt,de}/watchlist.json: the Watchlist catalog translated for the new languages.
- registry.rs: both pin-history comments kept; SCREEN_SHAPES_PIN recomputed by the pin test.
- Replay fixtures 1, 6, 12: main's files taken, then re-recorded on the merged tree with
  tests/focusfp.sh --rec and tools/plxnative-rec rerecord; SAME in Targets and Resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…atalog

The caption and status line read "On no server"; the design canvas says "Not on your
servers". All seven catalogs and the prose that quoted the old words follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The language-list gate refused three hand-written lists; the fit tests now cover every
shipped language, and the Watchlist count table gains Italian, Portuguese and German rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, no allow-list growth

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, and a reflow no longer snaps or overlaps

Three glitches on the Watchlist grid:

- Sort & Filter now shows each click. The menu casts no veil (Screen::lets_host_reflow), so the
  value reaches the grid and the landing plays under the open panel. The host cache follows the
  page live while the cards move (popover::host::set_reflow: no per-frame capture, page_epoch
  stands still) and is retaken once when they stop; the old look, copied on the last live frame,
  crossfades into the new ground over 150 ms from a second retained slot of the frame cache.
  The hold menu and the account menu keep the freeze.
- The first drawn frame of a change is the frame before it. The watchlist feed ran after the
  frame's tick, so the new cards drew at their final slots once and the landing then began from
  the old ones; the feed now runs at the head of the frame, and a grid's landing draws its start
  state on the frame it begins in.
- Cards no longer overlap. Draw order is leaving copies, still cards, movers by the length of
  their way (fixed when the landing begins, longest on top), the focused card; a new card stays
  at alpha 0 while a moving survivor's straight path crosses its cell. A sort's landing eases the
  wash at the shared rate; POST_REMOVE_EASE_K is kept for a Remove only.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Brings the circle-slash mark and wash on the not-on-your-servers tile and the grid reflow fix.

Resolutions:
- docs/watchlist.md: catalog status line keeps the "not on your servers" wording and the circle-slash mark for it (server-slash stays for server offline).
- every other file merged cleanly; "Not on your servers" catalogs and SHIPPED-driven language loops kept as on watchlist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e wash never passes through neutral

- The header count held across a Sort & Filter change (options or rows) now waits for the landing's
  first moving frame through the Remove's count_hold; Grid::landing_waiting is true until the springs
  have stepped once, so an unveiled Remove's count follows its first step, not the frame before it.
- A focus the reader did not move settles the caption band on its new row at once, but the landing
  now measures where each card stood under the bands the last frame drew (Scene::was), and a band
  that settles while a landing plays is rebased into its springs (Landing::rebase), so the layout
  move rides the landing's spring with the cards instead of snapping.
- The wash holds its key for a focused title whose colours are not loaded yet, and the page's focus
  mirror follows its element through a reflow under the Sort & Filter menu.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n once its cell is half clear

- The focus caption after a Remove (or a Sort & Filter change that takes the focused card away)
  kept the removed title only until the landing's frame-before-it, so it read the next title one
  frame before the count dropped. It is now held by Grid::landing_waiting, the owner's cue the count
  already follows, so the caption and the count change on the landing's first moving frame.
- A new card waited at alpha 0 until no moving survivor's whole path box crossed its cell, which
  left a dozen frames of empty cells on a large re-toggle. It now begins to fade in on the first
  frame the cards in flight (their rects as they stand, the union of their areas) cover less than
  half its cell, at the same fade rate. Fading cards are drawn as DrawRole::Arriving: ghosts,
  leaving copies, still cards, fading-in cards, movers by travel, focus, so a new card never covers
  a card in flight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit f93c586 into main Oct 18, 2026
24 checks passed
@GLinnik21
GLinnik21 deleted the watchlist branch October 18, 2026 01:03
RichiL10 added a commit to RichiL10/plx-native that referenced this pull request Oct 18, 2026
Brings the four upstream commits after the 0.9 base 0b0b220:
- plxnative#831 Watchlist: a plex.tv Watchlist tab, catalog page, Detail and hold-menu controls
- plxnative#803 input: a click with no control under it is OK after D-pad navigation
- plxnative#832 Route: a remux declares the source frame rate in the Load
- plxnative#833 tools: make test-crate works on the stable toolchain

One conflict, in the rebuilt-route projection of route/decision.rs: upstream now
declares `video_copy_fps(&applied.contract, p.src_fps)` where the fork had 0, and
clears Dolby Vision where the fork keeps the source's declaration on an HEVC video
copy. Resolved with upstream's rate line and the fork's Dolby Vision block, whose
else-branch clears Dolby Vision exactly as upstream does. No other fork code sets
the stream rate, so every copying remux now follows upstream's rule.
GLinnik21 added a commit that referenced this pull request Oct 20, 2026
…nd a tree-wide gate refuses the class (#867)

`make test-crate C="plx_ui plx_screens"` aborted plx_ui nearly every run (SIGABRT "pointer being freed was not allocated" / SIGSEGV in a CString drop): a test-only data race on `static mut TAB_CACHE` (widgets.rs) between the two tab-pulse tests (#831) and the five-face top-bar test (#843), each replacing and freeing the other's entry; make check's 2 test threads missed it by timing only. Production touches these caches only from its frame thread. This removes the class: no `static mut` that owns heap remains unnamed.

- plx_ui render caches -> thread_local! (widgets TAB_CACHE, icons CACHE, text_view WRAP_CACHE, testpat CURRENT, anim ENTRIES, popover CACHE/HELD/TARGET); gfx text elide memo -> thread_local!, font cmaps -> OnceLock (write-once pure function of the file); the app's poster art-key memo -> thread_local! with Rc<str> keys (hits stay allocation-free; cross-thread use is a compile error); textinput's pending-commit queue -> thread_local!. The three gfx.rs GL-context probes stay static mut, named with their reason. The tab-pulse tests take the motion test lock. No RefCell borrow is held across a call that re-enters its cell; popover asserts in debug that the page redirect is closed at the frame boundary.
- ci/check-statics-heap.py (run by ci/check-statics.sh in make check) refuses a `static mut` anywhere under rust-modules whose type owns heap unless named with a reason; it follows the tree's own type definitions, ignores associated types and enum variant names, treats std plain-data wrappers as plain while their parameter is, names macro statics by their macro, and fails red if it crashes. Allowlist 10 -> 5.

Regression tests through one shared harness (plx_base::testrace), each crashing on the old code: tab labels per thread (5/5 aborts), elide memo, art-key memo, pending-commit queue. The repro is clean: test-crate pair 5/5 ok (was FAILED -6), tab tests at 5 threads 10/10 (was 5/6 crashes). Gate tests watched red. Gates on 773e7dd: make check ok (1840/0 largest, harness 483 OK), hostsim 940/0, check-nodef clean, check-replay 6/0. One review (no blockers; its gate false positives and nits fixed here), one simplify pass. A thread_local! read is local-exec TLS on the static non-PIE ARM executable; nothing new allocates per frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Oct 31, 2026
The top bar's glass no longer depends on how wide the tab strip is. New entries and longer labels can't take the material away.

The Belarusian strip is 679 px on the TV, 7 px past the old 672 limit. The Watchlist pill from #831 added the 76 px that tipped it, so any build in Belarusian with both library kinds lost the glass, stable included. A cap on a width set by languages and libraries would keep failing this way as the bar grows.

`GLASS_TRACK_MAX` and its budget constants are gone. Past `TAB_VIEW_MAX` the strip scrolls inside a track that stays glass. The profile chip keeps off the track by shortening its name: `chip_name_budget` is the room the bar leaves, `ChromeSnapshot` re-elides when the strip or the profile changes, and with no room left the chip is the closed circle.

`backdrop::surface_with` now splits a shared band on overlapping drawn rects, not on touching sampling footprints. The old rule put the chip and any track of 1432 px or wider in separate bands, which meant a second source job and a second page pass. On the TV, `hero-pong` at 1544 px went from 104 and 69 missed refreshes to 14 and 16.

Measured on the TV, debug flavour, `ARM_PROFILE=release`, mock, `hero-pong`: `GPU_ACTIVE` p50 reads 7.61M flat, 8.70M at 679 px and 9.65M at 1544 px, against 11.2M for one refresh. Frames over one refresh read 0%, 0.2% and 6.8%. The widest track has no margin left, and the scene misses refreshes in every variant, glass or not.
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.

2 participants