smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Reports · Components

ReportDetail

A saved report's page: its title and description, what it covers (source, groupings, the period with its dates, measures, filters, who saved it and when it last ran), then its result run afresh: headline figures and a chart or table. The primary action follows the report's state: Edit (asks the page's assistant), Try again after a failed run, Restore when archived.

Public export

typescript
import { ReportDetail } from '@happyvertical/smrt-reports/svelte';
Import path
@happyvertical/smrt-reports/svelte
Props
8
Props described
4 of 8
Bindable state
0
Callback events
2
Verified release
0.62.10

Props

NameTypeRequiredDescription
idstringYesNot described
clientRuntimeReportsClientNoNot described
sourcesreadonly ReportSourceInfo[]NoThe report sources by label and fields (`reports.runtime.sources`).
authorLabel(userId: string) => string | undefinedNoHost-owned identity projection ("You"); others stay unnamed.
onreport(report: SavedRuntimeReport) => voidNoCalled with the report once it loads (a host titles its page with it).
onedit(report: SavedRuntimeReport) => voidNoReplace Edit asking the page's assistant.
localestringNoNot described
currencystringNoNot described

Bindable state

This component has no bindable public state.

Callback events

  • onreport(report: SavedRuntimeReport) => void
  • onedit(report: SavedRuntimeReport) => void

Examples and explanation