corvix.dashboarding¶
Dashboard query helpers shared across presentation layers.
Classes¶
JSON-friendly notification item for UI rendering. |
|
A dashboard group such as repository or reason. |
|
Full dashboard payload for web and CLI presentation. |
|
Snapshot metadata used by the dashboard shell. |
Functions¶
|
Select, sort, group, and serialize records for a dashboard. |
|
|
|
|
|
Module Contents¶
- class corvix.dashboarding.DashboardItem[source][source]¶
JSON-friendly notification item for UI rendering.
- classmethod from_record(record: corvix.domain.NotificationRecord) DashboardItem[source][source]¶
Create a UI item from a stored notification record.
- class corvix.dashboarding.DashboardGroup[source][source]¶
A dashboard group such as repository or reason.
- items: list[DashboardItem][source][source]¶
- class corvix.dashboarding.DashboardData[source][source]¶
Full dashboard payload for web and CLI presentation.
- groups: list[DashboardGroup][source][source]¶
- summary: DashboardSummary[source][source]¶
- class corvix.dashboarding.DashboardSummary[source][source]¶
Snapshot metadata used by the dashboard shell.
- corvix.dashboarding.build_dashboard_data(records: list[corvix.domain.NotificationRecord], dashboard: corvix.config.DashboardSpec, generated_at: datetime.datetime | None = None, now: datetime.datetime | None = None) DashboardData[source][source]¶
Select, sort, group, and serialize records for a dashboard.
- corvix.dashboarding._included_by_dashboard(record: corvix.domain.NotificationRecord, dashboard: corvix.config.DashboardSpec, now: datetime.datetime) bool[source][source]¶
- corvix.dashboarding._group_records(records: list[corvix.domain.NotificationRecord], group_by: str) dict[str, list[corvix.domain.NotificationRecord]][source][source]¶
- corvix.dashboarding._build_summary(sorted_records: list[corvix.domain.NotificationRecord], groups: list[DashboardGroup]) DashboardSummary[source][source]¶