Reports · Components
SavedReports
Saved reports as a grid of cards, each run for its headline figure. `page` is the Saved reports page (its heading, "New report", whose and archived filters); `section` is the Reports section page's widget (a hint, "New report", "View all"). "New report" asks the page's assistant (smrt-ui `requestAssistant`); with none on the page it says where to ask.Public export
typescript
import { SavedReports } from '@happyvertical/smrt-reports/svelte';- Import path
@happyvertical/smrt-reports/svelte- Props
- 10
- Props described
- 8 of 10
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
clientRuntimeReportsClientNoNot describedreportHref(id: string) => stringNoNot describedauthorLabel(userId: string) => string | undefinedNoHost-owned identity projection; report transport never expands users.sourcesreadonly ReportSourceInfo[]NoThe report sources by label and fields (`reports.runtime.sources`).variant'page' | 'section'No`page` (default) or `section`, the Reports section page's widget.limitnumberNoMost cards shown (and run); the section shows its first few.listHrefstringNoThe Saved reports page, for the section's "View all".onnewreport() => voidNoReplace "New report" asking the page's assistant.localestringNoBCP 47 locale for dates, numbers and relative times; default `en`.currencystringNoISO 4217 code that formats currency measures on the cards; default `USD`.Bindable state
This component has no bindable public state.
Callback events
onnewreport() => void