Codex/feat dashboard#5
Merged
Merged
Conversation
71d67d8 to
9ecb999
Compare
Introduce a top-bar dashboard view that surfaces provider, project, session, message, bookmark, token, tool-call, model, and recent-activity aggregates in a new renderer layout. Adds hero metrics, provider throughput, category composition, activity skyline, and top project/model sections while fitting the existing app shell patterns. Add a dashboard:getStats IPC contract and query-service aggregation path that combines SQLite-backed session metrics with bookmark totals and provider activity rollups. Wire the request through bootstrap, preload, the shared bridge, and renderer types so the desktop app can fetch the dashboard through the existing typed boundary. Cover the new behavior with query-service, IPC-contract, App-shell, focus restoration, TopBar, and DashboardView tests, including top-bar navigation and dashboard refresh/error handling.
Extend the dashboard:getStats response with AI code-writing metrics derived from explicit tool_edit events. Adds a shared helper that parses stored tool-call payloads into per-file write summaries, including change type counts, file and extension rollups, line additions/deletions, and recent write activity. Expand the dashboard UI with a dedicated AI Code Activity section that surfaces write KPIs, coverage notes, write velocity, change profile, provider write throughput, top written files, and top file types while staying within the existing dashboard card and chart patterns. Refresh dashboard data whenever the view is reopened instead of loading it only once per app session. Cover the new behavior with shared helper, query-service, IPC-contract, dashboard renderer, and App-shell tests, including partial coverage, empty-state, and dashboard reopen refresh scenarios.
Adjust the rebased AI code activity aggregation to support upstream's move change type in parsed tool edit payloads. Extend the dashboard IPC contract, default state, fixtures, and query-service rollups so move operations are counted explicitly instead of surfacing as invalid change-type totals. Update the dashboard change profile and focused tests to reflect the wider write classification model introduced on upstream/main while keeping the rebased dashboard and AI analytics behavior green.
9ecb999 to
549e92e
Compare
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.
Summary
Adds a new dashboard to Code Trail with AI code-writing analytics derived from explicit
tool_editactivity.The dashboard is now accessible from the top bar and gives a data-rich view of indexed activity across providers, projects, sessions, messages, bookmarks, tool usage, models, and recent activity.
On top of that, it now includes a dedicated
AI Code Activitysection that highlights explicit write/edit activity captured in sessions.Changes
dashboard:getStatswithaiCodeStatsImplementation Notes
tool_editevents only as the source of truth for AI-written codeTesting
Validation
bun run desktop:buildpassedScreenshots