feat(ui): BYOK frontend polish — panel tests, UX/a11y, maintainer docs - #681
Merged
Conversation
Final round of the BYOK security-audit follow-ups (after #670, #680). - #673 Stand up a UI test runner (vitest + @testing-library/react + jsdom) in the gittensory-ui workspace and add the first component tests: the MaintainerPanel role gate (non-maintainer → "Maintainer access required", BYOK field never mounts; maintainer → dashboard) and AiReviewSettings (key field is write-only/password and never hydrates a stored key; provider/key mismatch is rejected client-side without a request; a valid key posts then clears). Wired `ui:test` into the CI "UI check" step. - #678 AI review panel UX + a11y: an initial loading state, an empty-state hint when no registered repos are detected, role="status" aria-live on the result banner, and aria-busy on the action buttons. - #675 Maintainer-facing BYOK documentation (docs/maintainer-byok-ai-review.md): how the advisory vs consensus layers work, that BYOK calls the provider directly and bills the maintainer (consensus always free), encrypted/write-only key handling, and dashboard vs .gittensory.yml config. Kept out of docs.github-app.tsx to avoid conflicting with the open onboarding-docs PR #648. Verified: ui:typecheck, ui:lint, ui:test (6 tests), ui:build, ui:openapi:check, actionlint, npm audit (0 vulns). Closes #673, #675, #678. Part of #525.
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 0e27015 | Commit Preview URL Branch Preview URL |
Jun 14 2026, 02:12 AM |
This was referenced Jun 14, 2026
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.




Final round of the BYOK security-audit follow-ups (after #670, #680).
Changes
vitest+@testing-library/react+jsdomin thegittensory-uiworkspace (newvitest.config.ts/vitest.setup.ts,testscript) and adds:type=password) and never hydrates a stored key (the raw key never appears in the DOM); a provider/key mismatch is rejected client-side without any request; a valid key posts then clears the input.ui:testinto the CI "UI check" step so these run on every PR.role="status"+aria-live="polite"on the result banner, andaria-busyon the action buttons.docs/maintainer-byok-ai-review.md): advisory vs consensus layers; BYOK calls the provider directly and bills the maintainer (consensus is always free Workers AI); encrypted/write-only key handling; dashboard vs.gittensory.ymlconfig. Kept out ofdocs.github-app.tsxto avoid conflicting with the open onboarding-docs PR feat(ui): maintainer onboarding — hero install button + config-as-code docs #648.Verification
ui:typecheck✅ ·ui:lint✅ ·ui:test✅ (6 tests) ·ui:build✅ ·ui:openapi:check✅ ·actionlint✅ ·npm audit✅ (0 vulns)The
package-lock.jsonchange is purely additive (jsdom/Testing-Library transitive deps).Closes #673, #675, #678. Part of #525.