feat(arr): manual subtitle fetch and translate

The manual surface §9.3 describes, applied to subtitles (§15). It opens
inline under the file's own row and borrows the release deck's layout
language rather than inventing a second one: fixed-width chips lead, the
release name is secondary, eligible shows and rejected collapses to a
count naming the rule.

The translate lane takes any subtitle already on the file as a source,
including an extracted embedded track — the thing Bazarr cannot do — and
lists only the engines this binary was compiled with.
This commit is contained in:
Miguel Palhas
2026-08-25 02:45:32 +01:00
parent 9a21649afa
commit e850ddff81
3 changed files with 1046 additions and 21 deletions
+127
View File
@@ -1481,6 +1481,111 @@ body {
border-style: dashed;
}
/* ---- manual subtitle deck (§9.3, §15, issue #203) ---------------------- */
/* the panel opens under the file's own row, sharing the release deck's
layout language rather than inventing a second one */
.subs-panel {
flex-basis: 100%;
/* a flex item will not shrink below its min-content unless told to; the
deck's fixed columns would otherwise push the row into horizontal
scroll, which §9.3 forbids at every viewport */
min-width: 0;
margin-top: var(--space-2);
padding: var(--space-3) var(--space-3) var(--space-1);
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
}
.subs-panel .deck-group {
margin-bottom: var(--space-4);
}
.subs-panel .deck-group:last-child {
margin-bottom: var(--space-2);
}
/* the lane's own controls: pickers first, then the verb */
.subs-controls {
display: flex;
align-items: flex-end;
flex-wrap: wrap;
gap: var(--space-2) var(--space-3);
padding: var(--space-3) var(--space-1) 0;
}
.subs-langs {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.subs-field {
flex: 1 1 12rem;
min-width: 9rem;
max-width: 18rem;
}
/* the engine name is one short word; the source label is a whole subtitle */
.subs-field-narrow {
flex: 0 1 9rem;
max-width: 11rem;
}
.subs-note {
margin: var(--space-2) var(--space-1) 0;
}
/* a row's own note takes its own line, so reporting an outcome never moves
the grab control out from under the pointer that just used it */
.rel > .subs-note {
flex-basis: 100%;
margin-top: var(--space-1);
}
.subs-buckets {
margin-top: var(--space-3);
}
/* nested one level under the lane heading, so the buckets read as parts of
the fetch lane rather than as siblings of it */
.subs-buckets .deck-group {
margin-bottom: var(--space-3);
}
/* the buckets sit under the lane heading, not beside it */
.subs-buckets .deck-label {
color: var(--ink-faint);
}
/* §9.3's fixed columns, subtitle facts: provider and the ranking tiers */
.cw-prov {
width: 7.5rem;
}
.cw-hash {
width: 4rem;
}
.cw-match {
width: 5rem;
}
.cw-rate {
width: 4.25rem;
text-align: right;
}
.cw-dl {
width: 6rem;
text-align: right;
}
.cw-flag {
width: 5.5rem;
}
/* ---- attention queues (§5.2 + §5.7) ------------------------------------ */
/* the badge is a signal, not a control: amber attention on the cyan word */
@@ -1908,6 +2013,28 @@ body {
.cw-seed {
width: 2.5rem;
}
/* §15's tiebreakers are the first columns to go: hash and release match
decide the row, rating and download count only order what is left */
.cw-rate,
.cw-dl {
display: none;
}
/* what is left wraps to two lines at this width, so an aligned header
would name the wrong cell. The remaining chips say what they are on
their own, and the header is shed rather than allowed to lie. */
.subs-buckets .colhead {
display: none;
}
.cw-prov {
width: 6.5rem;
}
.cw-flag {
width: 4.5rem;
}
}
/* ---- settings (issue #116) -------------------------------------------- */