[kimi] Add dashboard card for Daily Run and triage metrics (#718) #786

Merged
kimi merged 1 commits from kimi/issue-718 into main 2026-03-21 19:58:26 +00:00
Collaborator

Fixes #718

Summary

This PR adds a new dashboard card that displays Daily Run sessions and triage metrics, visible in the Mission Control sidebar.

Changes

  • New route src/dashboard/routes/daily_run.py:

    • /daily-run/panel - HTMX-polling endpoint returning the card HTML
    • /daily-run/metrics - JSON API for programmatic access
    • Fetches real-time data from Gitea API
    • Tracks layer labels: triage, micro-fix, tests, economy
  • New template src/dashboard/templates/partials/daily_run_panel.html:

    • Displays sessions completed over last 7 days with trend indicators
    • Shows issues touched by layer with counts and trend arrows
    • Links to Daily Run logbook and filtered issue lists
  • Updated src/dashboard/app.py:

    • Registered new daily_run_router
  • Updated src/dashboard/templates/index.html:

    • Added Daily Run card to sidebar with 60-second HTMX polling

Metrics Displayed

Metric Description Trend
Sessions Successful dev cycles (last 7 days) ↑/↑↑/→/↓/↓↓ vs previous period
Triage Issues with layer:triage label Count + trend
Micro-fix Issues with layer:micro-fix label Count + trend
Tests Issues with layer:tests label Count + trend
Economy Issues with layer:economy label Count + trend
Total All layer-tagged issues touched Current vs previous

Testing

  • All unit tests pass (2692 passed, 1 skipped)
  • Code formatted with ruff
  • Linting passes with no issues
  • No inline CSS in templates
Fixes #718 ## Summary This PR adds a new dashboard card that displays Daily Run sessions and triage metrics, visible in the Mission Control sidebar. ## Changes - **New route** `src/dashboard/routes/daily_run.py`: - `/daily-run/panel` - HTMX-polling endpoint returning the card HTML - `/daily-run/metrics` - JSON API for programmatic access - Fetches real-time data from Gitea API - Tracks layer labels: `triage`, `micro-fix`, `tests`, `economy` - **New template** `src/dashboard/templates/partials/daily_run_panel.html`: - Displays sessions completed over last 7 days with trend indicators - Shows issues touched by layer with counts and trend arrows - Links to Daily Run logbook and filtered issue lists - **Updated** `src/dashboard/app.py`: - Registered new `daily_run_router` - **Updated** `src/dashboard/templates/index.html`: - Added Daily Run card to sidebar with 60-second HTMX polling ## Metrics Displayed | Metric | Description | Trend | |--------|-------------|-------| | Sessions | Successful dev cycles (last 7 days) | ↑/↑↑/→/↓/↓↓ vs previous period | | Triage | Issues with `layer:triage` label | Count + trend | | Micro-fix | Issues with `layer:micro-fix` label | Count + trend | | Tests | Issues with `layer:tests` label | Count + trend | | Economy | Issues with `layer:economy` label | Count + trend | | Total | All layer-tagged issues touched | Current vs previous | ## Testing - All unit tests pass (2692 passed, 1 skipped) - Code formatted with ruff - Linting passes with no issues - No inline CSS in templates
kimi added 1 commit 2026-03-21 19:57:55 +00:00
feat: add dashboard card for Daily Run and triage metrics (#718)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
c970e85407
- Add new /daily-run/panel endpoint for HTMX-polling card
- Add /daily-run/metrics API endpoint for JSON data
- Show sessions completed over last 7 days with trend indicators
- Display issues touched by layer: triage, micro-fix, tests, economy
- Add links to Daily Run logbook and filtered issue lists
- Update index.html sidebar to include the new card

Fixes #718
kimi merged commit 7e983fcdb3 into main 2026-03-21 19:58:26 +00:00
kimi deleted branch kimi/issue-718 2026-03-21 19:58:26 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#786