feat(parent): add attention banner, export button, and grade detail

- Add parent-attention-banner for highlighting items needing attention

- Add parent-export-button for data export capability

- Add child-grade-detail component for detailed grade viewing

- Update existing child-card, child-detail-header, child-grade-summary, child-schedule-card

- Update parent-children-data-page and data-access
This commit is contained in:
SpecialX
2026-06-23 17:37:49 +08:00
parent 95145cd03b
commit 1abf58c0b6
9 changed files with 632 additions and 31 deletions

View File

@@ -15,6 +15,7 @@ export function ParentChildrenDataPage<T>({
noRecordsDescription,
items,
renderItem,
headerExtra,
}: {
title: string
description: string
@@ -23,6 +24,8 @@ export function ParentChildrenDataPage<T>({
noRecordsDescription: string
items: T[]
renderItem: (item: T) => React.ReactNode
/** 渲染在标题与列表之间的额外内容(如预警横幅)。 */
headerExtra?: React.ReactNode
}) {
const hasItems = items.length > 0
@@ -33,6 +36,8 @@ export function ParentChildrenDataPage<T>({
<p className="text-muted-foreground">{description}</p>
</div>
{headerExtra}
{!hasItems ? (
<EmptyState
title={noRecordsTitle}