refactor(school,classes): 完成 school/grade/class 审计全量改进项
P0-1/P0-2: 删除 grade-management 死模块,年级 CRUD 统一由 school 模块负责 P0-3: classes/actions.ts 从 974 行拆分为 6 个职责文件 + barrel re-export P0-5: 13 个页面 i18n 全量接入(grades/departments/academic-year/classes/insights) P1-1: 角色硬编码改为 hasAdminScope/hasTeacherScope/hasStudentScope 基于 dataScope.type P1-3: 新增 SchoolErrorBoundary + SchoolListSkeleton/SchoolCardSkeleton,4 个页面包裹 Error Boundary P1-4: classes/types.ts 跨领域类型添加归属决策注释 P1-5: schools-view.tsx 拆分为组合模式(SchoolFormDialog + SchoolDeleteDialog + SchoolListToolbar) P1-6: 新增 getSchoolsForUser/getGradesForUser 权限感知查询函数 P2-1: 抽取 useSchoolData hook,对话框状态管理与 UI 分离 同步更新架构图文档 004/005
This commit is contained in:
@@ -5459,6 +5459,63 @@
|
||||
"updateAdminClass",
|
||||
"deleteAdminClass"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "actions.ts",
|
||||
"lines": 50,
|
||||
"description": "Barrel re-export(P0-3 修复:从 974 行拆分为 6 个职责文件)",
|
||||
"exports": [
|
||||
"createTeacherClassAction",
|
||||
"updateTeacherClassAction",
|
||||
"deleteTeacherClassAction",
|
||||
"createAdminClassAction",
|
||||
"updateAdminClassAction",
|
||||
"deleteAdminClassAction",
|
||||
"createGradeClassAction",
|
||||
"updateGradeClassAction",
|
||||
"deleteGradeClassAction",
|
||||
"enrollStudentByEmailAction",
|
||||
"joinClassByInvitationCodeAction",
|
||||
"ensureClassInvitationCodeAction",
|
||||
"regenerateClassInvitationCodeAction",
|
||||
"createClassInvitationCodeAction",
|
||||
"revokeClassInvitationCodeAction",
|
||||
"listClassInvitationCodesAction",
|
||||
"setStudentEnrollmentStatusAction",
|
||||
"createClassScheduleItemAction",
|
||||
"updateClassScheduleItemAction",
|
||||
"deleteClassScheduleItemAction"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "actions-teacher.ts",
|
||||
"lines": 100,
|
||||
"description": "教师班级 CRUD(3 个 Action,P0-3 修复)"
|
||||
},
|
||||
{
|
||||
"path": "actions-admin.ts",
|
||||
"lines": 120,
|
||||
"description": "管理员班级 CRUD(3 个 Action,P0-3 修复)"
|
||||
},
|
||||
{
|
||||
"path": "actions-grade.ts",
|
||||
"lines": 110,
|
||||
"description": "年级组长班级 CRUD(3 个 Action,P0-3 修复)"
|
||||
},
|
||||
{
|
||||
"path": "actions-invitations.ts",
|
||||
"lines": 280,
|
||||
"description": "邀请码与注册(8 个 Action,P0-3 修复)"
|
||||
},
|
||||
{
|
||||
"path": "actions-schedule.ts",
|
||||
"lines": 90,
|
||||
"description": "班级课表 CRUD(3 个 Action,P0-3 修复)"
|
||||
},
|
||||
{
|
||||
"path": "actions-shared.ts",
|
||||
"lines": 60,
|
||||
"description": "共享工具(hasAdminScope/hasTeacherScope/hasStudentScope/parseSubjectTeachers/toWeekday,P1-1 修复)"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user