Skip to content

#231: WizBar 0.7.1 look round 2: two-line cards, footer counts - #249

Merged
jparker2006 merged 7 commits into
mainfrom
room/231-wizbar-0-7-1-look-r2
Nov 24, 2026
Merged

jparker2006 merged 7 commits into
mainfrom
room/231-wizbar-0-7-1-look-r2

Conversation

@jparker2006

Copy link
Copy Markdown
Member

Look round 2 for WizBar 0.7.1 (plan #231). It combines the two candidates that both judges preferred over the current look:

  • Two-line thread cards (from 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.
  • A footer that answers more without a click (from 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 typecheck green; npm test 1670 passed, 2 skipped; npm run test:browser 3 passed. Renders: docs/evidence/wizbar-0-7/look/r2-merged/.

Built with Cloudroom

@jparker2006 jparker2006 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-describedby for the branch overlay), the PR chip link, the children popover, activity counts, park buttons, RowContextMenu and the Pinned drop zone and markers are not changed. Only the layout classes moved.
  • The footer aria-label always 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.warning is 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 GitHub on 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

@jparker2006

Copy link
Copy Markdown
Member Author

Fixed in b870d84:

  • R1: Restored the muted project name on line 2 of ThreadCard (first, with higher flexShrink so it truncates first) when scope is All projects, hidden when scoped to a single project, with unit test coverage.
  • R2: Added overflow-hidden to the details line and let the link chip shrink (min-w-0 truncate, flexShrink: 2), with unit and 300 px browser proof that all icons stay inside the card.
  • R4: Tied the footer's cloudAgents call to status === "ready" && connection === "connected" ? rows : null, matching the Cloud agents section, with a disconnect test.
  • R5: Unified the GitHub wording to on GitHub across the footer, running card header (· N on GitHub), running card disclosure (N on GitHub.), tests, and README.
  • R6: Added a 300 px browser test with three-digit counts verifying the footer stays on one line and shortens through both tiers.
  • Refreshed docs/evidence/wizbar-0-7/look/r2-merged/{sidebar,card}.png.

Checks: npm run typecheck green; npm test -- --maxWorkers=2 1673 passed, 2 skipped; npm run test:browser 5 passed.

@jparker2006 jparker2006 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-159 shows the muted project name first on line 2. ThreadInbox.tsx:287 and :321 pass 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 and Chip can 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:80 passes 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 say on GitHub.
  • R6 (real-browser proof): fixed. The new 300 px browser test gets 125 running · 120 waiting on you on one line, and at 210 px gets 125 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
@jparker2006

Copy link
Copy Markdown
Member Author

Lead: re-check R1 fixed as suggested (shrink-0 on the children chip wrapper, whitespace-nowrap on the chip) with a height check in the R2 browser test (red on b870d84: oneLine: false; green now). R2: the project name keeps min-w-[4ch] and a title with the full name. Typecheck green, 1673 tests, 5 browser tests pass.

@jparker2006
jparker2006 merged commit 653c20b into main Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant