GitHub

Assessment Dashboard

Block
Dashboard view for assessment results and analytics

Installation

pnpm add @corew500/feature-assessment

Usage

import { AssessmentDashboard } from "@corew500/feature-assessment"

<AssessmentDashboard>Content</AssessmentDashboard>

API Reference

Props

PropTypeDefaultDescription
submissions*AssessmentSubmissionRow[]Submissions data (fetched by consuming app)
analyticsDashboardAnalyticsPre-computed analytics (or will compute from submissions)
loadingenumLoading state
errorstringError state
tierLabelsRecord<string, string>Custom tier labels (default: built-in English labels)
tierColorsRecord<string, "default" | "secondary" | "destructive" | "outline">{ excellent: 'default', good: 'default', moderate: 'secondary', low: 'destructive', very_low: 'destructive', }Custom tier badge variants
categoryLabelsRecord<string, string>Custom category labels
onRowClick(submission: AssessmentSubmissionRow) => voidCallback when row is clicked
toolbarContentenumAdditional toolbar content (e.g. custom filter buttons)
conversionSteps{ key: string; label: string; }[]Conversion funnel steps to show (default: all)
localestringenLocale for date formatting
pageSizenumber20Rows per page (default: 20)
exportFilenamestringCSV export filename prefix