Skip to content

Codex/feat dashboard#5

Merged
mdemirhan merged 3 commits into
mdemirhan:mainfrom
biyiklioglu:codex/feat-dashboard
Apr 14, 2026
Merged

Codex/feat dashboard#5
mdemirhan merged 3 commits into
mdemirhan:mainfrom
biyiklioglu:codex/feat-dashboard

Conversation

@biyiklioglu
Copy link
Copy Markdown
Contributor

Summary

Adds a new dashboard to Code Trail with AI code-writing analytics derived from explicit tool_edit activity.

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 Activity section that highlights explicit write/edit activity captured in sessions.

Changes

  • Added a dedicated dashboard view in the app
  • Added dashboard aggregates for providers, projects, sessions, messages, bookmarks, tool calls, models, and recent activity
  • Extended dashboard:getStats with aiCodeStats
  • Added shared parsing/measurement logic for stored write tool payloads
  • Added AI code activity metrics for:
    • write events
    • measurable writes
    • write sessions
    • file changes
    • distinct files touched
    • lines added / deleted / net
    • multi-file writes
    • average files per write
    • add / update / delete breakdown
    • provider write throughput
    • recent write activity
    • top written files
    • top file types
  • Added dashboard empty-state and partial-coverage messaging for AI write stats
  • Updated dashboard behavior so closing and reopening it triggers a refresh

Implementation Notes

  • Uses explicit tool_edit events only as the source of truth for AI-written code
  • Computes the new write metrics on demand in the query layer
  • Reuses existing tool-edit parsing instead of adding a separate parsing path
  • Does not require a schema migration

Testing

  • Added shared helper tests for AI write parsing and line counting
  • Added query-service tests for AI code activity aggregation
  • Updated IPC contract and handler tests
  • Updated dashboard renderer tests
  • Added App-shell coverage for dashboard reopen refresh behavior

Validation

  • Focused Vitest suite passed
  • bun run desktop:build passed

Screenshots

Screenshot 2026-04-07 at 21 55 14 Screenshot 2026-04-07 at 21 56 16 Screenshot 2026-04-07 at 21 56 29

@biyiklioglu biyiklioglu force-pushed the codex/feat-dashboard branch from 71d67d8 to 9ecb999 Compare April 8, 2026 19:27
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.
@biyiklioglu biyiklioglu force-pushed the codex/feat-dashboard branch from 9ecb999 to 549e92e Compare April 9, 2026 12:54
@mdemirhan mdemirhan merged commit f3cf839 into mdemirhan:main Apr 14, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants