Registry Mirror
Skip to content

Conversation

@flamboh

@flamboh flamboh commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Note

🤖 Claude Opus 5.5 on behalf of Oliver

Problem

Valid fields could pick up invalid styling. Many callers pass a plain boolean (aria-invalid={hasError}), so a valid field renders aria-invalid="false". Several ui/ primitives matched [aria-invalid] by presence alone, so "false" counted as invalid too.

  • InputGroup: the whole group got the red invalid border. You can see it on the When expression in Settings → Keybindings: it was red even when the expression was valid.
  • Input, Textarea, Select, NumberField, Checkbox, RadioGroup: these used the presence selector only to drop their resting drop shadow (shadow-none). So a valid field lost its shadow, but its border, ring and color were already right, because those use Tailwind's aria-invalid: variant (="true").

Fix

Every one of these selectors now matches aria-invalid=true, the same rule the aria-invalid: variant already uses. Invalid fields look exactly as before.

Affected callers that pass a boolean: the When expression in KeybindingsSettings (red border), plus BrowserDeviceToolbar, SavedViewsMenu, AddProviderInstanceDialog, ProviderInstanceCard, SecretProviderDialog, ProjectIconPickerDialog, ThemeColorPicker and SecretSourceInput (missing shadow).

Scope and approval

A small, obvious bug with no issue filed. Only the selector strings in the seven ui/ primitives change, plus one browser test file.

Verification

  • A browser test checks that aria-invalid={false} looks the same as no attribute, and that aria-invalid true still differs. It covers the InputGroup border and the Input and Textarea shadow. It fails on main and passes here.
  • vp run check:changed passes.
  • I checked it in the real app (main vs this branch). For the When expression, a valid expression has no red border, and an invalid one is still red:

When expression border: before (main) vs after, for a valid and an invalid expression

What to look for: before, the valid terminalFocus has a red border (boxed). After, it has the normal border. The invalid terminalFocus && is red in both.

  • I also checked the shadow fix in the real app, on a theme hex input in Settings → Appearance (light theme). It's too faint to see: the resting shadow is 5% black, and main and this branch look the same at normal size. So there's no screenshot for it. The test above covers the shadow.

Made with Claude Opus 5.5 in Claude Code (T3 Code).

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 2, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 049c409

Macroscope's review found this PR approvable — Form controls now apply invalid styling only when aria-invalid is true, rather than whenever the attribute exists. The change is presentation-only and leaves validation and data handling unchanged.

Notes:

  • All code in this push has already been reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@macroscopeapp
macroscopeapp Bot dismissed their stale review December 2, 2026 23:09

Dismissing prior approval to re-evaluate 1176001

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Several form control styling selectors now distinguish aria-invalid="true" from other attribute values. The Checkbox shadow selector now matches any aria-invalid value. Browser tests compare border and shadow styles for absent, false, and true values.

Changes: ARIA invalid-state styling

Layer / File(s) Summary
Selector updates and browser validation
apps/web/src/components/ui/input-group.tsx, apps/web/src/components/ui/input.tsx, apps/web/src/components/ui/number-field.tsx, apps/web/src/components/ui/radio-group.tsx, apps/web/src/components/ui/select.tsx, apps/web/src/components/ui/textarea.tsx, apps/web/src/components/ui/checkbox.tsx, apps/web/src/components/ui/input-group.browser.test.tsx
InputGroup, Input, NumberFieldGroup, Radio, Select, and Textarea selectors now match aria-invalid="true" specifically. The Checkbox selector now matches any aria-invalid value. Browser tests compare InputGroup borders and Input and Textarea shadows for absent, false, and true values.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Merge Risk: Minimal · previous review 74096

Valid fields with aria-invalid false no longer pick up invalid styling, and invalid fields keep their styling. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): valid fields no longer pick up invalid styling" matches the main change. The PR changes the aria-invalid selectors in the ui/ primitives so that only aria-invalid="true" counts as…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections, and it covers each one. The Problem section explains the bug and the expected behavior. The Change secti…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(web): valid fields no longer pick up invalid styling" matches the main change. The PR changes the aria-invalid selectors in the ui/ primitives so that only aria-invalid="true" counts as invalid, which stops valid fields (aria-invalid="false") from getting invalid styling. The title is a conventional commit, is specific, and names the scope (web).

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections, and it covers each one. The Problem section explains the bug and the expected behavior. The Change section explains the selector fix and lists affected callers. The Scope section says the fix is small and that no issue is filed. The Verification section gives a browser test, a check command, and manual app results, with a before/after image for the When expression. It also states what was not checked visually (the shadow). The template's model-attribution line is present. The only gap is that the Scope section gives no issue link. The template asks for one when a bug is involved, but it also allows a reason for a small, obvious fix, and the author gave one.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1176001 and 74096ec.

