Skip to content

#231: WizBar 0.7.1 look round 3: spec titles, clean card edge - #250

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

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

Conversation

@jparker2006

Copy link
Copy Markdown
Member

Look round 3 for WizBar 0.7.1 (plan #231). It combines:

  • Spec titles at the sidebar's size (from room/231-look-r3-g): spec names and the Quiet label use the thread titles' size and medium weight. The right-hand notes are smaller and shorten first (N done · 1h, full words in the tooltip), so names stop truncating. N needs you always stays in full.
  • A clean card edge (from room/231-look-r3-h): an opaque bridge under the running card stops the row behind from showing through. The card gets an 8 px radius and a subtle shadow from host tokens. The pointer path from the trigger into the card is unchanged.

Both branches merged onto main without conflicts. No other code changed.

Tested: npm run typecheck green; npm test 1673 passed, 2 skipped; npm run test:browser 5 passed. Renders: docs/evidence/wizbar-0-7/look/r3-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 edf6677:

Checks at this commit: npm ci ok, npm run typecheck green, npm test -- --maxWorkers=2 1673 passed / 2 skipped, npm run test:browser (Chromium) 5 passed. The hover, pin and Escape handlers are untouched. The existing browser test still moves the pointer from the trigger into the card and it stays open. The bridge has pointer-events: none, so the hit area is unchanged. The renders under docs/evidence/wizbar-0-7/look/r3-merged/ look right at the default width, but no row in them is tight on space.

R1 — blocker — N needs you is clipped when the row is short of space. wizbar/src/specs/SpecsSection.tsx:357-358. minWidth: "min-content" on a flex-wrap container resolves to the min-content of its widest item. The note spans can wrap at spaces, so that is the widest single word ("needs"), not "1 needs you". In Chromium, a copy of this row with a long spec name gives a notes box only 36 to 47 px wide at row widths from 200 to 320 px. Because of justify-end + overflow-hidden, "1 needs you" then shows as "ds you" / "eds you". Fix: add whitespace-nowrap to each note span, so min-content becomes the widest whole note. Or move the needs-you note out of the wrapping box as its own shrink-0 whitespace-nowrap item. Then add a Chromium test: a long spec name in a narrow sidebar, asserting that the [data-needs-you] box sits fully inside [data-notes] and on its first line.

R2 — blocker — screen readers do not get the full words. wizbar/src/specs/SpecsSection.tsx:366-370. The full wording is only in title on a plain span. Screen readers do not reliably announce a title on a generic element, so they read "1 done · 1h" ("one h"). Fix: render <span aria-hidden="true">{n} done · 1h</span><span className="sr-only">{n} done in the last hour</span>. Keep title for the mouse tooltip. In the test, check the sr-only text, not only the attribute (SpecsSection.test.tsx:293).

R3 — polish — the notes are never read on rows that open. wizbar/src/specs/SpecsSection.tsx:382. When canOpen, the button's aria-label="Open {name}" replaces its content, including "needs you" and the done note. This was already the case before this change, but it undercuts R2. Fix: point aria-describedby at the notes box, or append the notes' screen-reader text to the label.

R4 — polish — the new layout rules are tested only as class names. SpecsSection.test.tsx:395-401 checks for shrink-[999], basis-auto and min-content in jsdom, which cannot lay anything out. That is how R1 got through. The browser test is unchanged and covers neither the spec row nor the bridge. Fix: add the narrow-row Chromium case from R1. Add a card check too: [data-card-bridge] exists, its computed background is opaque, and the card's section paints above it.

R5 — polish — the bridge relies on the card being positioned. wizbar/src/FooterCounter.tsx:226-229. The bridge is position: absolute; z-index: 0. It sits under the card only because StatsPanel now sets position: relative; z-index: 1. If card() ever renders something unpositioned, such as an error state, the bridge paints over that content's bottom 14 px. Fix: wrap card(stale) in a position: relative; z-index: 1 box in FooterCounter, so the stacking order lives in one place.

Verdict: changes needed

@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 29bec19:

Checks at this commit: CI (wizbar-checks) is green; npm ci ok; npm run typecheck green; npm test -- --maxWorkers=2 1673 passed / 2 skipped; WIZBAR_REQUIRE_BROWSER=1 npm run test:browser (Chromium) 9 passed.

Previous findings verified:

  • Prior R1 (blocker) — fixed. wizbar/src/specs/SpecsSection.tsx:359-374 adds whitespace-nowrap to all visible note spans, so minWidth: "min-content" keeps N needs you whole. Verified in Chromium across 200, 240, 280 and 320 px widths (wizbar/browser/running-card.test.ts:306-327).
  • Prior R2 (blocker) — fixed. wizbar/src/specs/SpecsSection.tsx:366-374 hides N done · 1h with aria-hidden, keeps the full title tooltip, and renders the full N done in the last hour copy in .sr-only, verified in both wizbar/src/specs/SpecsSection.test.tsx:395-396 and wizbar/browser/running-card.test.ts:323.
  • Prior R3 (polish) — deferred (pre-existing aria-label on expandable spec rows at wizbar/src/specs/SpecsSection.tsx:386).
  • Prior R4 (polish) — mostly fixed. Narrow spec-row layout and screen-reader copy are now covered in Chromium (wizbar/browser/running-card.test.ts:306-327).
  • Prior R5 (polish) — fixed. wizbar/src/FooterCounter.tsx:231-233 wraps card(stale) in a position: relative; z-index: 1 flex column (minHeight: 0), so any card content stacks above [data-card-bridge] without breaking 100-row scrolling.

Remaining findings:

R1 — polish — [data-card-bridge] has no automated check. wizbar/src/FooterCounter.tsx:226-229 and wizbar/browser/running-card.test.ts:122-137. The bridge element, its opaque computed background, and the card stacking above it are not asserted in the browser test (nor in wizbar/src/footer-card.test.tsx). Fix: in the open-card Chromium test, assert [data-card-bridge] is present with a non-transparent background and sits beneath the card's section.

Verdict: approve

@jparker2006
jparker2006 merged commit 8c0aa62 into main Nov 24, 2026
1 check passed
@jparker2006
jparker2006 deleted the room/231-wizbar-0-7-1-look-r3 branch November 24, 2026 17:59
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