Skip to main content

Module components

Module components 

Source
Expand description

Server-rendered page components.

Structs§

BarColProps
One bar: native tooltip, full-height hit area, the stacked segments and a selection outline. The wrapper (<g> + click handler/link) is added by the caller.
BarColPropsBuilder
Typestate builder for BarColProps, created by BarColProps::builder(). build() becomes available once every required property has been set.
BarsChartProps
The bar chart (<svg>).
BarsChartPropsBuilder
Typestate builder for BarsChartProps, created by BarsChartProps::builder(). build() becomes available once every required property has been set.
BrandProps
Title with the version, plus the Dashboard / Settings / About tabs.
BrandPropsBuilder
Typestate builder for BrandProps, created by BrandProps::builder(). build() becomes available once every required property has been set.
ChartsPanelProps
Stacked bars over time and the share donut, both clickable.
ChartsPanelPropsBuilder
Typestate builder for ChartsPanelProps, created by ChartsPanelProps::builder(). build() becomes available once every required property has been set.
Clicks
What a click on a bar or slice does.
DashboardBodyProps
Cards, report and project tables for one Dashboard snapshot.
DashboardBodyPropsBuilder
Typestate builder for DashboardBodyProps, created by DashboardBodyProps::builder(). build() becomes available once every required property has been set.
DonutChartProps
The share donut (<svg>), its slices sweeping in through a mask.
DonutChartPropsBuilder
Typestate builder for DonutChartProps, created by DonutChartProps::builder(). build() becomes available once every required property has been set.
FiltersProps
GET form that drives the query string.
FiltersPropsBuilder
Typestate builder for FiltersProps, created by FiltersProps::builder(). build() becomes available once every required property has been set.
LiveFiltersProps
Selects bound to signals: changing one updates the signal in the browser and (because the enclosing shard reads it) re-renders the shard.
LiveFiltersPropsBuilder
Typestate builder for LiveFiltersProps, created by LiveFiltersProps::builder(). build() becomes available once every required property has been set.
ProjectsTableProps
Per-project / per-model breakdown, most expensive first.
ProjectsTablePropsBuilder
Typestate builder for ProjectsTableProps, created by ProjectsTableProps::builder(). build() becomes available once every required property has been set.
ReportTableProps
Aggregated report table with a share-of-tokens bar per line.
ReportTablePropsBuilder
Typestate builder for ReportTableProps, created by ReportTableProps::builder(). build() becomes available once every required property has been set.
SavingsPanelProps
What prompt caching, rtk and pi compaction saved, per source. Renders nothing when nothing was saved.
SavingsPanelPropsBuilder
Typestate builder for SavingsPanelProps, created by SavingsPanelProps::builder(). build() becomes available once every required property has been set.
SelectionBarProps
“Showing …” chips with a clear control, or a hint when nothing is selected.
SelectionBarPropsBuilder
Typestate builder for SelectionBarProps, created by SelectionBarProps::builder(). build() becomes available once every required property has been set.
SlicePathProps
One donut slice (the ring segment with its tooltip).
SlicePathPropsBuilder
Typestate builder for SlicePathProps, created by SlicePathProps::builder(). build() becomes available once every required property has been set.
SummaryCardsProps
Row of headline totals.
SummaryCardsPropsBuilder
Typestate builder for SummaryCardsProps, created by SummaryCardsProps::builder(). build() becomes available once every required property has been set.
ThemeStyleProps
The active theme’s CSS variables, as a <style> element.
ThemeStylePropsBuilder
Typestate builder for ThemeStyleProps, created by ThemeStyleProps::builder(). build() becomes available once every required property has been set.
bar_col
One bar: native tooltip, full-height hit area, the stacked segments and a selection outline. The wrapper (<g> + click handler/link) is added by the caller.
bars_chart
The bar chart (<svg>).
brand
Title with the version, plus the Dashboard / Settings / About tabs.
charts_panel
Stacked bars over time and the share donut, both clickable.
dashboard_body
Cards, report and project tables for one Dashboard snapshot.
donut_chart
The share donut (<svg>), its slices sweeping in through a mask.
filters
GET form that drives the query string.
live_filters
Selects bound to signals: changing one updates the signal in the browser and (because the enclosing shard reads it) re-renders the shard.
projects_table
Per-project / per-model breakdown, most expensive first.
report_table
Aggregated report table with a share-of-tokens bar per line.
savings_panel
What prompt caching, rtk and pi compaction saved, per source. Renders nothing when nothing was saved.
selection_bar
“Showing …” chips with a clear control, or a hint when nothing is selected.
slice_path
One donut slice (the ring segment with its tooltip).
summary_cards
Row of headline totals.
theme_style
The active theme’s CSS variables, as a <style> element.

Functions§

card_class
CSS class of a card: card, card cost or card saved.
chart_title
The bar chart’s title for metric.