Repository navigation
#231: WizBar 0.7.1 look round 2: two-line cards, footer counts - #249
Conversation
…1-wizbar-0-7-1-look-r2
…1-wizbar-0-7-1-look-r2
…ws waiting and GitHub counts; renders
jparker2006
left a comment
There was a problem hiding this comment.
Review of 0a41200:
Checks at this commit in wizbar/: npm ci ok, npm run typecheck green, npm test -- --maxWorkers=2 1670 passed, 2 skipped.
What holds up:
- The card link (full-bleed anchor, shortcut data attributes,
aria-label,aria-describedbyfor the branch overlay), the PR chip link, the children popover, activity counts, park buttons,RowContextMenuand the Pinned drop zone and markers are not changed. Only the layout classes moved. - The footer
aria-labelalways gives the full sentence (N running, M waiting on you, K on GitHub[, last known]), even when the visible text is shortened. That is right. tokens.warningis used only on the waiting part, and it turns muted when the count is stale. GitHub and the separators use muted text.- The sidebar render shows
25 running · 1 waiting on you · 1 on GitHubon one line at 300 px.
Findings:
R1 (blocker): the project name is gone from every card. wizbar/src/ThreadCard.tsx:36-44 no longer reads projectName. The prop is still typed and still passed from ThreadInbox.tsx:287 and :321, but nothing shows it. Under the default "All projects" scope (the scope in the merged render), cards from different projects now look the same. Neither the changelog nor the PR text says the project was dropped on purpose. Fix: when the scope is "All projects", put the project name first on line 2 as quiet text (min-w-0 truncate, before the link chip). If dropping it is a design decision, remove the prop from the type and both call sites, and say so in changes/wizbar-0-7-1.md.
R2 (polish): the details line can overflow at 300 px. ThreadCard.tsx:148 removed flex-wrap, and every chip is now shrink-0, including CHIP_CLASS at line 243. A row with #1042 → PR #1088, 12 children, two activity counts, the harness logo and the machine icon needs about 266 px. The card has about 264 px. Only the model can shrink, so it shrinks to an ellipsis, and the icons can stick out past the card's right edge. Fix: add overflow-hidden to the details group. Also let the link chip shrink (min-w-0 truncate instead of shrink-0), so the model is the last thing to lose space. Add a test row with every chip at 300 px.
R3 (polish): the GitHub poll now runs twice. FooterCounter.tsx:64 calls useAgentsRead(now), and ThreadInbox.tsx:195 already does. Both mount together, so agentsFile (and agentsArchive) are read twice every 60 s, and the two copies can show different counts for up to a minute. Fix: hoist one read into a shared context (as SpecsReadContext does), or give the hook a module-level cache keyed on the bound home.
R4 (polish): the footer GitHub count is not tied to the connection the way the shelf count is. The footer passes cardRows to cloudAgents (FooterCounter.tsx:79), and those can be rows held over from a gap. The Cloud agents shelf passes null unless connection === "connected" (ThreadInbox.tsx:196). While disconnected, the footer can show K on GitHub when the shelf is hidden. Fix: use the same rule, i.e. pass rows only when ready and connected, otherwise report 0.
R5 (polish): the GitHub wording differs in three places. The footer says 1 on GitHub, the running card header says 1 more on GitHub, and the card note says 1 seen on GitHub. All three mean the same number. Fix: pick one, for example on GitHub in the footer and more on GitHub in the card, where the count is added to the running total. Then drop seen from the note, or reword the note to match.
R6 (polish): there is no real-browser proof that the line shortens. The drop-GitHub-first and waiting steps are tested only with mocked scrollWidth and clientWidth. Both renders show the case where everything fits. Fix: add one render, or one browser test, with three-digit counts at 300 px. It should show 125 running · 12 waiting on one line with no ellipsis.
Verdict: changes needed
|
Fixed in b870d84:
Checks: |
jparker2006
left a comment
There was a problem hiding this comment.
Review of b870d84:
Checks at this commit in wizbar/: npm ci ok, npm run typecheck green, npm test -- --maxWorkers=2 1673 passed, 2 skipped, npm run test:browser 5 passed (real Chromium, not skipped). CI wizbar-checks is green.
Fixes from the last review:
- R1 (project name): fixed.
ThreadCard.tsx:151-159shows the muted project name first on line 2.ThreadInbox.tsx:287and:321pass it only under All projects. The unit test covers both the All projects and the one-project scope. - R2 (overflow at 300 px): mostly fixed, see R1 below. The details line has
overflow-hidden, the link chip andChipcan shrink, and the icons stay inside the card. But the new dense-card browser row shows the line still wraps vertically. - R4 (GitHub count tied to the connection): fixed.
FooterCounter.tsx:80passes rows only when the rows are ready and the connection is connected, as the Cloud agents section does. The disconnect test covers it. - R5 (wording): fixed. The footer, the running card header (
· N on GitHub), the disclosure (N on GitHub.), the tests and the README now all sayon GitHub. - R6 (real-browser proof): fixed. The new 300 px browser test gets
125 running · 120 waiting on youon one line, and at 210 px gets125 running · 120 waiting, with no ellipsis. - R3 (the GitHub file is read twice) is deferred, as stated. It is still open.
Findings:
R1 (blocker): a thread with children still breaks the two-line card at 300 px. I measured the new ?dense-card=1 row in Chromium at 300 px. The 12 children chip squeezes to 47 px, and its text wraps to three lines (12 / childre / n). Line 2 grows to about 50 px, so the card has four lines. The wrapper in wizbar/src/ChildrenPopover.tsx:113 can still shrink, and the button at :152 keeps [overflow-wrap:anywhere], so the label breaks mid-word. The R2 browser test (browser/running-card.test.ts:271) checks only right edges, so it passes anyway. The parent commit has the same fault (line 2 was 66 px there), so the fix improved it but did not fix it. Fix: add shrink-0 to the wrapper at :113, and change [overflow-wrap:anywhere] to whitespace-nowrap at :152. I tried this locally: line 2 drops to 18 px, every icon stays inside the card, and the link chip and model shrink instead. Also add a height check to the R2 browser test, for example group.getBoundingClientRect().height <= 20, plus one for the children chip.
R2 (polish): in a full row, the project name shrinks to a single letter. On the same 300 px row, flexShrink: 3 (ThreadCard.tsx:155) cuts Orchard Workspace to 14 px, which shows only O…. With the R1 fix it shrinks to about 4 px, which shows nothing. That is exactly the case where telling projects apart matters. Fix: give the project span a floor, for example min-w-[4ch] or min-w-10, and let the link chip take more of the shrink. Or show the full project name as a title on the span.
Verdict: changes needed
…he project name keeps 4 characters and a tooltip; height check in the browser test
|
Lead: re-check R1 fixed as suggested ( |
Look round 2 for WizBar 0.7.1 (plan #231). It combines the two candidates that both judges preferred over the current look:
room/231-look-r2-d): line 1 has the title with status and age on the right; line 2 has the quiet details (link, children, model and effort, machine). About a third more cards fit.room/231-look-r2-f):25 running · 1 waiting on you · 3 on GitHub. Waiting uses the warning colour; GitHub is muted. It stays on one line at 300 px by dropping the GitHub part first.Both branches merged onto main without conflicts. No other code changed.
Tested:
npm run typecheckgreen;npm test1670 passed, 2 skipped;npm run test:browser3 passed. Renders:docs/evidence/wizbar-0-7/look/r2-merged/.Built with Cloudroom