Skip to content

Add Violet Circuit design review tools and FormSelect validation - #1079

Merged
cwilhit merged 3 commits into
mainfrom
codex/form-select-validation
Nov 12, 2026
Merged

cwilhit merged 3 commits into
mainfrom
codex/form-select-validation

Conversation

@cwilhit

@cwilhit cwilhit commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add source-linked review tools and a generated visual overview for the Violet Circuit design system. The design book remains the authority for detailed behavior, accessibility, and integration. The local review fixtures cover components and patterns; the separate visual scan extracts tokens and specimens from the shared implementation. A Violet Circuit skill guides implementation review against the design book and browser evidence.

Required FormSelect fields can report an invalid submission without a consistent visible error treatment. Add a danger border and icon-led corrective message to the shared Vue and framework-neutral controls, retaining the violet focus cue and associating the message with the trigger. Existing callers can continue to associate their own messages; the shared message is opt-in. Update control guidance and align the design book's toggle description and open design questions with the implementation and current review.

Validation

  • make verify-design-docs and make verify-ui-conformance on the rebased branch
  • PortalKit copy parity check using a Bash 3-compatible translation of the sync verifier
  • Design-review Vite production build on the rebased branch
  • Design-review browser checks in light/desktop and dark/narrow viewports on the original checkout, including keyboard recovery for both FormSelect implementations
  • Regenerated the visual scan from the PR branch and checked that its preview, document, tokens, and specimens are served

A live Tilt-backed application was unavailable; browser verification used the local fixture.

@cwilhit
cwilhit requested a review from mjudeikis as a code owner November 12, 2026 00:04
@cwilhit cwilhit changed the title Add FormSelect error treatment and design review fixtures Add Violet Circuit design review tools and FormSelect validation Nov 12, 2026
@cwilhit

cwilhit commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@mjudeikis-bot review

@mjudeikis mjudeikis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No Critical or Warning findings. Three Notes below. This PR touches no Go, hub, provider backend, manifest, chart, or API code, so the tenancy, kcp, provider-contract and storage categories do not apply.

Checked

Read beyond the diff

  • provider-sdk/portalkit/form-select.ts: the whole renderControl/syncControl/syncHiddenInput path, to confirm the error node is appended to root and torn down cleanly on every syncControl.
  • provider-sdk/portalkit-vue/FormSelect.vue: script and template.
  • railgrid-ui.css .k-form-select root and trigger rules, to check the new selectors against the existing ones.
  • hack/impeccable-preview/serve.mjs, generate.mjs and hack/design-review/vite.config.mjs.
  • Callers of errorMessage in portal/src (the existing errorMessage props are unrelated dialog props).

Hunt categories

  • Correctness: aria-describedby and aria-invalid are built correctly, and the error node is created and removed symmetrically in both implementations. The message renders only when invalid && errorMessage, so existing callers are unchanged (opt-in holds).
  • Concurrency: not applicable, since this is synchronous DOM code. The one-off Date.now() in vite.config.mjs is only a dev cache-buster.
  • Tenancy and kcp: not applicable, no server code changed.
  • Provider contract: not applicable, no verbs, manifests or charts changed.
  • API and codegen: no apis/ changes. PortalKit core version is bumped 48 to 49 in both railgrid-ui.css and styles.ts, and the vendored copies are in sync.
  • Security: serve.mjs binds 127.0.0.1 and serves only allowlisted paths, with /source restricted to the refs set, so there is no path traversal. Markdown is rendered with html: false. The error text is set with textContent. The innerHTML use is limited to the static ic() icon markup.
  • Portal: the canonical sources in provider-sdk/ were edited and the vendored copies regenerated. The PR describes browser checks in both themes and viewports, but the rendered evidence is not attached to the PR (see the Notes).
  • Tests: no unit or behaviour test covers the new errorMessage behaviour (see the Notes).

Commands run

  • make verify-portalkit passes ("portalkit copies are in sync").
  • make verify-design-docs passes with errors: [].
  • make verify-ui-conformance passes after npm ci in portal/: 141, 6, 22 and 32 tests passed, 0 failed. The first run failed only because portal/node_modules was absent.
  • node hack/impeccable-preview/generate.mjs regenerates DESIGN.md, snapshot.json and the sidecar with a clean git status, so the checked-in scan is current.

Not run

  • make build, make vet, make lint and the Go tests: no Go files changed.
  • make verify-codegen, make verify-provider-contract and make verify-boilerplate: no apis/, manifest or chart changes, and the PR adds no Go files.
  • hack/design-review/check.mjs and the Vite production build: they need Playwright and Chromium, which are not available in this runner.
  • e2e suites: the change is portal-only and none of the AGENTS.md section 7 suites cover it.

Comment thread provider-sdk/portalkit/form-select.ts Resolved
Comment thread docs/design/components/form-select.md Resolved
@cwilhit
cwilhit merged commit f8f96e7 into main Nov 12, 2026
47 of 48 checks passed
@cwilhit cwilhit mentioned this pull request Nov 15, 2026
54 of 61 tasks
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