Skip to content

refactor(console): restyle the first-run wizard and credential request - #192

Merged
Bugs5382 merged 1 commit into
mainfrom
refactor/187-finish-console-restyle
Oct 15, 2026
Merged

Bugs5382 merged 1 commit into
mainfrom
refactor/187-finish-console-restyle

Conversation

@Bugs5382

Copy link
Copy Markdown
Contributor

What and why

The first-run wizard (token, CA and admin steps) and the "Make a credential request" page move
onto the @cryptos-pki/ui kit: Field and Input for every form control, Notice for the fingerprint
warnings and errors, FingerprintConfirm for the CA reconfirm step, CopyBlock and KeyBackupStep for
the in-browser key flows, and Stepper for the wizard's progress strip. Routes, API calls and
refusal wording are unchanged.

These were also the last importers of the local components/ui/button and components/ui/input,
the local copy-block and key-backup-step. diagnostics-copy (shown on every sign-in gate)
picks up the kit's Button too, which was its only remaining local import. With nothing left
importing them, components/ui/, copy-block.tsx and key-backup-step.tsx (plus their tests)
are removed, closing out #137's design review.

Each rebuilt page gets an axe check of its initial state alongside the existing behavioural tests,
which stay green unchanged.

Refs #187
Refs #157

Verification

  • Lint clean
  • Tests pass
  • Build succeeds
  • Documentation updated (if behavior or API changed)

How this was verified

  • npm run lint (eslint + prettier --check): clean.
  • npm run test across all workspaces: 784 + 3 + 247 tests pass (console, api-client, ui).
  • npm run build across all workspaces: tsc + vite build succeed for console, tsc succeeds for ui.
  • node --test scripts/*.test.mjs and node scripts/check-release-bundle.mjs apps/console/dist:
    release bundle clean, no dev-only markers.
  • AGENTS.md's src/components/ui/ layout note updated to reflect the removal.

Before merging: add a closing comment summarizing what was actually done in this PR
(not just the checked boxes).

The first-run wizard (token, CA and admin steps) and the "Make a
credential request" page move onto the @cryptos-pki/ui kit: Field and
Input for every form control, Notice for the fingerprint warnings and
errors, FingerprintConfirm for the CA reconfirm step, CopyBlock and
KeyBackupStep for the in-browser key flows, and Stepper for the
wizard's progress strip. Routes, API calls and refusal wording are
unchanged.

These were also the last importers of the local components/ui/button
and components/ui/input, the local copy-block and key-backup-step.
diagnostics-copy (shown on every sign-in gate) picks up the kit's
Button too, which was its only remaining local import. With nothing
left importing them, components/ui/, copy-block.tsx and
key-backup-step.tsx (plus their tests) are removed, closing out #137's
design review.

Each rebuilt page gets an axe check of its initial state alongside the
existing behavioural tests, which stay green unchanged.

Refs #187
Refs #157

Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
@Bugs5382
Bugs5382 marked this pull request as ready for review October 15, 2026 19:51
@github-actions github-actions Bot added the refactor Internal change / refactor. label Oct 15, 2026
@Bugs5382
Bugs5382 merged commit ef9423a into main Oct 15, 2026
18 checks passed
@Bugs5382
Bugs5382 deleted the refactor/187-finish-console-restyle branch October 15, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Internal change / refactor.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant