Skip to content

Commit ef9423a

Browse files
authored
refactor(console): restyle the first-run wizard and credential request (#192)
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> Co-authored-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
1 parent 53d786c commit ef9423a

16 files changed

Lines changed: 340 additions & 656 deletions

‎AGENTS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ components, named exports from `src/index.ts`) and
3232
The "Make a credential request" page `/request-credential` is outside the gate too, and makes
3333
no network calls at all: it must not import the Fleet Manager client.
3434
- `src/components/layout/` - app shell: header, sidebar nav, wordmark, theme toggle, auth gate.
35-
- `src/components/ui/` - shadcn/ui primitives (button, card, badge, separator).
35+
There is no local `src/components/ui/`: every primitive comes from `@cryptos-pki/ui`, and
36+
`src/components/` holds only app-specific parts (wizards, dialogs, the topology graph).
3637
- `src/context/` - `theme.tsx` (dark/light, persisted) and `auth.tsx` (browser-mTLS gate stub).
3738
- `src/lib/` - `mock.ts` (the typed Node model), `mock-fixtures.real.ts`/`mock-fixtures.stub.ts`
3839
(the fixture data every mock store's `seed()` copies from, swapped by `vite.config.ts` at build

‎apps/console/src/components/copy-block.tsx‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)