feat(web): React yield views — sessions + projects (AUR-270)#28
Merged
Conversation
Visualizes the git-correlation $/commit + $/line endpoints (AUR-265). - /sessions/:id/yield — commits-in-window table (hash, author, subject, files, +/-) with totals row, plus $/commit + $/line + cost + lines-changed callouts. Empty state when no commits landed during the session window. - /projects/:name/yield — weekly composed chart (cost bars + commit bars + $/commit line overlay), plus a sortable 'spend without commit' session list (cost / lines / files). Sortable column buttons. Both views handle the API's ok:false reasons (no store, no project tag, not a git repo under WORKSPACE_ROOT) with a helpful explainer. Lazy-loaded behind Suspense in main.tsx; nav links from Session.tsx and ProjectDetail.tsx. Full suite 369/369; typecheck clean (one pre-existing Logs.tsx unused var unrelated to this PR).
mishanefedov
added a commit
that referenced
this pull request
May 25, 2026
Visualizes the git-correlation $/commit + $/line endpoints (AUR-265). - /sessions/:id/yield — commits-in-window table (hash, author, subject, files, +/-) with totals row, plus $/commit + $/line + cost + lines-changed callouts. Empty state when no commits landed during the session window. - /projects/:name/yield — weekly composed chart (cost bars + commit bars + $/commit line overlay), plus a sortable 'spend without commit' session list (cost / lines / files). Sortable column buttons. Both views handle the API's ok:false reasons (no store, no project tag, not a git repo under WORKSPACE_ROOT) with a helpful explainer. Lazy-loaded behind Suspense in main.tsx; nav links from Session.tsx and ProjectDetail.tsx. Full suite 369/369; typecheck clean (one pre-existing Logs.tsx unused var unrelated to this PR).
mishanefedov
added a commit
that referenced
this pull request
May 25, 2026
Visualizes the git-correlation $/commit + $/line endpoints (AUR-265). - /sessions/:id/yield — commits-in-window table (hash, author, subject, files, +/-) with totals row, plus $/commit + $/line + cost + lines-changed callouts. Empty state when no commits landed during the session window. - /projects/:name/yield — weekly composed chart (cost bars + commit bars + $/commit line overlay), plus a sortable 'spend without commit' session list (cost / lines / files). Sortable column buttons. Both views handle the API's ok:false reasons (no store, no project tag, not a git repo under WORKSPACE_ROOT) with a helpful explainer. Lazy-loaded behind Suspense in main.tsx; nav links from Session.tsx and ProjectDetail.tsx. Full suite 369/369; typecheck clean (one pre-existing Logs.tsx unused var unrelated to this PR).
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-270
Summary
Visualizes the git-correlation$/commit + $ /line endpoints landed in AUR-265.
`/sessions/:id/yield`
`/projects/:name/yield`
Failure modes
Both views handle the API's `ok: false` reasons gracefully — "no store", "session has no project tag", "project is not a git repo under WORKSPACE_ROOT" — with a one-line explainer of what yield needs to compute.
Wiring
Both pages lazy-loaded behind `Suspense`. Nav links surface from `Session.tsx` and `ProjectDetail.tsx`.
Acceptance criteria
Test plan