corvix.presentation

Rich dashboard rendering from persisted notification records.

Classes

DashboardRenderResult

Rendered dashboard metadata.

Functions

render_dashboards(→ list[DashboardRenderResult])

Render one table per dashboard group.

_build_table(→ rich.table.Table)

Module Contents

class corvix.presentation.DashboardRenderResult[source][source]

Rendered dashboard metadata.

dashboard_name: str[source][source]
rows: int[source][source]
corvix.presentation.render_dashboards(console: rich.console.Console, records: list[corvix.domain.NotificationRecord], dashboards: list[corvix.config.DashboardSpec], generated_at: datetime.datetime | None) list[DashboardRenderResult][source][source]

Render one table per dashboard group.

corvix.presentation._build_table(dashboard: corvix.config.DashboardSpec, group_name: str) rich.table.Table[source][source]