feat(overview): timeline-first landing — event feed, project overview, guided actions (UX P2)#78
Merged
Merged
Conversation
…, guided actions (UX P2)
- event_feed.py: deterministic event rules over per-(service, signature)
time buckets — begins / spike / subsides / new_pattern / health
transitions. Pure rule engine, no LLM cost per load; 15 unit tests.
- GET /projects/{id}/overview: events + corpus-wide signature clusters
(the un-deferred Path B) + services + derived suggested actions.
Window anchors to now and falls back to the project's latest data so
the landing page always tells the most recent story available.
- UI: ProjectPicker (0 projects -> create, 1 -> auto-select, 2+ -> cards)
replaces the empty-chat hero; ProjectOverview renders the timeline,
clusters, services and suggested-action chips as the landing panel;
chips route to Deep Research (grounded query: signature + service +
time range pre-filled) or /chat; sidebar shows per-conversation
project badges; chat + investigate carry the conversation's project.
Verified live on real LogHub data: Infra overview shows 'zookeeper enters
degraded state -> recovers' with clusters and 5 action chips; clicking an
Investigate chip ran a scoped DR investigation end-to-end. 6/6 puppeteer
flows pass against the new flow.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Second of three stacked PRs for the AI-Observability-Assistant redesign. Stacked on #77 — merge that first.
The new flow
Project selected → timeline loaded → error clusters → suggested actions → user picks an investigation. No empty chat screen.
What this adds
repi/retrieval/event_feed.py): deterministic rules over per-(service, signature) time buckets — begins, spike (×N), subsides, new pattern, and per-service degraded/recovers health transitions. Pure rule engine (15 unit tests, no DB needed), zero LLM cost per timeline load.GET /projects/{id}/overview: events + corpus-wide signature clusters (un-defers the "Path B" noted in cluster_view.py) + services + derived suggested actions. The window anchors to now and falls back to the project's latest data when idle/historical (anchored_to_latest), so the landing always tells the most recent story available.ProjectPicker(0 projects → inline create, 1 → auto-select, 2+ → cards) replaces the empty-chat hero;ProjectOverviewis the landing panel — narrative timeline, clusters, services row, suggested-action chips. Investigate chips launch Deep Research with a grounded query (signature + service + time range pre-filled); chat chips go through /chat. Sidebar shows per-conversation project badges.Verified live (real LogHub Zookeeper data)
Overview renders "zookeeper enters degraded state → zookeeper recovers" with 3 clusters (77×/2×/1×) and 5 action chips; clicking an Investigate chip ran a project-scoped Deep Research investigation end-to-end. 6/6 puppeteer flows pass against the new landing flow (including a fresh full DR run).
Test plan
uv run pytest tests/ -q— 231 passed (15 new event-feed rule tests)npx tsc --noEmitclean