Files selected for processing: 1

  • apps/web/src/components/ui/input-group.browser.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 2, 2026
@flamboh flamboh changed the title fix(web): valid When expressions no longer show a red border fix(web): valid fields no longer pick up invalid styling Dec 2, 2026
@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 3, 2026
juliusmarminge and others added 2 commits December 3, 2026 00:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@macroscopeapp
macroscopeapp Bot dismissed their stale review December 3, 2026 00:49

Dismissing prior approval to re-evaluate 74096ec

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 3, 2026
docs/internals/15_testing.md asks for before/after captures, not UI
tests, as proof for purely visual fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@macroscopeapp
macroscopeapp Bot dismissed their stale review December 3, 2026 00:55

Dismissing prior approval to re-evaluate 049c409

@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Environment: real web dev app, Chromium, 1280×800, light theme, fresh synthetic project and database per commit. Secrets enabled with T3CODE_FEATURE_FLAGS=secret_providers; no 1Password account is contacted or saved.

On both commits: open Settings → Keybindings, search Command Palette, open its When clause, replace !terminalFocus with terminalFocus, capture focused, press Tab and capture resting; capture a 200% detail; replace the expression with terminalFocus && and capture the parse error. Then open environment-scoped Settings → Secrets, Add provider, enter Name Example and Account example.1password.com, click the dialog heading to blur, and capture the two valid Input controls. Hold focused, blurred, invalid, and dialog states for two seconds each.

Scenario: Valid When fields retain normal borders and resting shadows

Proven: the scenario fails on base 9b6695525c and passes on head 049c4091cd.

Base 9b6695525c Head 049c4091cd
Result ❌ failed
ASSERTION_FAILED: expected "oklab(0.637 0.214213 0.1014 / 0.36)" to be "color(srgb 0.830979 0.831128 0.848404)"
✅ passed
valid focused Base 9b6695525c: valid focused Head 049c4091cd: valid focused
valid resting Base 9b6695525c: valid resting Head 049c4091cd: valid resting
valid resting 2x Base 9b6695525c: valid resting 2x Head 049c4091cd: valid resting 2x
invalid focused Base 9b6695525c: invalid focused Head 049c4091cd: invalid focused
valid inputs resting Base 9b6695525c: valid inputs resting Head 049c4091cd: valid inputs resting
Enlarged detail / interaction Before After
When resting shadow, 4× pixel crop Before: When resting shadow, 4× pixel crop After: When resting shadow, 4× pixel crop
Input resting shadow, 4× pixel crop Before: Input resting shadow, 4× pixel crop After: Input resting shadow, 4× pixel crop
Valid focus → blur → invalid, splash removed Before recording After recording

Pixel crops use nearest-neighbor enlargement of the original resting stills. Recordings show two seconds focused valid, roughly three seconds blurred valid, then invalid; startup splash is removed.

Scenario source. Run with T3CODE_FEATURE_FLAGS=secret_providers T3_SCENARIO_INHERIT_ENV=T3CODE_FEATURE_FLAGS.

Coverage: InputGroup border, focused ring, outer resting shadow and ::before shadow; Input resting shadow in the real Secrets dialog. Invalid When styling remains red on both commits. The five remaining primitives are unverified.

Not shown:

  • Textarea, Select, Checkbox, RadioGroup, and NumberField aria-invalid=false resting-shadow changes remain unverified: no real application path rendering these five primitives with that attribute value was found. The captures prove InputGroup and the real boolean-prop Input caller in SecretProviderDialog only.
  • Dark-theme styling was not captured; this proof uses the same light theme on both commits.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Dec 3, 2026
@juliusmarminge
juliusmarminge merged commit a45309f into pingdotgg:main Dec 3, 2026
42 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Dec 3, 2026
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