Skip to content

ui: the rating marks are drawn for the 34px badge, not shrunk to it - #20

Merged
GLinnik21 merged 1 commit into
parity-stagingfrom
ratings-marks
Jul 29, 2026
Merged

GLinnik21 merged 1 commit into
parity-stagingfrom
ratings-marks

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Owner feedback on the shipped ratings row: the marks look crude on the panel. They do — so all six are redrawn at the size they actually draw, and the two states we were not drawing get their own art.

The server question, already settled — do not re-run it

The owner asked whether the real service assets can come from the server. They cannot; the instinct about the front-end is right, the server is a dead end. Probed three ways:

  • Every mediaTagPrefix rating URL 404s (/system/bundle/media/flags/rottentomatoes/image.rating.ripe, with and without ?t=), while sibling categories serve real PNGs — contentRating/us/PG-13 and studio/... both return 200 image/png.
  • The server's own Media-Flags.bundle has no rating category at all (Aspect Ratio, Audio Channels, Audio Codec, Content Rating, Studio, Video Codec, Video Frame Rate, Video Resolution — and that is the whole list).
  • app.plex.tv/desktop's JS bundle maps them to imported SVG components: f = {certified: …, ripe: …, rotten: …, spilled: …, upright: …}.

They are client-side assets. We ship our own. That is what this PR does.

What was wrong

The marks were authored as generic small vector art and then drawn into a 34px box (widgets::RATING_MARK), which is the whole legibility budget. At that size:

  • ripe was a red ball with a spiky crown — a ball, at couch distance.
  • rotten read as a green sparkle: a symmetric eight-point star. Evenness was the bug; a splat is not symmetric.
  • upright read as a bell / tombstone. The kernels blurred into a smooth dome, so nothing said "popcorn" and nothing said "tub".
  • spilled read as a kite beside three dots.
  • star was fine but off-centre in its box and thin in the points.
  • TMDB was borrowing Icon::Ring, which is also the Library toolbar's Unwatched chip.

This matters more than ordinary icon polish because the mark carries the verdict, not the number. RT's cutoffs move and differ between critic and audience, so the score cannot be read as the state — which is exactly why the art is chosen from Rating.image and never from a threshold.

What changed

Six marks, each drawn for the 34px box rather than minified into it:

  • ripe — round body, stem, two calyx sepals. The sepals deliberately clear the SHOULDER; level with the body they fuse into one flat top and the silhouette reads as a mushroom.
  • certified (new) — the same body, wreathed in two laurel branches. Same tomato so the pair reads as one family; the laurels are the only difference.
  • rotten — an uneven mass, three thrown drips, two droplets already clear of it. No two lobes share a radius.
  • upright — a lipped, tapered tub under a mound that overhangs it. Three cues in that order: mound wider than the tub, rim lip, hard taper to the base.
  • spilled — the same tub past its balance point, mouth bowed open and empty, contents out. The tip and the spill now agree; they used to point opposite ways, which is why it read as a rhombus and some dots.
  • star — chunkier (inner/outer 0.45) and centred on its ink rather than its circumcircle.
  • tmdb (new) — a filled annulus score dial.

Verification without the TV

Every mark is rasterized through src/svg.c itself — the device's exact nanosvg path — at the real 34px badge size and again at 68px and 136px, then graded on full opacity, interior alpha dips, and border contact.

mark ink @34px max α interior dip border
tomato 38.6% 255 none clear
tomato-certified 43.1% 255 none clear
tomato-rotten 40.8% 255 none clear
popcorn 42.6% 255 203/255 × 2 px clear
popcorn-spilled 30.4% 255 none clear
star 32.5% 255 none clear
tmdb 40.5% 255 none clear

Two rasterizer facts came out of that and are now documented in icons.rs, because both produce artefacts that look like rasterizer bugs and are not:

  1. A mark is ONE <path>, composed of overlapping SUBPATHS. Subpaths are winding-unioned, so joins carry no seam. Separate <circle>/<path> ELEMENTS are alpha-composited (a1 + a2(1-a1)), so wherever two antialiased edges run together the union lands at ~0.75 and the mark wears a crease. The old popcorn-spilled.svg did exactly that — the 223/255 seam the ratings unit found, still there as 140/255 at 34px and 16/255 at 136px.
  2. Every subpath winds the same way. Under nonzero fill a reversed one stops being a union and punches a HOLE through what it overlaps — which is what a calyx leaf did mid-draw.

That first measurement also gives the discriminator for the one remaining dip: a composite seam gets worse with resolution, a genuine geometric notch resolves into a clean gap. popcorn.svg's two 203/255 pixels are the notch between the crown kernels; at 68px and 136px the mark is seam-free. The notch is deliberate — overlap those kernels any further and the scallops smooth back into the plain dome the old mark already was.

Certified Fresh — yes, its own asset

There are five RT states, not four: ripe, certified, rotten, upright, spilled. We were folding certified onto the plain tomato.

It gets its own mark. Certified Fresh is a rarer, higher bar than fresh; the server takes the trouble to name it; and substituting other art for what the server said is the one thing this row is built not to do. It keeps rank() == 0, so it is still the critic slot and convert_ratings' dedup still guarantees at most one tomato per item.

The counter-argument was legibility — a wreathed tomato is more detail in the same 34px. It survived the raster check (43.1% ink, no dips, no border contact, laurels ~3.4px thick with a ~2.5px gap to the body), so the information is worth keeping.

The parse

RatingArt::from_image already took the last dot-separated segment, matching Plex's own bundle (t.substr(t.lastIndexOf(".") + 1)), and already ignored Rating.type for the provider — right, since IMDb and TMDB both arrive as audience. That is now asserted rather than assumed: a prefix (…rating.ripeness) and a non-final position (…image.ripe.rating) both decline to match, and a deeper path still resolves on its final segment. The one divergence from Plex is a path with no dot at all, where Plex returns the whole URI and we return "" — both match nothing, which is the answer that matters.

Why TMDB got split off Icon::Ring

Ring is the Library toolbar's Unwatched chip. Sharing it meant restyling that chip would silently redraw a brand mark. TMDB's brand is a wordmark that no 34px single-colour silhouette can spell, so the mark borrows the score dial TMDB's own product wraps every rating in — a filled annulus, thicker than the ring it replaces. Ring now belongs to the chip alone.

Checks

  • make check — 149 host tests (147 baseline + 2), make lint clean.
  • make — ARM cross-build green.

