Repository navigation
Add Violet Circuit design review tools and FormSelect validation - #1079
Merged
Merged
Conversation
Collaborator
Author
|
@mjudeikis-bot review |
mjudeikis
reviewed
Nov 12, 2026
mjudeikis
left a comment
Contributor
There was a problem hiding this comment.
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 wholerenderControl/syncControl/syncHiddenInputpath, to confirm the error node is appended torootand torn down cleanly on everysyncControl.provider-sdk/portalkit-vue/FormSelect.vue: script and template.railgrid-ui.css.k-form-selectroot and trigger rules, to check the new selectors against the existing ones.hack/impeccable-preview/serve.mjs,generate.mjsandhack/design-review/vite.config.mjs.- Callers of
errorMessageinportal/src(the existingerrorMessageprops are unrelated dialog props).
Hunt categories
- Correctness:
aria-describedbyandaria-invalidare built correctly, and the error node is created and removed symmetrically in both implementations. The message renders only wheninvalid && errorMessage, so existing callers are unchanged (opt-in holds). - Concurrency: not applicable, since this is synchronous DOM code. The one-off
Date.now()invite.config.mjsis 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 bothrailgrid-ui.cssandstyles.ts, and the vendored copies are in sync. - Security:
serve.mjsbinds 127.0.0.1 and serves only allowlisted paths, with/sourcerestricted to therefsset, so there is no path traversal. Markdown is rendered withhtml: false. The error text is set withtextContent. TheinnerHTMLuse is limited to the staticic()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
errorMessagebehaviour (see the Notes).
Commands run
make verify-portalkitpasses ("portalkit copies are in sync").make verify-design-docspasses witherrors: [].make verify-ui-conformancepasses afternpm ciinportal/: 141, 6, 22 and 32 tests passed, 0 failed. The first run failed only becauseportal/node_moduleswas absent.node hack/impeccable-preview/generate.mjsregeneratesDESIGN.md,snapshot.jsonand the sidecar with a cleangit status, so the checked-in scan is current.
Not run
make build,make vet,make lintand the Go tests: no Go files changed.make verify-codegen,make verify-provider-contractandmake verify-boilerplate: noapis/, manifest or chart changes, and the PR adds no Go files.hack/design-review/check.mjsand 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.
54 of 61 tasks
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.
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-docsandmake verify-ui-conformanceon the rebased branchA live Tilt-backed application was unavailable; browser verification used the local fixture.