Skip to content

Add run treemap visualization#3

Merged
dutifulbob merged 2 commits intomainfrom
codex/run-treemap
Apr 14, 2026
Merged

Add run treemap visualization#3
dutifulbob merged 2 commits intomainfrom
codex/run-treemap

Conversation

@dutifulbob
Copy link
Copy Markdown
Member

Summary

  • add duration-aware run treemap contracts, data model fields, and API endpoint
  • render a treemap on run detail pages with step, file, and process drill-down
  • cover the treemap endpoint in integration tests and verify the UI drill-down flow

Testing

  • pnpm format:check
  • pnpm lint
  • pnpm docs:validate
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge VERGE_INTEGRATION_DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge GITHUB_WEBHOOK_SECRET=integration-secret pnpm test:integration
  • DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge GITHUB_WEBHOOK_SECRET=integration-secret pnpm test:smoke

@dutifulbob
Copy link
Copy Markdown
Member Author

Implemented the run treemap end to end.

What changed:

  • added run treemap contracts and API support
  • added stored duration_ms on runs, step runs, and process runs
  • added a dedicated /runs/:id/treemap read model that builds run -> step -> file -> process
  • added the treemap UI on the run page with step/process drill-through
  • fixed duration handling so active items still show live elapsed time when stored duration is absent
  • handled treemap fetch failures without breaking the rest of the run page
  • added process-row highlighting when navigating from the treemap into a step detail view

Validation run on the current head:

  • pnpm format:check -> passed
  • pnpm lint -> passed
  • pnpm docs:validate -> passed
  • pnpm typecheck -> passed
  • pnpm test -> passed
  • pnpm build -> passed
  • DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge VERGE_INTEGRATION_DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge GITHUB_WEBHOOK_SECRET=integration-secret pnpm test:integration -> passed
  • DATABASE_URL=postgresql://verge:verge@127.0.0.1:54329/verge GITHUB_WEBHOOK_SECRET=integration-secret pnpm test:smoke -> passed

Browser verification:

  • verified the treemap on a branch-local instance with an isolated database
  • verified step-node navigation from the treemap into step detail
  • verified process-node navigation into a highlighted process row on the step page
  • verified there were no page errors during the checked flows

Review:

  • pushed the latest head before review
  • ran codex review --base main
  • fixed the issues it surfaced around duration fallback and treemap error handling
  • reran review on the updated head; no additional P0/P1 findings surfaced in the emitted review trace after the fixes

What was not fully verified locally:

  • staging or production deployment behavior
  • cross-browser verification beyond the local browser automation run

@dutifulbob dutifulbob merged commit 106d1e2 into main Apr 14, 2026
1 check passed
@dutifulbob dutifulbob deleted the codex/run-treemap branch April 14, 2026 08:19
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.

1 participant