Assessment Dashboard
BlockInstallation
pnpm add @corew500/feature-assessmentUsage
import { AssessmentDashboard } from "@corew500/feature-assessment"
<AssessmentDashboard>Content</AssessmentDashboard>API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| submissions* | AssessmentSubmissionRow[] | — | Submissions data (fetched by consuming app) |
| analytics | DashboardAnalytics | — | Pre-computed analytics (or will compute from submissions) |
| loading | enum | — | Loading state |
| error | string | — | Error state |
| tierLabels | Record<string, string> | — | Custom tier labels (default: built-in English labels) |
| tierColors | Record<string, "default" | "secondary" | "destructive" | "outline"> | { excellent: 'default', good: 'default', moderate: 'secondary', low: 'destructive', very_low: 'destructive', } | Custom tier badge variants |
| categoryLabels | Record<string, string> | — | Custom category labels |
| onRowClick | (submission: AssessmentSubmissionRow) => void | — | Callback when row is clicked |
| toolbarContent | enum | — | Additional toolbar content (e.g. custom filter buttons) |
| conversionSteps | { key: string; label: string; }[] | — | Conversion funnel steps to show (default: all) |
| locale | string | en | Locale for date formatting |
| pageSize | number | 20 | Rows per page (default: 20) |
| exportFilename | string | — | CSV export filename prefix |