Cockpit Matrix Panel
The Matrix panel is a cockpit view that lets pilots juxtapose two dimensions of Chronos data and inspect the intersections, like a Chronos-aware pivot table.
Goals
- Expose cross-cutting patterns without chaining multiple CLI commands.
- Enable repeatable dashboards (habit streak boards, template coverage grids).
- Stay extensible for new dimensions and metrics.
Panel Anatomy
- Config bar with row/column dimension selectors and metric control.
- Grid canvas with sticky headers and formatted metrics.
- Hover tooltips and click actions to drill into the Item Manager.
Dimensions (Examples)
- Item type, status requirement, item status, priority, project.
- Template, routine, weekday, date, habit, commitment.
Metrics
- Count, duration, points, list, completion rate, streak.
API Shape
GET /api/cockpit/matrix?row=<dimension>&col=<dimension>&metric=<metric>
Response:
{
"rows": [{"id":"task","label":"Tasks"}],
"cols": [{"id":"pending","label":"Pending"}],
"cells": {"task|pending": {"value": 12, "items": ["Inbox Sweep"]}}
}
Implementation
Panel implementation lives in Utilities/Dashboard/Panels/Matrix/index.js.
