Repository navigation
feat(web): revamp the ui around the ai investigation - #48
Merged
Merged
Conversation
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>
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.
What
1. The AI investigation is the centre of the incident page
lib/investigation-flow.ts, unit-tested on every way the flow stops); the active step pulses, finished connectors fill, live updates move it on.<details>). Missing evidence as chips; checks as a numbered list.2. Charts and numbers that move
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
next buildcompiles🤖 Generated with Claude Code