Files
adminandClaude Opus 5.5 d196a5f087 Port the dashboard from Compass onto the stats contract and the event log (M4)
Panorama's dashboard is one card per platform module, filled from each
module's GET /api/v1/stats (dredd-core 0.23.0 stats_contract) called with the
person's own session token, so every tile counts only what that person may see
and equals the list it links to. Which modules exist is configuration
(<SLUG>_BASE_URL, empty = absent); an absent, down, slow or closed module is a
status on its card, never an error page.

Trends and durations are aggregates over the shared module_event, read
through the event log's new reader tier (SELECT only) via a table() construct,
so no local module_event shadow is ever built. Compass's dashboard_layout
(own/firm/builtin, strict write, lenient read, audited firm default) moves to
Panorama's own dashboard_layout table; its durations arithmetic is rebuilt on
event milestones. Trends are moderators-only by default (TRENDS_AUDIENCE).

The example entity is gone; 0001 builds with checkfirst=False; provision.sql
and CI's --check-file are the platform rendering. dredd-core is pinned to the
feat/m4-stats commit until v0.23.0 is tagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 21:52:43 +01:00
..