Skip to content

feat(web): revamp the ui around the ai investigation - #48

Merged
Vishwas1345 merged 5 commits into
mainfrom
feat/ui-revamp
Oct 16, 2026
Merged

Vishwas1345 merged 5 commits into
mainfrom
feat/ui-revamp

Conversation

@Vishwas1345

Copy link
Copy Markdown
Owner

What

1. The AI investigation is the centre of the incident page

  • A flow stepper: AI analysis, output checked, policy check, human approval, verified. Derived only from the incident's records (lib/investigation-flow.ts, unit-tested on every way the flow stops); the active step pulses, finished connectors fill, live updates move it on.
  • An animated confidence ring (labelled as the model's own estimate).
  • Citations show the lab and time and jump to the cited event, which flashes; long lists collapse ("Show N more", native <details>). Missing evidence as chips; checks as a numbered list.
  • Policy as a checklist; a decision panel with an expiry countdown; correlation scores as bars; the timeline shows who acted (operator, worker, system).

2. Charts and numbers that move

  • KPI figures count up (the server renders the final value; reduced motion skips it).
  • The failure timeline animates and its legend toggles categories (never the last one).
  • The labs donut highlights a state on hover; bar lists grow in.

3. A consistent finish: cards and page titles rise in from the shared Card/PageHeader; status badges carry a dot as well as colour; incidents show severity down the left edge and correlation as a bar.

No new dependencies (CSS motion plus Recharts' own animation) and no backend change. Text the Playwright journey relies on is unchanged. Everything respects prefers-reduced-motion. "Simulated data" stays visible.

Verified

  • lint, typecheck, web unit 161 (new: flow states incl. every stopping path, legend toggle incl. never-hide-the-last, gauge, stepper, countdown, count-up), coverage 93.3%; next build compiles
  • Mutation-checked: the legend's last-category guard
  • Playwright journey passes on a fresh, freshly built stack (22 s)
  • Looked at every page in light and dark; README screenshots retaken from a fresh stack following the walkthrough

🤖 Generated with Claude Code

Vishwas1345 and others added 5 commits October 16, 2026 12:55
A stepper shows the path from AI analysis through output checks, policy,
human approval and verification, derived only from the incident's records
(flowSteps, unit-tested on every way the flow stops). The investigation gets
an animated confidence ring, citations that jump to and flash the cited event,
missing evidence as chips, and a decision panel with an expiry countdown.
Policy decisions read as a checklist; correlation scores as bars; the
timeline shows who acted. Motion is CSS only and respects reduced motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KPI figures count up once (the server renders the final value; reduced
motion skips it), the failure timeline's bars animate in and its legend
toggles categories (never the last one, which would read as no failures),
the labs donut highlights a state on hover, and bar lists grow in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cards and page titles rise in from one place (the shared Card and
PageHeader), status badges carry a dot as well as a colour, and the
incidents list shows severity down its left edge and correlation strength
as a bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Taken from a fresh stack following the README walkthrough: the demo, the
12-lab incident investigated, approved and verified, and the permission
incident blocked by policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vishwas1345
Vishwas1345 merged commit e1494d8 into main Oct 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant