Skip to content

dashboard_controller

Controller for the dashboard view — subscribes to metrics and date events.

Classes:

DashboardController

DashboardController(
    view: BRMSDashboard,
    event_bus: EventBus,
    reporting_service: ReportingService,
    ledger: Ledger,
    metric_store: MetricStore,
    start_date: date | None = None,
    end_date: date | None = None,
)

Bases: BRMSController

Subscribes to MetricsComputed, FinancialsUpdated, DateAdvanced.

Methods:

  • init

    Initialize the dashboard view with starting state and seed plots from existing data.

  • on_visible

    Flush deferred plot updates when the dashboard becomes visible.

init

init() -> None

Initialize the dashboard view with starting state and seed plots from existing data.

on_visible

on_visible() -> None

Flush deferred plot updates when the dashboard becomes visible.