feat(portal-shell): 学生域全页面迁移与规范合规修复

- 学生域 32 页全量迁移(含作答/自动保存/提交/诊断)

- 补齐 4 个 MSW mock 缺口,修 diagnostic case 名

- 修 4 处 Tailwind 任意值;新增共享组件与路由
This commit is contained in:
SpecialX
2026-08-31 11:25:21 +08:00
parent 039db5efdd
commit 04b7a40bdc
493 changed files with 70985 additions and 2112 deletions

View File

@@ -0,0 +1,24 @@
import { Suspense } from "react";
import { StudentSelfDiagnosticClient } from "@/features/student/diagnostic/diagnostic-client";
import { DetailPageSkeleton } from "@/shared/components/page-templates";
/**
* 学生诊断报告页ARCHITECTURE.md §7.3 详情页 / §9.2 B3 / §10 P3
*
* Server Component 入口:仅负责 Suspense 边界包裹。
* 业务逻辑在 StudentSelfDiagnosticClientclient component中。
*
* 数据契约studentDiagnostic(studentId) ❌ schema 无此字段 → MSW 兜底
* @contract-pending。学生页传入 "me" 作为 studentIdMSW 返回当前用户
* 诊断数据;后端补齐后由 BFF 解析 auth 上下文返回当前用户数据。
*
* 关联ARCHITECTURE.md §5.3 / §5.4 / §7.3 / §9.2 / §10 P3 / §11.3 / §11.4
*/
export default function StudentDiagnosticPage(): React.ReactElement {
return (
<Suspense fallback={<DetailPageSkeleton />}>
<StudentSelfDiagnosticClient />
</Suspense>
);
}