feat(web): migrate student academic insights

Add React exam and invigilation schedules, student transcript metrics and score breakdowns, and academic warning acknowledgement with support follow-up timelines. Connect role-aware navigation and dashboard links.
This commit is contained in:
biss authored and biss committed 2026-10-03 21:38:14 +08:00
1 parent e926dd00f2
commit f657290e71
9 files changed
+217 -5

No files matched your search

+10
View File
@@ -8,6 +8,9 @@ import {
MenuUnfoldOutlined,
SafetyCertificateOutlined,
CalendarOutlined,
FileDoneOutlined,
ReadOutlined,
WarningOutlined,
} from '@ant-design/icons'
import { Avatar, Badge, Button, Layout, Menu, Tag } from 'antd'
import { useQuery } from '@tanstack/react-query'
@@ -44,6 +47,13 @@ export default function AppShell() {
...((roles.includes('Student') || roles.includes('Teacher'))
? [{ key: '/my-timetable', icon: <CalendarOutlined />, label: '我的课表' }]
: []),
...((roles.includes('Student') || roles.includes('Teacher'))
? [{ key: '/exams', icon: <FileDoneOutlined />, label: roles.includes('Teacher') ? '监考安排' : '考试安排' }]
: []),
...(isStudentHome ? [
{ key: '/grades', icon: <ReadOutlined />, label: '我的成绩' },
{ key: '/warnings', icon: <WarningOutlined />, label: '学业预警' },
] : []),
...(user?.roles.includes('SuperAdmin')
? [{ key: '/users', icon: <SafetyCertificateOutlined />, label: '用户与权限' }]
: []),