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)
analyticsDashboardAnalytics—Pre-computed analytics (or will compute from submissions)
loadingenum—Loading state
errorstring—Error 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) => void—Callback when row is clicked
toolbarContentenum—Additional 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)
exportFilenamestring—CSV export filename prefix