Library views with derived status (#83)
ci / web (push) Successful in 33s
ci / rust (push) Successful in 1m29s
e2e / e2e (push) Successful in 1m12s

This commit was merged in pull request #83.
This commit is contained in:
2026-08-22 23:33:05 +01:00
parent 0343783a57
commit f38fb1277b
18 changed files with 578 additions and 46 deletions
+64 -1
View File
@@ -97,6 +97,11 @@ body {
padding: 0;
}
/* a scrollbar appearing must not reflow the rail's wrap */
html {
scrollbar-gutter: stable;
}
body {
min-height: 100dvh;
display: flex;
@@ -467,6 +472,12 @@ body {
cursor: default;
}
/* the engaged view control stays lit while its surface is up */
.control[aria-pressed="true"] {
border-color: var(--accent);
color: var(--accent-bright);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
@@ -641,10 +652,34 @@ body {
color: var(--verdict-rejected);
}
.chip[data-movie-state="imported"] {
.chip[data-movie-state="available"] {
color: var(--ink);
}
/* library status (§4.2): informational, never a severity ramp — activity in
the channel-violet family, satisfaction in neutrals; the word is always
present, so the state survives with colour removed */
.chip[data-status="airing"] {
color: var(--status-airing);
border-color: oklch(from var(--status-airing) l c h / 45%);
}
.chip[data-status="incomplete"] {
color: var(--status-incomplete);
}
.chip[data-status="waiting"] {
color: var(--status-waiting);
}
.chip[data-status="complete"] {
color: var(--status-complete);
}
.chip[data-status="ended"] {
color: var(--status-ended);
}
/* a TMDB row is the affordance: the whole row opens the add flow */
.row-tmdb {
font: inherit;
@@ -952,6 +987,23 @@ body {
font-size: var(--text-2xs);
}
/* ---- 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);
}
/* the toggle's own padding would inset its text past the chip column's
right rag; drop it so SATISFIED sits flush with the chips below */
.library-bar .bucket-toggle {
padding: 0;
}
/* ---- manual intake ---------------------------------------------------- */
.intake .module-detail {
@@ -977,6 +1029,17 @@ body {
max-width: none;
}
/* deterministic first row: identity, views, then meta pushed right —
never re-wrapped by content or scrollbar changes */
.rail-nav {
order: 2;
}
.rail-meta {
order: 2;
margin-left: auto;
}
.deck {
padding: var(--space-6) var(--space-4) var(--space-8);
}