Device verification: deferred to coordinator

No TV was taken for this. Two items to capture, both on the detail hero's ratings row:

  • rk 2020 — My Fault: London (load-bearing). It carries a green splat at 40% beside a red upright popcorn bucket at 83% — a pair no threshold implementation can produce, so it proves the art still comes from Rating.image and not from the score. What to look for: the splat must read as a splatter — an irregular mass with drips and two detached droplets — and no longer as the symmetric green sparkle it was; the bucket beside it must read as a tub (visible rim lip, tapered body, a bumpy mound overhanging the rim) and no longer as a plain red bell. Both marks are ~34px tall, sitting on the meta line's cap band.
  • rk 2032 — Luca — carries all four providers, so it is the row-composition shot: tomato → popcorn → IMDb star → TMDB dial, left to right, with the TMDB mark now a thicker annulus than the old hairline ring and clearly not the same circle as the Library toolbar's Unwatched chip.
  • If any library item carries rottentomatoes://image.rating.certified, that one is worth a third capture — the wreathed tomato is the only new silhouette with no on-device precedent. Nothing on this server was known to carry it, which is why it stayed unverified.

Nothing here moves layout or geometry: rating_badge / rating_badge_w are untouched, so the row's flow, widths and margin cut-off are unchanged. The only visible deltas are the silhouettes themselves and the two new states.

🤖 Generated with Claude Code

https://claude.ai/code/session_018GuSHrq9oydnX7nhKE1Hvc

The review-score silhouettes were crude at the size they actually draw.
The ripe tomato was a ball with a spiky crown, the rotten one read as a
green SPARKLE rather than a splat, the upright bucket as a bell, and the
spilled one as a kite beside three dots. None of that survives couch
distance, which is the only distance this row is ever read at — and the
mark, not the number, is what carries the verdict, because Rotten
Tomatoes' cutoffs move and differ per axis (rk 2020 renders a green
splat at 40% beside a red upright bucket at 83%).

All six are redrawn at the real 34px box (`widgets::RATING_MARK`) instead
of being poster-scale art minified into it, and each is graded by
rasterizing through `src/svg.c` — the device's own nanosvg path — at 34px
and again at 68/136px. Measured at 34px: ink coverage, max alpha,
interior dips, border contact.

  tomato            38.6%  255  none       clear
  tomato-certified  43.1%  255  none       clear
  tomato-rotten     40.8%  255  none       clear
  popcorn           42.6%  255  203 x2 px  clear   (the mound notch; see below)
  popcorn-spilled   30.4%  255  none       clear
  star              32.5%  255  none       clear
  tmdb              40.5%  255  none       clear

Two rasterizer facts fell out of that and are now written down in
`icons.rs`, because both produce artefacts that look like rasterizer bugs
and are not:

  * A mark is ONE `<path>` whose parts are overlapping SUBPATHS. Subpaths
    are winding-unioned, so joins carry no seam; separate elements are
    alpha-composited (a1 + a2(1-a1)), so wherever two antialiased edges
    run together the union lands at ~0.75 and the mark wears a crease.
    The old popcorn-spilled.svg did exactly that: 140/255 at 34px and
    16/255 at 136px. That divergence is the discriminator — a composite
    seam gets WORSE with resolution, a real geometric notch resolves into
    a clean gap. popcorn.svg's two 203/255 pixels are the second kind:
    the notch between the crown kernels, gone at 68px and 136px, and it
    exists because kernels overlapped any further smooth the scallops
    back into the plain dome the old mark already was.
  * Every subpath winds the same way. Under nonzero fill a reversed one
    stops being a union and punches a HOLE through what it overlaps —
    which is what a calyx leaf did while this was being drawn.

Certified Fresh becomes its own state and its own mark (the wreathed
tomato) rather than being folded onto the plain one. It is a rarer,
higher bar than fresh, the server takes the trouble to name it, and
substituting another provider's art is the one thing this row is built
not to do — the badge exists to report what the server said. It keeps
rank 0, so it is still the critic SLOT and no item can draw two tomatoes.

TMDB gets its own asset too. Its brand is a wordmark, which no 34px
single-colour silhouette can spell, so the mark borrows the score DIAL
that TMDB's own product wraps every rating in — a filled annulus, thicker
than the ring it replaces. The point of splitting the file is that
`Icon::Ring` is the Library toolbar's Unwatched chip: the chip and a
brand mark were sharing one asset, so restyling the chip silently redrew
TMDB.

`RatingArt::from_image` already read the state as Plex's own bundle does
(`t.substr(t.lastIndexOf(".") + 1)`); that is now asserted rather than
assumed, including that a prefix (`…rating.ripeness`) and a non-final
position (`…image.ripe.rating`) both decline to match.

Tests: +2 host (149)

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_018GuSHrq9oydnX7nhKE1Hvc
Copilot AI review requested due to automatic review settings July 29, 2026 19:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@GLinnik21
GLinnik21 merged commit 483c6ff into parity-staging Jul 29, 2026
@GLinnik21
GLinnik21 deleted the ratings-marks branch August 2, 2026 18:37
GLinnik21 added a commit that referenced this pull request Aug 22, 2026
The checklist is a submission DOCUMENT, not a private rubric, and its own preamble
is the reason this file exists: every item must be Pass or N/A, and marking one
Pass when it should be N/A — or vice versa — is a stated rejection ground. So
"we never tested it" is not a markable state, which makes the UNTESTED column
matter as much as the failing one. Eleven items sit there today.

