From a2b76bd6346da8afeb9aed341477890becbf571b Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:15:46 +0100 Subject: [PATCH 01/12] feat(web): distill shell rail --- DESIGN.md | 4 ++++ web/index.html | 29 ++++++++++++++++++----------- web/src/icons.ts | 6 ++++++ web/src/main.ts | 22 ++++++---------------- web/src/settings.ts | 1 + web/src/style.css | 28 ++++++++++++++-------------- 6 files changed, 49 insertions(+), 41 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index fed28ea..5752878 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -743,6 +743,10 @@ is healthy survives the move and no navigation is needed to get it. **The wordmark is a link home.** `arr` on the rail navigates to `/`. +**The rail composition is fixed.** From left to right it carries the master +lamp and wordmark, a warning mark only while queues need attention, the centred +search, the version readout and the settings cog. + ## 10. Persistence SQLite via `sqlx`, compile-time-checked queries, migrations in `arr-db`. diff --git a/web/index.html b/web/index.html index d915b03..ce5cb2b 100644 --- a/web/index.html +++ b/web/index.html @@ -76,17 +76,16 @@ arr - + diff --git a/web/src/icons.ts b/web/src/icons.ts index 45786e2..4c6cfd4 100644 --- a/web/src/icons.ts +++ b/web/src/icons.ts @@ -22,6 +22,12 @@ const ICON_PATHS = { "M11.2 2.4a1.5 1.5 0 0 1 2.1 0l.3.3a1.5 1.5 0 0 1 0 2.1L5.9 12.5l-3.2.8.8-3.2z", "M10.1 3.5l2.4 2.4", ], + cog: [ + "M8 5.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z", + "M8 1.6v1.3M8 13.1v1.3M14.4 8h-1.3M2.9 8H1.6M12.5 3.5l-.9.9M4.4 11.6l-.9.9M12.5 12.5l-.9-.9M4.4 4.4l-.9-.9", + "M10.8 3.1l.7 1.7 1.7.7-1.7.7-.7 1.7-.7-1.7-1.7-.7 1.7-.7z", + ], + warning: ["M8 1.8l6.2 11H1.8z", "M8 5.3v3.4M8 11.2h.01"], } as const; /** Stroke glyph on the shared 16-grid; the control's aria-label carries the meaning. */ diff --git a/web/src/main.ts b/web/src/main.ts index 4dcd69d..ecf8625 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -325,7 +325,7 @@ function main() { library.open(); await movieDetail.open( route.movieId, - must("#nav-library"), + must("#wordmark"), must("#library"), { kind: "library", @@ -350,7 +350,7 @@ function main() { library.open(); await seriesDetail.open( route.seriesId, - must("#nav-library"), + must("#wordmark"), must("#library"), { kind: "library", @@ -396,7 +396,7 @@ function main() { library.open(); await seriesDetail.open( seriesId, - must("#nav-library"), + must("#wordmark"), must("#library"), { kind: "library" }, ); @@ -407,7 +407,7 @@ function main() { sub, seriesId, target, - origin: must("#nav-library"), + origin: must("#wordmark"), returnTo: must("#series"), parentRoute: { kind: "series", seriesId }, }); @@ -2532,7 +2532,6 @@ function libraryMain( ): LibraryView { const view = must("#library"); const deck = must("#deck"); - const nav = must("#nav-library"); const summary = must("#library-summary"); const toggle = must("#library-toggle"); const status = must("#library-status"); @@ -2677,25 +2676,14 @@ function libraryMain( } deck.hidden = true; view.hidden = false; - nav.setAttribute("aria-pressed", "true"); void load(); } function hide() { view.hidden = true; - nav.setAttribute("aria-pressed", "false"); sequence += 1; } - // §9.7: the library is the homepage — the bottom layer. There is nothing - // beneath it, so the nav control never toggles off and Esc has no handler. - nav.addEventListener("click", () => { - if (view.hidden) { - navigate({ kind: "library" }); - open(); - } - }); - toggle.addEventListener("click", () => { showAll = !showAll; render(); @@ -4128,6 +4116,7 @@ function queuesMain(movieDetail: MovieView, views: HideableView[], goHome: () => const view = must("#queues"); const deck = must("#deck"); const nav = must("#nav-queues"); + nav.prepend(icon("warning")); const badge = must("#queues-count"); const summary = must("#queues-summary"); const status = must("#queues-status"); @@ -4167,6 +4156,7 @@ function queuesMain(movieDetail: MovieView, views: HideableView[], goHome: () => } function paintBadge(total: number) { + nav.hidden = total === 0; badge.hidden = total === 0; badge.textContent = total === 0 ? "" : String(total); } diff --git a/web/src/settings.ts b/web/src/settings.ts index 1e5bdbf..b00be58 100644 --- a/web/src/settings.ts +++ b/web/src/settings.ts @@ -206,6 +206,7 @@ export function settingsMain(views: { hide: () => void }[], goHome: () => void): const view = must("#settings"); const deck = must("#deck"); const nav = must("#nav-settings"); + nav.append(icon("cog")); const summary = must("#settings-summary"); const status = must("#settings-status"); const rootsSection = must("#group-roots"); diff --git a/web/src/style.css b/web/src/style.css index 4980295..ca9df2f 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -142,6 +142,7 @@ body { /* contents share the deck's column; the panel itself stays full-bleed */ .rail-inner { + position: relative; display: flex; align-items: center; gap: var(--space-6); @@ -178,8 +179,6 @@ body { display: flex; align-items: center; gap: var(--space-4); - /* the verdict line used to absorb the slack; without it the readout - needs to claim the right edge itself */ margin-left: auto; } @@ -529,9 +528,11 @@ body { /* ---- unified search (§9.2) ------------------------------------------- */ .rail-search { - position: relative; - flex: 1; + position: absolute; + left: 50%; + width: min(30rem, calc(100% - 20rem)); max-width: 30rem; + transform: translateX(-50%); display: flex; align-items: center; } @@ -1337,10 +1338,6 @@ body { /* ---- library view (§4.2) ---------------------------------------------- */ -.rail-nav { - flex: none; -} - /* the library's master line: total readout left, the one §4.2 toggle right */ .library-bar { margin: 0 0 var(--space-6); @@ -1639,6 +1636,10 @@ body { color: var(--signal-warn); } +.rail #nav-queues[hidden] { + display: none; +} + .queue-note { margin: var(--space-2) var(--space-1) 0; font-size: var(--text-xs); @@ -1901,6 +1902,7 @@ body { @media (max-width: 46rem) { .rail-inner { + position: static; flex-wrap: wrap; gap: var(--space-3) var(--space-4); } @@ -1919,15 +1921,13 @@ body { } .rail-search { + position: relative; + left: auto; + width: auto; order: 4; flex-basis: 100%; max-width: none; - } - - /* deterministic first row: identity, views, then meta pushed right — - never re-wrapped by content or scrollbar changes */ - .rail-nav { - order: 2; + transform: none; } .rail-meta { From eeaad5225700961d1c8b031536555e9c993132eb Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:19:19 +0100 Subject: [PATCH 02/12] fix(web): draw a gear, not a sun --- web/src/icons.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/icons.ts b/web/src/icons.ts index 4c6cfd4..aa5fb9d 100644 --- a/web/src/icons.ts +++ b/web/src/icons.ts @@ -23,9 +23,8 @@ const ICON_PATHS = { "M10.1 3.5l2.4 2.4", ], cog: [ - "M8 5.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Z", - "M8 1.6v1.3M8 13.1v1.3M14.4 8h-1.3M2.9 8H1.6M12.5 3.5l-.9.9M4.4 11.6l-.9.9M12.5 12.5l-.9-.9M4.4 4.4l-.9-.9", - "M10.8 3.1l.7 1.7 1.7.7-1.7.7-.7 1.7-.7-1.7-1.7-.7 1.7-.7z", + "M6.81 3.56 L7.00 1.68 L9.00 1.68 L9.19 3.56 L11.25 4.75 L12.97 3.97 L13.97 5.71 L12.44 6.81 L12.44 9.19 L13.97 10.29 L12.97 12.03 L11.25 11.25 L9.19 12.44 L9.00 14.32 L7.00 14.32 L6.81 12.44 L4.75 11.25 L3.03 12.03 L2.03 10.29 L3.56 9.19 L3.56 6.81 L2.03 5.71 L3.03 3.97 L4.75 4.75Z", + "M8 5.6a2.4 2.4 0 1 0 0 4.8 2.4 2.4 0 0 0 0-4.8Z", ], warning: ["M8 1.8l6.2 11H1.8z", "M8 5.3v3.4M8 11.2h.01"], } as const; From e1579177972b2acf6ede5b1412b95b8a070eaced Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:27:17 +0100 Subject: [PATCH 03/12] fix(web): show available state as a check glyph Co-Authored-By: Claude Sonnet 5 --- DESIGN.md | 8 ++++++++ web/src/icons.ts | 1 + web/src/main.ts | 14 +++++++++++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/DESIGN.md b/DESIGN.md index 5752878..9c2eae5 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -174,6 +174,14 @@ not yet found, violet (`--status-airing`) for downloading, neutral for untracked. The word stays present in every chip, so state survives with colour removed. +**Amendment (#253):** a drawn check glyph is a shape, not only a hue, so it +survives the same greyscale read a word does — `mediaStateChip`'s `available` +state is a check glyph instead of the word, word kept in the chip's +`aria-label`. The word-stays-present rule otherwise stands as written, for +every chip whose state is a word with no unambiguous glyph — which is every +status chip this section lists. The exception is scoped to `mediaStateChip`, +not to the derived-status chips above. + Season 0 is invisible to all of it: derived status ignores season 0 episodes entirely, so a manually wanted special cannot pin a series at `incomplete` or hold back `ended`. The accepted consequence is that specials are visible and diff --git a/web/src/icons.ts b/web/src/icons.ts index 4c6cfd4..0eb84a9 100644 --- a/web/src/icons.ts +++ b/web/src/icons.ts @@ -28,6 +28,7 @@ const ICON_PATHS = { "M10.8 3.1l.7 1.7 1.7.7-1.7.7-.7 1.7-.7-1.7-1.7-.7 1.7-.7z", ], warning: ["M8 1.8l6.2 11H1.8z", "M8 5.3v3.4M8 11.2h.01"], + check: ["M3.2 8.4l3 3 6.6-6.8"], } as const; /** Stroke glyph on the shared 16-grid; the control's aria-label carries the meaning. */ diff --git a/web/src/main.ts b/web/src/main.ts index ecf8625..55899ea 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -746,8 +746,20 @@ function chip(text: string, extra?: (chip: HTMLSpanElement) => void): HTMLSpanEl return span; } -/** §4.2 state ramp on a media-state chip; the word carries, colour accelerates. */ +/** + * §4.2 state ramp on a media-state chip. `available` is a drawn check glyph — + * a shape, not only a hue, so it still reads greyscale — with the word kept + * as the chip's aria-label; every other state keeps the word on the chip. + */ function mediaStateChip(state: string, wanted: boolean): HTMLSpanElement { + if (state === "available") { + return chip("", (span) => { + span.replaceChildren(icon("check")); + span.setAttribute("aria-label", state); + span.dataset.movieState = state; + span.dataset.wanted = String(wanted); + }); + } return chip(state, (span) => { span.dataset.movieState = state; span.dataset.wanted = String(wanted); From 1bd482db2aff009630de2cf8d3dd22ac6be5058c Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:27:21 +0100 Subject: [PATCH 04/12] fix(web): drop border on the title hero Co-Authored-By: Claude Sonnet 5 --- web/src/style.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/style.css b/web/src/style.css index ca9df2f..2fd2393 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1693,10 +1693,14 @@ body { console charcoal under a scrim, so the readouts keep their contrast — a photo never sits behind text bare. */ +/* the backdrop bleeds to the rail; a .module border and inset highlight + would fight that edge, so the hero drops both */ .movie-hero { position: relative; overflow: hidden; margin: 0 0 var(--space-8); + border: 0; + box-shadow: none; } /* the backdrop layer: painted only when detail supplied one */ From 73d56fe82148507158c9ed81b580eb4dbcfa92e7 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:27:37 +0100 Subject: [PATCH 05/12] fix(web): style row-add like a control Co-Authored-By: Claude Sonnet 5 --- web/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main.ts b/web/src/main.ts index 55899ea..1b795c2 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -969,7 +969,7 @@ function libraryRow( } chips.append(trailerChip("movie", movie.tmdb_id)); const affordance = document.createElement("span"); - affordance.className = "row-add readout"; + affordance.className = "row-add control readout"; affordance.textContent = "open"; chips.append(affordance); body.append(rowTitle(movie.title, movie.year), chips); @@ -1002,7 +1002,7 @@ function librarySeriesRow( } chips.append(trailerChip("tv", series.tmdb_id)); const affordance = document.createElement("span"); - affordance.className = "row-add readout"; + affordance.className = "row-add control readout"; affordance.textContent = "episodes"; chips.append(affordance); body.append(rowTitle(series.title, series.year), chips); From 17ad82f5415fa6a39995426f1573cde09bdd3e9a Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:28:12 +0100 Subject: [PATCH 06/12] fix(web): drop duplicate tmdb hits from search Co-Authored-By: Claude Sonnet 5 --- web/src/main.ts | 39 +++++++++++---------------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/web/src/main.ts b/web/src/main.ts index 1b795c2..8055e94 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -612,11 +612,13 @@ function searchMain( refs.groups.library.rows.append(librarySeriesRow(series, roots, openSeries)); } } - if (response.tmdb.length > 0) { + // a TMDB hit already in the library group above never repeats here + const tmdbHits = response.tmdb.filter((hit) => !inLibrary.has(hit.tmdb_id)); + if (tmdbHits.length > 0) { refs.groups.tmdb.section.hidden = false; - refs.groups.tmdb.count.textContent = String(response.tmdb.length); - for (const hit of response.tmdb) { - refs.groups.tmdb.rows.append(tmdbRow(hit, inLibrary.has(hit.tmdb_id), fetchRoots)); + refs.groups.tmdb.count.textContent = String(tmdbHits.length); + for (const hit of tmdbHits) { + refs.groups.tmdb.rows.append(tmdbRow(hit, fetchRoots)); } } } @@ -1015,30 +1017,18 @@ function librarySeriesRow( } /** A TMDB hit of either kind — the row opens the add flow (§9.2). */ -function tmdbRow( - hit: TmdbMovie | TmdbSeries, - inLibrary: boolean, - fetchRoots: () => Promise, -): HTMLLIElement { +function tmdbRow(hit: TmdbMovie | TmdbSeries, fetchRoots: () => Promise): HTMLLIElement { const { item, row, body, chips } = richRow(); chips.append(chip(hit.original_language)); - if (inLibrary) { - chips.append( - chip("in library", (span) => { - span.dataset.verdict = "eligible"; - }), - ); - } else { - const add = document.createElement("span"); - add.className = "row-add readout"; - add.textContent = "add"; - chips.append(add); - } const rating = ratingChip(hit.vote_average, hit.vote_count); if (rating !== null) { chips.append(rating); } chips.append(trailerChip(hit.kind === "series" ? "tv" : "movie", hit.tmdb_id)); + const add = document.createElement("span"); + add.className = "row-add control readout"; + add.textContent = "add"; + chips.append(add); body.append(rowTitle(hit.title, hit.year), chips); if (hit.overview) { const overview = document.createElement("span"); @@ -1049,13 +1039,6 @@ function tmdbRow( row.append(rowPoster(hit.poster_path, hit.title), body); item.append(row); - if (inLibrary) { - // aria-disabled, not disabled: a dead button would also kill the - // trailer chip's clicks, and that chip stays live on every row - row.setAttribute("aria-disabled", "true"); - return item; - } - row.setAttribute("aria-expanded", "false"); row.addEventListener("click", () => { const open = item.querySelector(".add-panel"); From a97795a997f9bb3f554ab91166e732b7c04395e8 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:28:17 +0100 Subject: [PATCH 07/12] fix(web): show poster in library series rows Co-Authored-By: Claude Sonnet 5 --- web/src/main.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/src/main.ts b/web/src/main.ts index 8055e94..dc66dc4 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -2696,12 +2696,7 @@ function seriesRow( roots: Root[], open: (id: number, origin: HTMLElement) => void, ): HTMLLIElement { - const item = document.createElement("li"); - const row = document.createElement("button"); - row.type = "button"; - row.className = "row row-tmdb"; - const chips = document.createElement("span"); - chips.className = "row-chips"; + const { item, row, body, chips } = richRow(); const root = roots.find((candidate) => candidate.id === series.root_id); chips.append(chip(root ? root.audience : `root ${series.root_id}`)); if (series.wanted_episodes > 0) { @@ -2723,10 +2718,11 @@ function seriesRow( }), ); const affordance = document.createElement("span"); - affordance.className = "row-add readout"; + affordance.className = "row-add control readout"; affordance.textContent = "episodes"; chips.append(affordance); - row.append(rowTitle(series.title, series.year), chips); + body.append(rowTitle(series.title, series.year), chips); + row.append(rowPoster(series.poster_path, series.title), body); row.addEventListener("click", () => { open(series.id, row); }); From c9e44b9c0309703587f560028a4ae39c63e112dc Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 18:32:02 +0100 Subject: [PATCH 08/12] fix(web): make the check chip's word reachable --- DESIGN.md | 13 ++++++------- web/src/main.ts | 3 +++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 9c2eae5..4bb950c 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -174,13 +174,12 @@ not yet found, violet (`--status-airing`) for downloading, neutral for untracked. The word stays present in every chip, so state survives with colour removed. -**Amendment (#253):** a drawn check glyph is a shape, not only a hue, so it -survives the same greyscale read a word does — `mediaStateChip`'s `available` -state is a check glyph instead of the word, word kept in the chip's -`aria-label`. The word-stays-present rule otherwise stands as written, for -every chip whose state is a word with no unambiguous glyph — which is every -status chip this section lists. The exception is scoped to `mediaStateChip`, -not to the derived-status chips above. +One state is exempt: a file being on disk is drawn as a check glyph rather +than the word `available`, with the word on the chip's `aria-label`. A drawn +check is a shape, not only a hue, so it survives the greyscale read the rule +exists to protect. The exemption is that narrow — every other state, and every +derived-status chip above, keeps its word, because no unambiguous glyph stands +in for `incomplete` or `waiting`. Season 0 is invisible to all of it: derived status ignores season 0 episodes entirely, so a manually wanted special cannot pin a series at `incomplete` or diff --git a/web/src/main.ts b/web/src/main.ts index dc66dc4..502055c 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -757,6 +757,9 @@ function mediaStateChip(state: string, wanted: boolean): HTMLSpanElement { if (state === "available") { return chip("", (span) => { span.replaceChildren(icon("check")); + // a bare span's aria-label is not reliably exposed; role="img" is what + // makes the word reachable once the glyph replaced it + span.setAttribute("role", "img"); span.setAttribute("aria-label", state); span.dataset.movieState = state; span.dataset.wanted = String(wanted); From dee7340a016e8225d1b29be15412015dfa356f48 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 19:06:25 +0100 Subject: [PATCH 09/12] fix(web): steady action slot, red delete, clickable season Closes #254 --- web/src/icons.ts | 1 + web/src/main.ts | 32 ++++++++++++++++++++++++++++---- web/src/style.css | 30 ++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 4 deletions(-) diff --git a/web/src/icons.ts b/web/src/icons.ts index 89cdfce..7b21dc4 100644 --- a/web/src/icons.ts +++ b/web/src/icons.ts @@ -52,6 +52,7 @@ export function armedDeleteIcon(label: string, execute: () => void): HTMLButtonE const button = document.createElement("button"); button.type = "button"; button.className = "control control-quiet control-icon"; + button.dataset.kind = "delete"; button.setAttribute("aria-label", label); button.title = label; button.replaceChildren(icon("trash")); diff --git a/web/src/main.ts b/web/src/main.ts index 502055c..afb51cf 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -1285,6 +1285,14 @@ function wireCollapsedToggle(bucket: CollapsedBucketDom) { // icon() and armedDeleteIcon() live in icons.ts, shared with the settings // rows (#231); the §9.6 painters below stay here as their only consumer. +/** Invisible spacer that reserves a delete control's slot (#254). */ +function placeholderSlot(): HTMLSpanElement { + const slot = document.createElement("span"); + slot.className = "slot-icon"; + slot.setAttribute("aria-hidden", "true"); + return slot; +} + /** §9.6 provider marks, drawn and shipped inline — never a remote image. */ function providerMark(name: "tmdb" | "tvdb" | "imdb" | "rt"): SVGSVGElement { const svg = document.createElementNS(SVG_NS, "svg"); @@ -3605,6 +3613,15 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { disclose.focus(); }); + // the whole line expands the season — the chevron stays the accessible + // control and this is a second way in; clicks on real controls opt out + line.addEventListener("click", (event) => { + if (event.target instanceof Element && event.target.closest("button")) { + return; + } + disclose.click(); + }); + // season 0 never counts toward tracking or totals (§4.1, §4.2); say so const name = document.createElement("span"); name.className = "season-name"; @@ -3697,8 +3714,9 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { line.append(space, deckBtn); // #174: files go, episodes stop being wanted, the season stays listed. // Only offered with files on disk — intent alone is the tracked toggle. + let clear: HTMLButtonElement | null = null; if (season.episodes.some((episode) => filesByEpisode.has(episode.id))) { - const clear = armedDeleteIcon( + clear = armedDeleteIcon( `remove ${season.number === 0 ? "specials" : `season ${PAD_TWO(season.number)}`} files from disk and stop wanting its episodes — the season stays listed`, () => { const currentId = seriesId; @@ -3707,7 +3725,9 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { } void removeSeasonFiles(currentId, season.number).then((outcome) => { if (outcome.kind === "error") { - clear.disabled = false; + if (clear) { + clear.disabled = false; + } setStatus(`remove failed — ${outcome.detail}`, "fault"); return; } @@ -3718,8 +3738,9 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { }); }, ); - line.append(clear); } + // rows without a delete still reserve its slot, so search keeps its column + line.append(space, deckBtn, clear ?? placeholderSlot()); item.append(line); const episodes = document.createElement("ul"); @@ -3804,7 +3825,7 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { const note = document.createElement("span"); note.className = "readout dim ep-unaired"; note.textContent = "unaired"; - actions.append(note); + actions.append(note, placeholderSlot()); } else { const want = document.createElement("button"); want.type = "button"; @@ -3851,6 +3872,9 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView { }); }); actions.append(deckBtn); + // no delete on a wantable episode, but its slot is still reserved so + // search sits in the same column as on an on-disk row + actions.append(placeholderSlot()); } item.append(tag, name, air, chips, actions); diff --git a/web/src/style.css b/web/src/style.css index 2fd2393..27f27fb 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1152,6 +1152,18 @@ body { border-color: var(--signal-warn); } +/* a destructive control rests red, so delete never reads like the search + glyph beside it; arming hands over to the shared amber treatment below */ +.control[data-kind="delete"]:not(:disabled) { + color: var(--signal-fault); + border-color: oklch(from var(--signal-fault) l c h / 40%); +} + +.control[data-kind="delete"]:hover:not(:disabled), +.control[data-kind="delete"]:focus-visible:not(:disabled) { + border-color: var(--signal-fault); +} + /* the settings arm-then-confirm, shared with season and episode rows: an armed control turns caution amber until it disarms or fires */ .control[data-armed="true"] { @@ -1510,6 +1522,15 @@ body { flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-1); + cursor: pointer; + transition: background 150ms var(--ease-out); +} + +/* a row under the pointer is visibly the row the click will land on — + the same lift a search result row gets */ +.season-line:hover, +.episode:hover { + background: var(--panel); } /* the disclosure is a drawn chevron — no glyph standing in for an icon */ @@ -1578,6 +1599,7 @@ body { gap: var(--space-1) var(--space-2); padding: var(--space-2) var(--space-1); border-bottom: 1px solid oklch(from var(--line) l c h / 45%); + transition: background 150ms var(--ease-out); } .ep-tag { @@ -1613,6 +1635,14 @@ body { font-size: var(--text-xs); } +/* an invisible spacer sized as an icon control: rows without a delete + reserve its slot so search sits in the same column on every row */ +.slot-icon { + flex: none; + width: var(--control-h); + height: var(--control-h); +} + /* #227: the season the operator's own report was about read `0/10` beside this chip's absence. It sits next to the counts because that number is what looked like nothing had ever been tried. */ From 06f8a6f0eafdfe847f2d15dd8acbbb8f0fffb465 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Tue, 25 Aug 2026 19:17:07 +0100 Subject: [PATCH 10/12] fix(web): align the reserved delete slot --- web/index.html | 2 ++ web/src/main.ts | 10 ++++++++-- web/src/style.css | 9 ++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/web/index.html b/web/index.html index ce5cb2b..88f1643 100644 --- a/web/index.html +++ b/web/index.html @@ -271,6 +271,7 @@