feat(web): React activity views — sessions + projects (AUR-269)#27
Merged
Conversation
Visualizes the per-event activity classifier (AUR-264) data: - /sessions/:id/activity — stacked bar of events × category in 1-min buckets across the session's lifetime, plus a per-category cost + count + percentage table. Bucketed client-side from the session's events so we don't need a new time-series API. - /projects/:name/activity — pie of events-by-category + pie of cost-by-category + per-category breakdown table including the new sessionsTouched column. Empty-state for unclassified projects. Both routes are lazy-loaded behind the existing Suspense fallback, matching SessionTokens/Trends/SessionGraph. Nav links surface from Session.tsx and ProjectDetail.tsx. Extends activityByProject SQL with COUNT(DISTINCT session_id) and adds sessionsTouched to ActivityBucket. EventDetails type in the web client now exposes details.category. +1 vitest case for the new column. Full suite 369/369 (was 368).
mishanefedov
added a commit
that referenced
this pull request
May 25, 2026
Visualizes the per-event activity classifier (AUR-264) data: - /sessions/:id/activity — stacked bar of events × category in 1-min buckets across the session's lifetime, plus a per-category cost + count + percentage table. Bucketed client-side from the session's events so we don't need a new time-series API. - /projects/:name/activity — pie of events-by-category + pie of cost-by-category + per-category breakdown table including the new sessionsTouched column. Empty-state for unclassified projects. Both routes are lazy-loaded behind the existing Suspense fallback, matching SessionTokens/Trends/SessionGraph. Nav links surface from Session.tsx and ProjectDetail.tsx. Extends activityByProject SQL with COUNT(DISTINCT session_id) and adds sessionsTouched to ActivityBucket. EventDetails type in the web client now exposes details.category. +1 vitest case for the new column. Full suite 369/369 (was 368).
mishanefedov
added a commit
that referenced
this pull request
May 25, 2026
Visualizes the per-event activity classifier (AUR-264) data: - /sessions/:id/activity — stacked bar of events × category in 1-min buckets across the session's lifetime, plus a per-category cost + count + percentage table. Bucketed client-side from the session's events so we don't need a new time-series API. - /projects/:name/activity — pie of events-by-category + pie of cost-by-category + per-category breakdown table including the new sessionsTouched column. Empty-state for unclassified projects. Both routes are lazy-loaded behind the existing Suspense fallback, matching SessionTokens/Trends/SessionGraph. Nav links surface from Session.tsx and ProjectDetail.tsx. Extends activityByProject SQL with COUNT(DISTINCT session_id) and adds sessionsTouched to ActivityBucket. EventDetails type in the web client now exposes details.category. +1 vitest case for the new column. Full suite 369/369 (was 368).
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.
Linear: AUR-269
Summary
Visualizes the per-event activity classifier (AUR-264) data through two new lazy routes.
`/sessions/:id/activity`
`/projects/:name/activity`
API extension
`activityByProject` now adds `COUNT(DISTINCT session_id) AS sessions_touched`. `ActivityBucket` interface gets an optional `sessionsTouched` field. The web client's `EventDetails` type also exposes the existing `details.category` field.
Wiring
Acceptance criteria
Test plan