fix(gui): the status card's live word at its right edge, the event on hover, and no line ever wraps
The heading row is badge and name (elided) at the left, the live dot and word at the right edge; the event is the heading's hover and the live word's accessible label, not a printed row. The check lines are as before, with no event. Every text elides to one line; a test lays the card out in every state with a very long name and event 1,234,567. The heading is its badge's height and the card's vertical padding 8, so the sidebar still fits at 1479x519. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d8ff776a52
commit
6f916f8bbd
6 files changed
+399
-277
No files matched your search
+11
-8
@@ -131,14 +131,17 @@ where the assistant's connection state is drawn later), and the Overview
|
||||
opens with its summary sentence, not a heading with the name. The company
|
||||
is named once more, at the opposite corner: the status card at the foot of
|
||||
the sidebar begins with a heading row: the badge (small) and the name, cut
|
||||
with an ellipsis and whole on hover, and at the right the live dot and
|
||||
"Live" (or "Snapshot"). The journal chain line, the card's last, ends with
|
||||
"· event N"; there is no row of its own for the state. Folded (a short
|
||||
window) the card is the heading alone, "● Live · event N" (and the seal
|
||||
when the name keeps room), or, when a check failed, the heading over one
|
||||
line naming it. The rail shows the badge with the live dot on its corner
|
||||
(a warning there when a check failed), the name, state, event and checks on
|
||||
hover. Each company has one badge
|
||||
with an ellipsis, and at the card's right edge the live dot and "Live" (or
|
||||
"Snapshot"); the name elides before the live word is ever clipped. The
|
||||
heading's hover reads, a fact a line: the company's full name, "Live ·
|
||||
event N", then the checks; the live word's accessible label is "Live ·
|
||||
event N". The event is printed nowhere else in the card, and no text in it
|
||||
wraps: every line is one row and elides (`the_status_card_never_wraps_in_any_state`).
|
||||
The journal chain line is just "Journal chain verified". Folded (a short
|
||||
window) the card is the heading alone, or, when a check failed, the heading
|
||||
over one line naming it. The rail shows the badge with the live dot on its
|
||||
corner (a warning there when a check failed), the name, state, event and
|
||||
checks on hover. Each company has one badge
|
||||
hue of eight (`theme::BADGE_HUES`, light and dark), chosen by a stable
|
||||
hash of the id of its books (`theme::hue_index`, FNV-1a modulo eight: a
|
||||
function of the id alone, so a company keeps its colour on every machine
|
||||
|
||||
+21
-9
@@ -4539,16 +4539,28 @@ shown to fail: `preferences_written_before_the_keys_had_a_root_are_read_and_not_
|
||||
folder is also told apart by its books' identity.
|
||||
|
||||
**The sidebar tests' window sizes are restored.** The status card gave back
|
||||
the bar's height by one row: its heading carries the live dot and word
|
||||
("Live", "Snapshot") and the old last row is gone, the event moving to the
|
||||
end of the journal chain line (folded: after the live word in the heading,
|
||||
or at the end of the failure line). The four `sidenav.rs` tests are at their
|
||||
the bar's height: its heading carries the live dot and word ("Live",
|
||||
"Snapshot") at the card's right edge, the heading row is its badge's 16 high
|
||||
(not a button's) and the card's vertical padding is 8. The event is not
|
||||
printed in the card: it is the heading's hover ("name", "Live · event N",
|
||||
the checks) and the live word's accessible label. The three check lines are
|
||||
as they were before, with no event. The four `sidenav.rs` tests are at their
|
||||
original sizes (1479x519, the rail at 519, the grid at 520 px, the tall
|
||||
sidebar at 1440x920) with every assertion unchanged, and the minimum window
|
||||
height is 400 again. The failing-check folded line is a label's row high,
|
||||
like the card's other lines, not a button's; nothing else was tightened.
|
||||
`the_folded_card_shows_its_checks_on_hover` and the two card tests in
|
||||
`tabs.rs` assert where the live word and the event sit in each state.
|
||||
sidebar at 1440x920) with every assertion unchanged; at 1479x519 the links
|
||||
have 6 px to spare in the common footers and 2 px in the failing-check ones
|
||||
(where the rows tighten). The minimum window height is 400.
|
||||
`the_status_card_never_wraps_in_any_state` (in `company.rs`) lays the card
|
||||
out in each state (live, snapshot, each check passing, warning and failing,
|
||||
folded and not) with a very long name and event 1,234,567 at the sidebar's
|
||||
width (224, fixed, not resizable) and 200, and asserts every text is one row,
|
||||
none runs out of the card, and the card's height is its rows plus its
|
||||
padding. In `tabs.rs` the status-card test now asserts the live word sits at
|
||||
the right of the name's row, no card text contains "event", and the
|
||||
live word's label is "Live · event N" (it asserted the visible
|
||||
"· event N" on the journal chain line); the rail test also asserts the name
|
||||
leads the hover. In `sidenav.rs`, `the_folded_card_shows_its_checks_on_hover`
|
||||
and the `"event "` locators still find the event, now through the live
|
||||
word's label, unchanged.
|
||||
|
||||
## P12: the checklists
|
||||
|
||||
|
||||
Reference in new issue
Block a user