Repository navigation
Conversation
Three guard tests have failed on main since the components below landed: - color-utilities: BitwardenConnection's steps box used `bg-surface-muted/40` and `border-border`, neither defined in @theme, so the box had no background and a full-ink border. It now uses `border-hairline/40 bg-inset` like the other inset boxes in Settings. - faded-text: four quiet labels in DigestChip and ThreadBoard and the WorkflowCanvas edges faded `text-ink-secondary` with opacity, which drops below 4.5:1 on the light skins. They now use `text-ink-tertiary`. - touch-actions: ThreadBoard's archive/delete group only appeared on hover, which never happens on a touch screen. It now also shows with `touch:`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Four components now use tokens the UI guard tests accept. No guard test changes, 7 lines in 4 files.
src/components/BitwardenConnection.tsx:85border border-border bg-surface-muted/40border border-hairline/40 bg-insetcolor-utilitiessrc/components/DigestChip.tsx:59, 62, 76text-ink-secondary/80,/70,/80text-ink-tertiaryfaded-textsrc/components/ThreadBoard.tsx:67text-ink-secondary/80text-ink-tertiaryfaded-textsrc/components/ThreadBoard.tsx:72group-hover/cardandfocus-withinonlytouch:opacity-100touch-actionssrc/components/workflows/WorkflowCanvas.tsx:151text-ink-secondary/60text-ink-tertiaryfaded-textWhy
Three guard tests fail on
main(8c67e9d), and each failure is a real bug in the component, not in the guard:color-utilities: feat(vault): add step-by-step Bitwarden API key setup guide and Korean translations #47 (aa313f9) wrotebg-surface-muted/40andborder-border. Neither token exists in@theme, so Tailwind emits no rule. The Bitwarden steps box had no background, and its border fell back to the text colour: a full-ink line (rgb(26, 26, 24)on Atelier,rgb(245, 245, 245)on Midnight). The guard only reportsbg-surface-muted/40because it does not trackborder-*;border-borderis on the same line from the same commit, so this PR fixes both.border-hairline/40 bg-insetis what the other inset boxes use (89 times in 54 files undersrc/componentsonmain), and on Midnight/Daylight the Settings look already turns.bg-insettransparent with the settings edge (src/styles.css:1944).faded-text: b571d84 added--color-ink-tertiarybecausetext-ink-secondary/<n>drops under 4.5:1 on the light skins, and the guard rejects new fades. feat(workflows): add graph workflow editor, validator, and DAG runner (MVP) #48 (WorkflowCanvas), feat(board): add 5-day stale detection/filter and multi-link metadata on threads #51 (ThreadBoard+Nlinks) and feat(chat): show an inline memory receipt with undo under each turn #53 (memory receipt) added five more. The workflow edge is not decorative (it shows which step follows which), so it takes the tertiary ink instead of a guard exception.touch-actions: Tailwind v4 wrapshover:/group-hover:in@media (hover: hover), so the archive/delete group on a board card (feat(board): archive or delete a thread from its kanban card #12) never appears on a touch screen.touch:opacity-100is the patternsrc/styles.css:8documents and 13 other files use (17 times). The group never setspointer-events-none, so nothing else is needed.How it was verified
macOS, Node v24.22.1 (the CI version), same commands on
main8c67e9d and on this branch.Before shows three guard failures naming these lines; after shows them pass, with the same colours measured in the page.
main8c67e9d)pnpm exec vitest run src/lib/color-utilities.test.ts src/lib/faded-text.test.ts src/components/touch-actions.test.tsTest Files 3 failed (3),Tests 3 failed | 23 passed (26)Test Files 3 passed (3),Tests 26 passed (26)color-utilitiesreceivedcomponents/BitwardenConnection.tsx:85 bg-surface-muted/40[]faded-textreceivedDigestChip.tsx:59 /80,:62 /70,:76 /80,ThreadBoard.tsx:67 /80,WorkflowCanvas.tsx:151 /60[]touch-actionsreceivedcomponents/ThreadBoard.tsx:72 needs touch:opacity-100[]pnpm exec vitest run src/components/ThreadBoard src/components/DigestChip src/components/VaultSettings src/components/workflowsTest Files 3 passed (3),Tests 56 passed (56)pnpm typecheckpnpm exec oxlinton the 4 filesnode scripts/check-skin-contrast.mjsIn the page
None of these four views can be reached in the
control-omb ui launchfixture without seeding data it has no API for (a memory journal, board links, a workflow graph, a Bitwarden status). So the screenshots come from a one-off page that mounts the real components throughscripts/testing/preview-fixture.ts(mountPreview, the same Vite config as the app), served once frommainand once from this branch. The page file was never committed. Chrome for Testing 158, headless, 1200×1500 at 2×, touch via CDPEmulation.setTouchEmulationEnabled.Computed styles read from the page (Atelier):
+2/-1,+3 more, board+2oklab(0.509 0.002 0.020 / 0.8)rgb(109, 104, 92)Undoneoklab(… / 0.7)rgb(109, 104, 92)strokeoklab(… / 0.6)rgb(109, 104, 92)rgba(0, 0, 0, 0), borderrgb(26, 26, 24)rgb(245, 241, 235), borderhairline / 0.4(hover: none), (pointer: coarse)matches)opacity: 0opacity: 1WCAG contrast from the skin tokens, alpha blended over the surface each element sits on (the canvas has no background of its own, so the edge is measured on
app):+N more(/80 onpanel)Undone(/70 onpanel)+Nlink count (/80 oncard)app)Screenshots
Bitwarden steps box, Atelier. Before: no background, full-ink border. After: inset background, hairline border.
Bitwarden steps box, Midnight. Before: a bright full-ink border. After: the Settings edge, like the other insets.
Board card on a touch screen, Atelier. Before: no archive/delete buttons. After: both buttons show.
Memory receipt, Atelier (
+2/-1,Undone,+3 more). Before then after; the change is the contrast in the tables above.Workflow edges, Atelier. Before then after.
Not covered
check-skin-contrastalready measures.main(behavior evals,package + smoke, the Windows-only vitest failures,BotThreads) are separate.Checklist
mainand this branch