Skip to content

fix(ui): the first-run screen used four tokens from the marketing site's palette, not this one - #352

Merged
rainmanjam merged 1 commit into
mainfrom
fix/authscreen-tokens
Aug 14, 2026
Merged

fix(ui): the first-run screen used four tokens from the marketing site's palette, not this one#352
rainmanjam merged 1 commit into
mainfrom
fix/authscreen-tokens

Conversation

@rainmanjam

Copy link
Copy Markdown
Owner

It was never a flaky test. I called it transient twice and re-ran CI to green — which is precisely the behaviour a real failure depends on to reach main.

theme.test.ts was right every time it failed:

pages/AuthScreen.tsx  bg-raised/40, border-line, bg-cross, bg-line
these name no --color-* token, so Tailwind emits nothing

All four are real tokens — in web/src/styles/global.css, the marketing site's stylesheet. ui/src/index.css is a different palette with different names, and I carried the wrong vocabulary across when writing the password meter and its notice in #346.

Tailwind emits nothing for a class whose token doesn't exist, so the notice box rendered with no border and no background, and two of the four meter segments had no colour.

Was Now
border-line border-border
bg-raised/40 bg-card-raised/40 (already used 3× here)
bg-cross bg-warn
bg-line bg-border

Why it looked intermittent

#346 introduced it and merged on a re-run that went green, so the bug reached main. #348 then inherited it via a branch update and failed on a job its own diff cannot break — it touches only scripts/install.sh.

That mismatch is what made it read as infrastructure noise. It was the opposite: the strongest available signal that the failure was real and came from somewhere other than the PR under test. I should have followed it rather than dismissed it.

The guard did its job. I overrode it twice.

Verified across three consecutive runs at 115/115, not one — "it passed once" is the evidence that produced this in the first place.

…e's palette, not this one

It was never a flaky test. I called it transient twice and re-ran CI to green,
which is the exact behaviour a real failure hiding behind an intermittent one
depends on.

TestColourUtilitiesNameADeclaredToken was right every time it failed:

    pages/AuthScreen.tsx  bg-raised/40, border-line, bg-cross, bg-line
    these name no --color-* token, so Tailwind emits nothing

All four are real tokens -- in web/src/styles/global.css, the MARKETING SITE's
stylesheet. ui/src/index.css is a different palette with different names, and I
carried the wrong vocabulary across when writing the password meter and its
notice in #346. Tailwind emits nothing for a class whose token does not exist,
so the notice box rendered with no border and no background, and two of the four
meter segments had no colour at all.

    border-line   -> border-border
    bg-raised/40  -> bg-card-raised/40   (already used 3x in this UI)
    bg-cross      -> bg-warn
    bg-line       -> bg-border

WHY IT LOOKED INTERMITTENT, which is the part worth recording. #346 introduced
it and merged on a re-run that went green -- so the bug reached main. #348 then
inherited it by updating its branch, and failed on a job its own diff could not
possibly break: it touches only scripts/install.sh. That mismatch is what made
it read as infrastructure noise rather than a regression, and it is exactly the
signal I should have followed instead of dismissing.

The guard did its job. I overrode it twice.

Verified across three consecutive runs at 115/115 rather than one, because "it
passed once" is the evidence that produced this in the first place.
Copilot AI lite review requested due to automatic review settings August 14, 2026 18:11
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes incorrect Tailwind color-token class names on the UI first-run/auth screen by switching from the marketing site palette vocabulary to the UI palette tokens, ensuring the password meter segments and the notice box render with the intended colors/border/background.

Changes:

  • Replace non-existent Tailwind classes in the password strength meter from bg-cross/bg-line to bg-warn/bg-border.
  • Replace non-existent notice box tokens from border-line/bg-raised/40 to border-border/bg-card-raised/40.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rainmanjam
rainmanjam merged commit da6da3f into main Aug 14, 2026
47 of 48 checks passed
@rainmanjam
rainmanjam deleted the fix/authscreen-tokens branch August 14, 2026 18:39
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.

2 participants