Files
Edu/apps/portal-shell/src/app/shell/student/diagnostic/page.tsx
SpecialX 04b7a40bdc feat(portal-shell): 学生域全页面迁移与规范合规修复
- 学生域 32 页全量迁移(含作答/自动保存/提交/诊断)

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

- 修 4 处 Tailwind 任意值;新增共享组件与路由
2026-08-31 11:25:21 +08:00

25 lines
988 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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>
);
}