Four fail outright, and three of those are one root cause: `stream.rs::http_open`
builds a `sockaddr_in` from four decimal octets, so no TLS, no DNS, IPv4 only —
which takes out #20, #43 and #47 together the moment a QA bench is not on the same
LAN as a plaintext PMS. Plus no ABR (#43 CASE1) and factory reset (#53), which is
undefined for a sideloaded app.

§4 records the four items that moved on 2026-08-22 and why they are worth reading
together: every one was found by LOOKING AT THE PANEL, and not one was visible in
a green test run. Subtitles rendering `.notdef` tofu because neither Inter nor the
television has U+2669-U+266C; transport keys bound to CEA-2014-A web keyCodes
instead of the native scancodes the app actually receives; a splash 63% black
against LG's "should not be black"; and `requiredMemory` asking for less headroom
than declaring nothing would have.

§5 records the two items that are DECISIONS rather than defects — no on-screen
transport button row, and English-only — because a future reader of the checklist
will otherwise try to "fix" the first one, and item 45's own remark ("refer to UX
scenario for movement details") is what makes the UX scenario document, not code,
the place that answer belongs.

§7 names the defect class rather than the bug: the music note was the visible tip
of "any codepoint outside Inter tofus", which is CJK, Hebrew, Arabic and Thai
titles and subtitles, hits the same two items, and nothing in the host suite can
see.

Co-Authored-By: Claude Opus 5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 23, 2026
**This commit contradicts a recorded OWNER RULING and is separated from the one before it for that
reason.** `docs/shared-servers.md` §12, dated 2026-08-21, quotes the owner — *"Servers are
configured on a PC or phone. On the television we only CHOOSE from the available servers"* — and
states the consequence: "There is no add-a-server-by-address on the television, and there will not
be." The ruling is left STANDING and annotated rather than rewritten; an agent may not overturn it.
Dropping this commit leaves the one before it building and green, which is the point of the split.

The case that argued for reopening it is `docs/lg-self-checklist.md` #20/#43/#47: a QA bench not on
the same IPv4 LAN as a plaintext-HTTP PMS dead-ends at "no server found", and the app had no surface
anywhere that could be typed an address. That is a question about a REVIEWER being unable to
evaluate the app at all, which is not the question the ruling answered — it may or may not move it.

**No new `Route` and no screen.** It is two rows in the tail of the popover that already exists,
beside "Check for new shares", which is the other answer to "my server is missing" — putting them
side by side is the point. Closed it is one row; open it is the field plus its action row, and the
COUNT holds still because a popover's height is measured from its rows and a sub-line appearing as
you type would resize the panel under the cursor. `Tail::Recheck` becomes `Tail::Panel(&Add)`,
carrying the field's state, so `ui/onboard.rs`'s `Tail::None` call site — which has no field and
never will — did not have to learn about a state it cannot reach.

The row model, the parse and every read-out are pure and tested that way. `ui/library.rs` is the
wiring; `app.rs` gains a `Route::Library` key guard mirroring the `Route::Search` one already there,
because the television's keyboard has no caret and delegates its delete and Clear-all to the app as
ordinary key syms.

**The seam.** The panel's job ends at a validated `Endpoint`. Dialling it, checking `/identity`,
merging by `machineIdentifier` and registering is worker-thread work with a socket in it and is not
here: the two halves meet at `take_request()` and `report(id, ok)` and nothing else. Nothing takes
the request today, so the field ages out after 20s saying nothing answered — literally true of a
request nobody picked up, and the right read-out once somebody does and the address is wrong.

**A one-source failure now KEEPS the Source chip.** That toolbar row used to empty completely, which
was defensible only while the panel had nothing to offer a user with one server. It was the single
state in the app where somebody whose only server cannot be dialled had nowhere to type one — the
exact dead end this exists to remove. The design's rule is untouched where it argued about a WORKING
library: one source, nothing wrong, still no chip.

Five findings from `/code-review high`, all fixed and each with a test:

- **A panic that killed the app.** `has_prefix_ci` byte-sliced the typed text, and the field
  re-parses on EVERY keystroke to state the port — so a hostname in Cyrillic or Japanese whose 7th
  or 8th byte falls mid-codepoint panicked out of the SDL event loop. `str::get(..n)` now, and the
  simulator survives "привет" with the app still running.
- **The keyboard wedge Search is explicitly defended against.** An app-switch left
  `textinput::STARTED` true and `start()` early-returns on it, so the panel never rose again.
  `app.rs`'s background arm now calls `library::leave_keyboard()` beside `search::leave()` — keeping
  what was typed, because an app switch is the OS moving the screen, not the user abandoning it.
- **The tail vanished on an empty list.** It hung off the last GROUP, so a roster where nothing has
  libraries yet drew neither way out, in precisely the state both rows exist for. It is its own
  headerless section now, with no separator drawn over nothing.
- **The mailboxes had no request identity**, so a late answer for an attempt the user had already
  replaced would land on the new address. They carry a `ReqId` and a mismatched verdict is dropped.
- **`::32400` parsed as a machine NAME** and lit Connect, because the host whitelist allowed `:`
  unconditionally. A multi-colon host is shape-checked as an IPv6 literal instead.

1088 host tests (1075 on the commit before it). Prose corrected where this makes it false:
`ui/consts.rs`'s two "only the Search screen reads these" claims and `docs/distribution.md` §7.
`docs/lg-self-checklist.md` carries the same false sentence and is the integrator's file — the
replacement wording is in the PR body rather than in this diff.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G
GLinnik21 added a commit that referenced this pull request Aug 24, 2026
* sources: four states where there were two, and the chip stops calling a signed-in owner signed out

Two things the Sources panel and the shared top bar were saying wrongly. Neither depends on the
other; both are the words a surface uses about a fact it already had.

**The Sources panel renders all four `SourceState` variants, and the winning tier.** It drew a
two-state "Not reachable" off `SrcGroup::reachable()`, which is the only question a `bool` could
answer. The group header's accessory is now `[state] · [tier] · handle`, state FIRST — the accessory
is the last run on that line and elides from the right, so leading with the state means a
34-character plex.tv handle is what gives way rather than the fact that a server is not answering.

`Not authorized` is the point of the change. A 401 is a sharing-grant problem whose remedy is one
row down in the same panel — "Check for new shares" IS the `/api/v2/resources` refetch that reissues
the per-(user, server) token. Calling it "not reachable" sends the user to look at a router for
something no router was ever part of. `NotProbed` says nothing, and that is not an omission: a group
only reaches this list once its libraries have landed, so "nobody has dialled" there is a fact about
our own instrumentation, and stating it would put a warning on a working server.

Relay and Remote are spoken; Local is not. Relay is a ~2 Mbit/s tunnel the server transcodes down to
fit, which reads as a broken server unless something says why; Remote explains a slower first frame
and a transcode on a file that direct-plays at home; Local is what a server is expected to be, and
annotating every group with it is noise. A tier is only spoken for a group that WORKS — "Not
reachable · Relay · friend" reads as three problems where there is one.

The dim is a new question. `SrcGroup::reachable()` answers the old two-state one, in which
`Unauthorized` comes back `true` — not because it is browsable but because a `bool` had no way to
say otherwise. `usable()` is an exhaustive match, so a fifth state has to be given an answer rather
than inheriting one, and it still defers to `reachable()` for the three states that method gets
right. `browse.rs` needed no edit.

**And the profile chip.** It decided signed-in-ness from `current().title.is_empty()`, but an
account without Plex Home never gets a profile written at all — so that title is empty for a
signed-in owner, and the chip offered them "Sign in" while the menu behind it already headed itself
with their name and offered "Sign out". On a fresh single-user test account that is the first thing
a reviewer sees. `ui/account_menu.rs`'s module doc has recorded it since the menu was converted, and
named `ui/widgets.rs` as the fix site.

Fixed by moving the words rather than writing the same match a second time: `chip_label` is the one
resolver, it lives beside the rows it has to agree with, and the chip calls it. The avatar's initial
comes off the same name, so a chip reading "Gleb" can never carry somebody else's letter. `peek`,
not `load` — drawing a chip must never be able to WRITE the session file — and the read is inside
the generation-keyed cache, which is the shape `session::peek`'s own "no per-frame reader" note asks
for.

1075 host tests (1069 on the base). Prose corrected where this makes it false: `plex/session.rs`'s
`Account` doc, and `docs/parity-gaps.md`'s now-closed chip entry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* sources: an address you can type, and a seam for whoever dials it

**This commit contradicts a recorded OWNER RULING and is separated from the one before it for that
reason.** `docs/shared-servers.md` §12, dated 2026-08-21, quotes the owner — *"Servers are
configured on a PC or phone. On the television we only CHOOSE from the available servers"* — and
states the consequence: "There is no add-a-server-by-address on the television, and there will not
be." The ruling is left STANDING and annotated rather than rewritten; an agent may not overturn it.
Dropping this commit leaves the one before it building and green, which is the point of the split.

The case that argued for reopening it is `docs/lg-self-checklist.md` #20/#43/#47: a QA bench not on
the same IPv4 LAN as a plaintext-HTTP PMS dead-ends at "no server found", and the app had no surface
anywhere that could be typed an address. That is a question about a REVIEWER being unable to
evaluate the app at all, which is not the question the ruling answered — it may or may not move it.

**No new `Route` and no screen.** It is two rows in the tail of the popover that already exists,
beside "Check for new shares", which is the other answer to "my server is missing" — putting them
side by side is the point. Closed it is one row; open it is the field plus its action row, and the
COUNT holds still because a popover's height is measured from its rows and a sub-line appearing as
you type would resize the panel under the cursor. `Tail::Recheck` becomes `Tail::Panel(&Add)`,
carrying the field's state, so `ui/onboard.rs`'s `Tail::None` call site — which has no field and
never will — did not have to learn about a state it cannot reach.

The row model, the parse and every read-out are pure and tested that way. `ui/library.rs` is the
wiring; `app.rs` gains a `Route::Library` key guard mirroring the `Route::Search` one already there,
because the television's keyboard has no caret and delegates its delete and Clear-all to the app as
ordinary key syms.

**The seam.** The panel's job ends at a validated `Endpoint`. Dialling it, checking `/identity`,
merging by `machineIdentifier` and registering is worker-thread work with a socket in it and is not
here: the two halves meet at `take_request()` and `report(id, ok)` and nothing else. Nothing takes
the request today, so the field ages out after 20s saying nothing answered — literally true of a
request nobody picked up, and the right read-out once somebody does and the address is wrong.

**A one-source failure now KEEPS the Source chip.** That toolbar row used to empty completely, which
was defensible only while the panel had nothing to offer a user with one server. It was the single
state in the app where somebody whose only server cannot be dialled had nowhere to type one — the
exact dead end this exists to remove. The design's rule is untouched where it argued about a WORKING
library: one source, nothing wrong, still no chip.

Five findings from `/code-review high`, all fixed and each with a test:

- **A panic that killed the app.** `has_prefix_ci` byte-sliced the typed text, and the field
  re-parses on EVERY keystroke to state the port — so a hostname in Cyrillic or Japanese whose 7th
  or 8th byte falls mid-codepoint panicked out of the SDL event loop. `str::get(..n)` now, and the
  simulator survives "привет" with the app still running.
- **The keyboard wedge Search is explicitly defended against.** An app-switch left
  `textinput::STARTED` true and `start()` early-returns on it, so the panel never rose again.
  `app.rs`'s background arm now calls `library::leave_keyboard()` beside `search::leave()` — keeping
  what was typed, because an app switch is the OS moving the screen, not the user abandoning it.
- **The tail vanished on an empty list.** It hung off the last GROUP, so a roster where nothing has
  libraries yet drew neither way out, in precisely the state both rows exist for. It is its own
  headerless section now, with no separator drawn over nothing.
- **The mailboxes had no request identity**, so a late answer for an attempt the user had already
  replaced would land on the new address. They carry a `ReqId` and a mismatched verdict is dropped.
- **`::32400` parsed as a machine NAME** and lit Connect, because the host whitelist allowed `:`
  unconditionally. A multi-colon host is shape-checked as an IPv6 literal instead.

1088 host tests (1075 on the commit before it). Prose corrected where this makes it false:
`ui/consts.rs`'s two "only the Search screen reads these" claims and `docs/distribution.md` §7.
`docs/lg-self-checklist.md` carries the same false sentence and is the integrator's file — the
replacement wording is in the PR body rather than in this diff.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* Revert "sources: an address you can type, and a seam for whoever dials it"

This reverts commit b61ce64.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 26, 2026
The checklist is a submission DOCUMENT, not a private rubric, and its own preamble
is the reason this file exists: every item must be Pass or N/A, and marking one
Pass when it should be N/A — or vice versa — is a stated rejection ground. So
"we never tested it" is not a markable state, which makes the UNTESTED column
matter as much as the failing one. Eleven items sit there today.

Four fail outright, and three of those are one root cause: `stream.rs::http_open`
builds a `sockaddr_in` from four decimal octets, so no TLS, no DNS, IPv4 only —
which takes out #20, #43 and #47 together the moment a QA bench is not on the same
LAN as a plaintext PMS. Plus no ABR (#43 CASE1) and factory reset (#53), which is
undefined for a sideloaded app.

§4 records the four items that moved on 2026-08-22 and why they are worth reading
together: every one was found by LOOKING AT THE PANEL, and not one was visible in
a green test run. Subtitles rendering `.notdef` tofu because neither Inter nor the
television has U+2669-U+266C; transport keys bound to CEA-2014-A web keyCodes
instead of the native scancodes the app actually receives; a splash 63% black
against LG's "should not be black"; and `requiredMemory` asking for less headroom
than declaring nothing would have.

§5 records the two items that are DECISIONS rather than defects — no on-screen
transport button row, and English-only — because a future reader of the checklist
will otherwise try to "fix" the first one, and item 45's own remark ("refer to UX
scenario for movement details") is what makes the UX scenario document, not code,
the place that answer belongs.

§7 names the defect class rather than the bug: the music note was the visible tip
of "any codepoint outside Inter tofus", which is CJK, Hebrew, Arabic and Thai
titles and subtitles, hits the same two items, and nothing in the host suite can
see.

Co-Authored-By: Claude Opus 5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 26, 2026
* sources: four states where there were two, and the chip stops calling a signed-in owner signed out

Two things the Sources panel and the shared top bar were saying wrongly. Neither depends on the
other; both are the words a surface uses about a fact it already had.

**The Sources panel renders all four `SourceState` variants, and the winning tier.** It drew a
two-state "Not reachable" off `SrcGroup::reachable()`, which is the only question a `bool` could
answer. The group header's accessory is now `[state] · [tier] · handle`, state FIRST — the accessory
is the last run on that line and elides from the right, so leading with the state means a
34-character plex.tv handle is what gives way rather than the fact that a server is not answering.

`Not authorized` is the point of the change. A 401 is a sharing-grant problem whose remedy is one
row down in the same panel — "Check for new shares" IS the `/api/v2/resources` refetch that reissues
the per-(user, server) token. Calling it "not reachable" sends the user to look at a router for
something no router was ever part of. `NotProbed` says nothing, and that is not an omission: a group
only reaches this list once its libraries have landed, so "nobody has dialled" there is a fact about
our own instrumentation, and stating it would put a warning on a working server.

Relay and Remote are spoken; Local is not. Relay is a ~2 Mbit/s tunnel the server transcodes down to
fit, which reads as a broken server unless something says why; Remote explains a slower first frame
and a transcode on a file that direct-plays at home; Local is what a server is expected to be, and
annotating every group with it is noise. A tier is only spoken for a group that WORKS — "Not
reachable · Relay · friend" reads as three problems where there is one.

The dim is a new question. `SrcGroup::reachable()` answers the old two-state one, in which
`Unauthorized` comes back `true` — not because it is browsable but because a `bool` had no way to
say otherwise. `usable()` is an exhaustive match, so a fifth state has to be given an answer rather
than inheriting one, and it still defers to `reachable()` for the three states that method gets
right. `browse.rs` needed no edit.

**And the profile chip.** It decided signed-in-ness from `current().title.is_empty()`, but an
account without Plex Home never gets a profile written at all — so that title is empty for a
signed-in owner, and the chip offered them "Sign in" while the menu behind it already headed itself
with their name and offered "Sign out". On a fresh single-user test account that is the first thing
a reviewer sees. `ui/account_menu.rs`'s module doc has recorded it since the menu was converted, and
named `ui/widgets.rs` as the fix site.

Fixed by moving the words rather than writing the same match a second time: `chip_label` is the one
resolver, it lives beside the rows it has to agree with, and the chip calls it. The avatar's initial
comes off the same name, so a chip reading "Gleb" can never carry somebody else's letter. `peek`,
not `load` — drawing a chip must never be able to WRITE the session file — and the read is inside
the generation-keyed cache, which is the shape `session::peek`'s own "no per-frame reader" note asks
for.

1075 host tests (1069 on the base). Prose corrected where this makes it false: `plex/session.rs`'s
`Account` doc, and `docs/parity-gaps.md`'s now-closed chip entry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* sources: an address you can type, and a seam for whoever dials it

**This commit contradicts a recorded OWNER RULING and is separated from the one before it for that
reason.** `docs/shared-servers.md` §12, dated 2026-08-21, quotes the owner — *"Servers are
configured on a PC or phone. On the television we only CHOOSE from the available servers"* — and
states the consequence: "There is no add-a-server-by-address on the television, and there will not
be." The ruling is left STANDING and annotated rather than rewritten; an agent may not overturn it.
Dropping this commit leaves the one before it building and green, which is the point of the split.

The case that argued for reopening it is `docs/lg-self-checklist.md` #20/#43/#47: a QA bench not on
the same IPv4 LAN as a plaintext-HTTP PMS dead-ends at "no server found", and the app had no surface
anywhere that could be typed an address. That is a question about a REVIEWER being unable to
evaluate the app at all, which is not the question the ruling answered — it may or may not move it.

**No new `Route` and no screen.** It is two rows in the tail of the popover that already exists,
beside "Check for new shares", which is the other answer to "my server is missing" — putting them
side by side is the point. Closed it is one row; open it is the field plus its action row, and the
COUNT holds still because a popover's height is measured from its rows and a sub-line appearing as
you type would resize the panel under the cursor. `Tail::Recheck` becomes `Tail::Panel(&Add)`,
carrying the field's state, so `ui/onboard.rs`'s `Tail::None` call site — which has no field and
never will — did not have to learn about a state it cannot reach.

The row model, the parse and every read-out are pure and tested that way. `ui/library.rs` is the
wiring; `app.rs` gains a `Route::Library` key guard mirroring the `Route::Search` one already there,
because the television's keyboard has no caret and delegates its delete and Clear-all to the app as
ordinary key syms.

**The seam.** The panel's job ends at a validated `Endpoint`. Dialling it, checking `/identity`,
merging by `machineIdentifier` and registering is worker-thread work with a socket in it and is not
here: the two halves meet at `take_request()` and `report(id, ok)` and nothing else. Nothing takes
the request today, so the field ages out after 20s saying nothing answered — literally true of a
request nobody picked up, and the right read-out once somebody does and the address is wrong.

**A one-source failure now KEEPS the Source chip.** That toolbar row used to empty completely, which
was defensible only while the panel had nothing to offer a user with one server. It was the single
state in the app where somebody whose only server cannot be dialled had nowhere to type one — the
exact dead end this exists to remove. The design's rule is untouched where it argued about a WORKING
library: one source, nothing wrong, still no chip.

Five findings from `/code-review high`, all fixed and each with a test:

- **A panic that killed the app.** `has_prefix_ci` byte-sliced the typed text, and the field
  re-parses on EVERY keystroke to state the port — so a hostname in Cyrillic or Japanese whose 7th
  or 8th byte falls mid-codepoint panicked out of the SDL event loop. `str::get(..n)` now, and the
  simulator survives "привет" with the app still running.
- **The keyboard wedge Search is explicitly defended against.** An app-switch left
  `textinput::STARTED` true and `start()` early-returns on it, so the panel never rose again.
  `app.rs`'s background arm now calls `library::leave_keyboard()` beside `search::leave()` — keeping
  what was typed, because an app switch is the OS moving the screen, not the user abandoning it.
- **The tail vanished on an empty list.** It hung off the last GROUP, so a roster where nothing has
  libraries yet drew neither way out, in precisely the state both rows exist for. It is its own
  headerless section now, with no separator drawn over nothing.
- **The mailboxes had no request identity**, so a late answer for an attempt the user had already
  replaced would land on the new address. They carry a `ReqId` and a mismatched verdict is dropped.
- **`::32400` parsed as a machine NAME** and lit Connect, because the host whitelist allowed `:`
  unconditionally. A multi-colon host is shape-checked as an IPv6 literal instead.

1088 host tests (1075 on the commit before it). Prose corrected where this makes it false:
`ui/consts.rs`'s two "only the Search screen reads these" claims and `docs/distribution.md` §7.
`docs/lg-self-checklist.md` carries the same false sentence and is the integrator's file — the
replacement wording is in the PR body rather than in this diff.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* Revert "sources: an address you can type, and a seam for whoever dials it"

This reverts commit b61ce64.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 27, 2026
The checklist is a submission DOCUMENT, not a private rubric, and its own preamble
is the reason this file exists: every item must be Pass or N/A, and marking one
Pass when it should be N/A — or vice versa — is a stated rejection ground. So
"we never tested it" is not a markable state, which makes the UNTESTED column
matter as much as the failing one. Eleven items sit there today.

Four fail outright, and three of those are one root cause: `stream.rs::http_open`
builds a `sockaddr_in` from four decimal octets, so no TLS, no DNS, IPv4 only —
which takes out #20, #43 and #47 together the moment a QA bench is not on the same
LAN as a plaintext PMS. Plus no ABR (#43 CASE1) and factory reset (#53), which is
undefined for a sideloaded app.

§4 records the four items that moved on 2026-08-22 and why they are worth reading
together: every one was found by LOOKING AT THE PANEL, and not one was visible in
a green test run. Subtitles rendering `.notdef` tofu because neither Inter nor the
television has U+2669-U+266C; transport keys bound to CEA-2014-A web keyCodes
instead of the native scancodes the app actually receives; a splash 63% black
against LG's "should not be black"; and `requiredMemory` asking for less headroom
than declaring nothing would have.

§5 records the two items that are DECISIONS rather than defects — no on-screen
transport button row, and English-only — because a future reader of the checklist
will otherwise try to "fix" the first one, and item 45's own remark ("refer to UX
scenario for movement details") is what makes the UX scenario document, not code,
the place that answer belongs.

§7 names the defect class rather than the bug: the music note was the visible tip
of "any codepoint outside Inter tofus", which is CJK, Hebrew, Arabic and Thai
titles and subtitles, hits the same two items, and nothing in the host suite can
see.

Co-Authored-By: Claude Opus 5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 27, 2026
* sources: four states where there were two, and the chip stops calling a signed-in owner signed out

Two things the Sources panel and the shared top bar were saying wrongly. Neither depends on the
other; both are the words a surface uses about a fact it already had.

**The Sources panel renders all four `SourceState` variants, and the winning tier.** It drew a
two-state "Not reachable" off `SrcGroup::reachable()`, which is the only question a `bool` could
answer. The group header's accessory is now `[state] · [tier] · handle`, state FIRST — the accessory
is the last run on that line and elides from the right, so leading with the state means a
34-character plex.tv handle is what gives way rather than the fact that a server is not answering.

`Not authorized` is the point of the change. A 401 is a sharing-grant problem whose remedy is one
row down in the same panel — "Check for new shares" IS the `/api/v2/resources` refetch that reissues
the per-(user, server) token. Calling it "not reachable" sends the user to look at a router for
something no router was ever part of. `NotProbed` says nothing, and that is not an omission: a group
only reaches this list once its libraries have landed, so "nobody has dialled" there is a fact about
our own instrumentation, and stating it would put a warning on a working server.

Relay and Remote are spoken; Local is not. Relay is a ~2 Mbit/s tunnel the server transcodes down to
fit, which reads as a broken server unless something says why; Remote explains a slower first frame
and a transcode on a file that direct-plays at home; Local is what a server is expected to be, and
annotating every group with it is noise. A tier is only spoken for a group that WORKS — "Not
reachable · Relay · friend" reads as three problems where there is one.

The dim is a new question. `SrcGroup::reachable()` answers the old two-state one, in which
`Unauthorized` comes back `true` — not because it is browsable but because a `bool` had no way to
say otherwise. `usable()` is an exhaustive match, so a fifth state has to be given an answer rather
than inheriting one, and it still defers to `reachable()` for the three states that method gets
right. `browse.rs` needed no edit.

**And the profile chip.** It decided signed-in-ness from `current().title.is_empty()`, but an
account without Plex Home never gets a profile written at all — so that title is empty for a
signed-in owner, and the chip offered them "Sign in" while the menu behind it already headed itself
with their name and offered "Sign out". On a fresh single-user test account that is the first thing
a reviewer sees. `ui/account_menu.rs`'s module doc has recorded it since the menu was converted, and
named `ui/widgets.rs` as the fix site.

Fixed by moving the words rather than writing the same match a second time: `chip_label` is the one
resolver, it lives beside the rows it has to agree with, and the chip calls it. The avatar's initial
comes off the same name, so a chip reading "Gleb" can never carry somebody else's letter. `peek`,
not `load` — drawing a chip must never be able to WRITE the session file — and the read is inside
the generation-keyed cache, which is the shape `session::peek`'s own "no per-frame reader" note asks
for.

1075 host tests (1069 on the base). Prose corrected where this makes it false: `plex/session.rs`'s
`Account` doc, and `docs/parity-gaps.md`'s now-closed chip entry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* sources: an address you can type, and a seam for whoever dials it

**This commit contradicts a recorded OWNER RULING and is separated from the one before it for that
reason.** `docs/shared-servers.md` §12, dated 2026-08-21, quotes the owner — *"Servers are
configured on a PC or phone. On the television we only CHOOSE from the available servers"* — and
states the consequence: "There is no add-a-server-by-address on the television, and there will not
be." The ruling is left STANDING and annotated rather than rewritten; an agent may not overturn it.
Dropping this commit leaves the one before it building and green, which is the point of the split.

The case that argued for reopening it is `docs/lg-self-checklist.md` #20/#43/#47: a QA bench not on
the same IPv4 LAN as a plaintext-HTTP PMS dead-ends at "no server found", and the app had no surface
anywhere that could be typed an address. That is a question about a REVIEWER being unable to
evaluate the app at all, which is not the question the ruling answered — it may or may not move it.

**No new `Route` and no screen.** It is two rows in the tail of the popover that already exists,
beside "Check for new shares", which is the other answer to "my server is missing" — putting them
side by side is the point. Closed it is one row; open it is the field plus its action row, and the
COUNT holds still because a popover's height is measured from its rows and a sub-line appearing as
you type would resize the panel under the cursor. `Tail::Recheck` becomes `Tail::Panel(&Add)`,
carrying the field's state, so `ui/onboard.rs`'s `Tail::None` call site — which has no field and
never will — did not have to learn about a state it cannot reach.

The row model, the parse and every read-out are pure and tested that way. `ui/library.rs` is the
wiring; `app.rs` gains a `Route::Library` key guard mirroring the `Route::Search` one already there,
because the television's keyboard has no caret and delegates its delete and Clear-all to the app as
ordinary key syms.

**The seam.** The panel's job ends at a validated `Endpoint`. Dialling it, checking `/identity`,
merging by `machineIdentifier` and registering is worker-thread work with a socket in it and is not
here: the two halves meet at `take_request()` and `report(id, ok)` and nothing else. Nothing takes
the request today, so the field ages out after 20s saying nothing answered — literally true of a
request nobody picked up, and the right read-out once somebody does and the address is wrong.

**A one-source failure now KEEPS the Source chip.** That toolbar row used to empty completely, which
was defensible only while the panel had nothing to offer a user with one server. It was the single
state in the app where somebody whose only server cannot be dialled had nowhere to type one — the
exact dead end this exists to remove. The design's rule is untouched where it argued about a WORKING
library: one source, nothing wrong, still no chip.

Five findings from `/code-review high`, all fixed and each with a test:

- **A panic that killed the app.** `has_prefix_ci` byte-sliced the typed text, and the field
  re-parses on EVERY keystroke to state the port — so a hostname in Cyrillic or Japanese whose 7th
  or 8th byte falls mid-codepoint panicked out of the SDL event loop. `str::get(..n)` now, and the
  simulator survives "привет" with the app still running.
- **The keyboard wedge Search is explicitly defended against.** An app-switch left
  `textinput::STARTED` true and `start()` early-returns on it, so the panel never rose again.
  `app.rs`'s background arm now calls `library::leave_keyboard()` beside `search::leave()` — keeping
  what was typed, because an app switch is the OS moving the screen, not the user abandoning it.
- **The tail vanished on an empty list.** It hung off the last GROUP, so a roster where nothing has
  libraries yet drew neither way out, in precisely the state both rows exist for. It is its own
  headerless section now, with no separator drawn over nothing.
- **The mailboxes had no request identity**, so a late answer for an attempt the user had already
  replaced would land on the new address. They carry a `ReqId` and a mismatched verdict is dropped.
- **`::32400` parsed as a machine NAME** and lit Connect, because the host whitelist allowed `:`
  unconditionally. A multi-colon host is shape-checked as an IPv6 literal instead.

1088 host tests (1075 on the commit before it). Prose corrected where this makes it false:
`ui/consts.rs`'s two "only the Search screen reads these" claims and `docs/distribution.md` §7.
`docs/lg-self-checklist.md` carries the same false sentence and is the integrator's file — the
replacement wording is in the PR body rather than in this diff.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* Revert "sources: an address you can type, and a seam for whoever dials it"

This reverts commit d9513e523518ca362f9b92a797c9b762bebabbcc.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 28, 2026
The checklist is a submission DOCUMENT, not a private rubric, and its own preamble
is the reason this file exists: every item must be Pass or N/A, and marking one
Pass when it should be N/A — or vice versa — is a stated rejection ground. So
"we never tested it" is not a markable state, which makes the UNTESTED column
matter as much as the failing one. Eleven items sit there today.

Four fail outright, and three of those are one root cause: `stream.rs::http_open`
builds a `sockaddr_in` from four decimal octets, so no TLS, no DNS, IPv4 only —
which takes out #20, #43 and #47 together the moment a QA bench is not on the same
LAN as a plaintext PMS. Plus no ABR (#43 CASE1) and factory reset (#53), which is
undefined for a sideloaded app.

§4 records the four items that moved on 2026-08-22 and why they are worth reading
together: every one was found by LOOKING AT THE PANEL, and not one was visible in
a green test run. Subtitles rendering `.notdef` tofu because neither Inter nor the
television has U+2669-U+266C; transport keys bound to CEA-2014-A web keyCodes
instead of the native scancodes the app actually receives; a splash 63% black
against LG's "should not be black"; and `requiredMemory` asking for less headroom
than declaring nothing would have.

§5 records the two items that are DECISIONS rather than defects — no on-screen
transport button row, and English-only — because a future reader of the checklist
will otherwise try to "fix" the first one, and item 45's own remark ("refer to UX
scenario for movement details") is what makes the UX scenario document, not code,
the place that answer belongs.

§7 names the defect class rather than the bug: the music note was the visible tip
of "any codepoint outside Inter tofus", which is CJK, Hebrew, Arabic and Thai
titles and subtitles, hits the same two items, and nothing in the host suite can
see.

Co-Authored-By: Claude Opus 5 <[email protected]>
GLinnik21 added a commit that referenced this pull request Aug 28, 2026
* sources: four states where there were two, and the chip stops calling a signed-in owner signed out

Two things the Sources panel and the shared top bar were saying wrongly. Neither depends on the
other; both are the words a surface uses about a fact it already had.

**The Sources panel renders all four `SourceState` variants, and the winning tier.** It drew a
two-state "Not reachable" off `SrcGroup::reachable()`, which is the only question a `bool` could
answer. The group header's accessory is now `[state] · [tier] · handle`, state FIRST — the accessory
is the last run on that line and elides from the right, so leading with the state means a
34-character plex.tv handle is what gives way rather than the fact that a server is not answering.

`Not authorized` is the point of the change. A 401 is a sharing-grant problem whose remedy is one
row down in the same panel — "Check for new shares" IS the `/api/v2/resources` refetch that reissues
the per-(user, server) token. Calling it "not reachable" sends the user to look at a router for
something no router was ever part of. `NotProbed` says nothing, and that is not an omission: a group
only reaches this list once its libraries have landed, so "nobody has dialled" there is a fact about
our own instrumentation, and stating it would put a warning on a working server.

Relay and Remote are spoken; Local is not. Relay is a ~2 Mbit/s tunnel the server transcodes down to
fit, which reads as a broken server unless something says why; Remote explains a slower first frame
and a transcode on a file that direct-plays at home; Local is what a server is expected to be, and
annotating every group with it is noise. A tier is only spoken for a group that WORKS — "Not
reachable · Relay · friend" reads as three problems where there is one.

The dim is a new question. `SrcGroup::reachable()` answers the old two-state one, in which
`Unauthorized` comes back `true` — not because it is browsable but because a `bool` had no way to
say otherwise. `usable()` is an exhaustive match, so a fifth state has to be given an answer rather
than inheriting one, and it still defers to `reachable()` for the three states that method gets
right. `browse.rs` needed no edit.

**And the profile chip.** It decided signed-in-ness from `current().title.is_empty()`, but an
account without Plex Home never gets a profile written at all — so that title is empty for a
signed-in owner, and the chip offered them "Sign in" while the menu behind it already headed itself
with their name and offered "Sign out". On a fresh single-user test account that is the first thing
a reviewer sees. `ui/account_menu.rs`'s module doc has recorded it since the menu was converted, and
named `ui/widgets.rs` as the fix site.

Fixed by moving the words rather than writing the same match a second time: `chip_label` is the one
resolver, it lives beside the rows it has to agree with, and the chip calls it. The avatar's initial
comes off the same name, so a chip reading "Gleb" can never carry somebody else's letter. `peek`,
not `load` — drawing a chip must never be able to WRITE the session file — and the read is inside
the generation-keyed cache, which is the shape `session::peek`'s own "no per-frame reader" note asks
for.

1075 host tests (1069 on the base). Prose corrected where this makes it false: `plex/session.rs`'s
`Account` doc, and `docs/parity-gaps.md`'s now-closed chip entry.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* sources: an address you can type, and a seam for whoever dials it

**This commit contradicts a recorded OWNER RULING and is separated from the one before it for that
reason.** `docs/shared-servers.md` §12, dated 2026-08-21, quotes the owner — *"Servers are
configured on a PC or phone. On the television we only CHOOSE from the available servers"* — and
states the consequence: "There is no add-a-server-by-address on the television, and there will not
be." The ruling is left STANDING and annotated rather than rewritten; an agent may not overturn it.
Dropping this commit leaves the one before it building and green, which is the point of the split.

The case that argued for reopening it is `docs/lg-self-checklist.md` #20/#43/#47: a QA bench not on
the same IPv4 LAN as a plaintext-HTTP PMS dead-ends at "no server found", and the app had no surface
anywhere that could be typed an address. That is a question about a REVIEWER being unable to
evaluate the app at all, which is not the question the ruling answered — it may or may not move it.

**No new `Route` and no screen.** It is two rows in the tail of the popover that already exists,
beside "Check for new shares", which is the other answer to "my server is missing" — putting them
side by side is the point. Closed it is one row; open it is the field plus its action row, and the
COUNT holds still because a popover's height is measured from its rows and a sub-line appearing as
you type would resize the panel under the cursor. `Tail::Recheck` becomes `Tail::Panel(&Add)`,
carrying the field's state, so `ui/onboard.rs`'s `Tail::None` call site — which has no field and
never will — did not have to learn about a state it cannot reach.

The row model, the parse and every read-out are pure and tested that way. `ui/library.rs` is the
wiring; `app.rs` gains a `Route::Library` key guard mirroring the `Route::Search` one already there,
because the television's keyboard has no caret and delegates its delete and Clear-all to the app as
ordinary key syms.

**The seam.** The panel's job ends at a validated `Endpoint`. Dialling it, checking `/identity`,
merging by `machineIdentifier` and registering is worker-thread work with a socket in it and is not
here: the two halves meet at `take_request()` and `report(id, ok)` and nothing else. Nothing takes
the request today, so the field ages out after 20s saying nothing answered — literally true of a
request nobody picked up, and the right read-out once somebody does and the address is wrong.

**A one-source failure now KEEPS the Source chip.** That toolbar row used to empty completely, which
was defensible only while the panel had nothing to offer a user with one server. It was the single
state in the app where somebody whose only server cannot be dialled had nowhere to type one — the
exact dead end this exists to remove. The design's rule is untouched where it argued about a WORKING
library: one source, nothing wrong, still no chip.

Five findings from `/code-review high`, all fixed and each with a test:

- **A panic that killed the app.** `has_prefix_ci` byte-sliced the typed text, and the field
  re-parses on EVERY keystroke to state the port — so a hostname in Cyrillic or Japanese whose 7th
  or 8th byte falls mid-codepoint panicked out of the SDL event loop. `str::get(..n)` now, and the
  simulator survives "привет" with the app still running.
- **The keyboard wedge Search is explicitly defended against.** An app-switch left
  `textinput::STARTED` true and `start()` early-returns on it, so the panel never rose again.
  `app.rs`'s background arm now calls `library::leave_keyboard()` beside `search::leave()` — keeping
  what was typed, because an app switch is the OS moving the screen, not the user abandoning it.
- **The tail vanished on an empty list.** It hung off the last GROUP, so a roster where nothing has
  libraries yet drew neither way out, in precisely the state both rows exist for. It is its own
  headerless section now, with no separator drawn over nothing.
- **The mailboxes had no request identity**, so a late answer for an attempt the user had already
  replaced would land on the new address. They carry a `ReqId` and a mismatched verdict is dropped.
- **`::32400` parsed as a machine NAME** and lit Connect, because the host whitelist allowed `:`
  unconditionally. A multi-colon host is shape-checked as an IPv6 literal instead.

1088 host tests (1075 on the commit before it). Prose corrected where this makes it false:
`ui/consts.rs`'s two "only the Search screen reads these" claims and `docs/distribution.md` §7.
`docs/lg-self-checklist.md` carries the same false sentence and is the integrator's file — the
replacement wording is in the PR body rather than in this diff.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01GovTtrsD9P7Ld7DnLCMK2G

* Revert "sources: an address you can type, and a seam for whoever dials it"

This reverts commit d9513e523518ca362f9b92a797c9b762bebabbcc.

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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