mirror of
https://github.com/bpmforge/kryptkeeper.git
synced 2026-11-23 16:02:01 +00:00
8.6 KiB
8.6 KiB
UX Specification
Task, journey and component reference. INFORMATION_ARCHITECTURE.md holds
the page-complete route map and nav grouping.
Primary Tasks
- See what is most urgent — dashboard → risk rail → item detail → action.
- Manage certificates at scale — search/filter list → detail → renew/revoke/import → confirm → audit trail.
- Monitor discovery and endpoint risk — inventory → filter risky endpoints → mapping → remediation or scan.
- Track alerts and delivery automation — delivery failures/escalations → acknowledge/retry → verify status and history.
- Manage CAs — CA health and status → key storage and issuance posture → next action.
- Govern proposed actions — review a proposal in PendingActions → approve as a different admin → outcome lands in History/Audit.
- Plan and execute PQC migration — read crypto posture and algorithm-sunset exposure → run a migration wave in PQCMigration → propose execution → approve → track progress.
- Configure automation and renewal — register a target → set a renewal policy → confirm automation picks it up without manual intervention.
Journey Maps
(a) Urgent-risk triage
flowchart LR
A[Dashboard] --> B[Risk rail]
B --> C[Certificates list / detail]
C --> D[Action: renew/revoke/import]
D --> E[Audit]
(b) Issue-to-install
flowchart LR
A[IssueWizard] --> B[Templates / CAs]
B --> C[TargetSetup]
C --> D[RenewalPolicy]
D --> E[Verify install]
(c) Discovery-to-remediation
flowchart LR
A[Discovery] --> B[Endpoint detail]
B --> C[Import / queue remediation]
C --> D[Certificates]
(d) Approval governance
flowchart LR
A[Proposal: MCP or UI] --> B[PendingActions]
B --> C[Approve by different admin]
C --> D[History / Audit]
(e) PQC migration journey
flowchart LR
A[CryptoPosture / AlgorithmSunset] --> B[PQCMigration report]
B --> C[Wave wizard: plan/select/schedule]
C --> D[Propose execute]
D --> E[Approvals]
E --> F[Track progress]
Persona Alignment
The 5 SDLC personas (docs/sdlc/phase-1-planning/USER_PERSONAS.md) are
canonical. UX_IMPROVEMENT_PLAN.md's 4 roles map onto them:
| UX_IMPROVEMENT_PLAN role | Canonical persona | Notes |
|---|---|---|
| PKI Admin | Alex | Direct match — CAs, templates, issuance, revocation, renewal. |
| Security Operations | Sam (operational facet) + Riley | Posture/alerts drift is Sam's; device-cert automation is Riley's. |
| App/Service Owner | Jordan | Owns certs/endpoints for services they run. |
| Auditor/Compliance | Sam (compliance facet) | Evidence, history, exports — same persona, different task. |
| — | Casey | No UI-plan role; deliberately docs/community-facing, not a UI user. |
Component Inventory
Layout
- AppShell
- TopNav / Sidebar
- RiskCommandRail
- SectionHeader
- PageHeader — canonical eyebrow + H1 page header
- ContentGrid
- Panel — bordered content section
Data Display
- SummaryCard
- MetricCard — single-value stat with trend/threshold styling
- RankedQueue
- Table with sort/filter/pagination
- DetailPanel
- StatusBadge / Badge
- Timeline / history feed
- EmptyState
- StateMessage — unified loading/error/empty message block
Forms
- SearchInput
- FilterChips
- Select
- Date/expiry filter
- Reason textarea
- Confirm action dialog
- Wizard / stepper — shared multi-step flow (issuance, target setup, onboarding, PQC wave)
Feedback
- Loading skeletons
- Error banner with retry
- Success toast
- Inline validation errors
- Confirmation state
- Journey/result panel — step-by-step outcome summary (PQC wave, approval outcome)
Navigation
- Left or top primary nav
- Breadcrumbs on detail pages
- In-page tabs for detail subviews
State Matrix
| Component | Loading | Loaded | Error | Empty |
|---|---|---|---|---|
| Dashboard summary cards | Skeleton cards | Risk, expiry, and queue counts | Error banner + retry | Zero-state guidance with setup/action CTA |
| Certificates table | Skeleton rows | Filtered inventory with actions | Banner + retry + preserve filters | Empty explanation + import/scan CTA |
| Certificate detail | Skeleton panel | Identity, chain, risk, lifecycle, actions | Failure state + back link | Not found with search backout |
| Discovery list | Skeleton rows | Endpoints, scan jobs, risk scores | Retry with last known filters | "No endpoints yet" with scan CTA |
| Discovery detail | Skeleton panel | Endpoint history, mappings, scan activity | Error with retry | No mapping guidance |
| Alerts center | Skeleton cards/list | Pending, escalations, failures, history | Retry + degraded mode note | No alerts = automation healthy |
| CA list | Skeleton cards | CA status, storage type, health | Retry + outage note | No CAs configured CTA |
| PendingActions queue | Skeleton rows | Proposed actions with proposer/action | Retry + preserve filters | No pending actions |
| PQCMigration wave panel | Skeleton stepper | Plan/select/schedule/execute state | Error with retry per step | No wave started CTA |
Key Workflows
1) Dashboard triage
- User opens app.
- Risk command rail ranks the highest-priority work.
- User clicks an item and lands on the relevant filtered list or detail view.
- User takes action or assigns ownership.
2) Certificate renewal / revocation
- User searches or filters certificates.
- User opens a certificate detail page.
- UI shows chain, expiry, risk, ownership, and history.
- User selects renew/revoke/import.
- Confirmation dialog explains impact before commit.
- Result lands in audit/history.
3) Discovery remediation
- User views discovered endpoints and risky items.
- Filters by protocol, team, or risk.
- Opens endpoint detail.
- Reviews mapping, last scan, and last seen.
- Queues scan or remediation.
4) Alerts operations
- User opens alerts center.
- Sees pending deliveries, failures, and escalations.
- Acknowledges or retries a delivery.
- Status updates immediately and remains auditable.
5) Approval governance
- A proposal is created via MCP or the UI (never auto-applied).
- It appears in PendingActions.
- A different admin from the proposer reviews and approves or rejects.
- Outcome is recorded in History and Audit.
6) PQC migration wave
- User reviews CryptoPosture / AlgorithmSunset exposure.
- Opens PQCMigration report and starts a wave via the Wizard panel.
- Plans, selects affected certs, and schedules the wave.
- Proposes execution — requires a different admin's approval via Approvals.
- Tracks wave progress back on PQCMigration.
Accessibility Plan (WCAG 2.2 AA)
- Keyboard: all primary actions reachable in logical tab order; dialogs trap focus; escape closes dialogs.
- Focus: visible focus ring on every interactive element.
- Screen reader: landmarks, real headings, table headers, and live-region updates for action results.
- Contrast: dark theme tokens must maintain AA contrast for text and badges.
- Motion: respect
prefers-reduced-motion; keep motion optional and brief. - Target size: 44x44 minimum for action buttons and nav items.
- Forms: field-level errors tied to inputs; no color-only validation.
Responsive Strategy
- Desktop (1440): two-column shell with persistent risk rail and main content.
- Tablet (768): risk rail collapses into a top summary strip; tables retain horizontal scannability.
- Mobile (375): single-column flow, stacked cards, compact nav, bottom-safe action spacing.
Content Principles
- Explain risk in plain language.
- Prefer "what should I do next?" over raw metrics.
- Show provenance: last scan, last delivery, last actor, last change.
- Never use empty states that blame the user.
Screen Hierarchy
graph TD
App[Kryptkeeper App Shell]
App --> Overview
App --> Inventory
App --> Issuance
App --> Governance
App --> Automation
App --> Identity
App --> Reports
App --> AdminConfig
Overview --> Dash[Dashboard incl. Onboarding]
Overview --> Search
Inventory --> Certs[Certificates + detail]
Inventory --> Discovery[Discovery + detail]
Issuance --> IssueWiz[IssueWizard]
Governance --> Approvals
Governance --> Pending[PendingActions]
Automation --> TargetSetup
Automation --> RenewalPolicy
Reports --> PQC[PQCMigration]
Backend Support Needed
- Filtered list endpoints for certificates, endpoints, alerts, and CAs
- Detail endpoints with history and dependencies
- Action endpoints for renew, revoke, import, acknowledge, retry, queue scan
- Audit trail endpoints for proof and review
- Approval-queue endpoints preserving proposer/approver separation
- PQC wave endpoints for plan/select/schedule/propose-execute