SpecialX
37d2688a28
feat(app): add lesson-plans, practice, and grade dashboard routes
...
- Add admin/lesson-plans, parent/lesson-plans, student/lesson-plans routes
- Add student/practice and teacher/practice routes for adaptive practice
- Add management/grade/dashboard and management/grade/practice routes
- Add teacher/lesson-plans error and loading boundaries
- Update existing admin, parent, student, teacher pages with new features
- Update globals.css and proxy middleware
2026-06-24 12:03:47 +08:00
SpecialX
1a9377222c
feat(app): add error/loading boundaries and update dashboard routes
...
- Add error.tsx and loading.tsx boundaries for admin, parent, student, teacher routes
- Add dashboard-error-fallback and dashboard-loading-skeleton components
- Add student/learning page, parent/leave routes, teacher textbook components
- Update existing app routes across auth, dashboard, and API endpoints
- Update proxy middleware and next-auth type declarations
2026-06-23 17:38:28 +08:00
SpecialX
978d9a8309
feat: 新增备课模块并修复全模块 P0/P1/P2 缺陷
...
Security / deep-security-scan (push) Failing after 20m5s
DR Drill / dr-drill (push) Failing after 1m31s
CI / scheduled-backup (push) Failing after 1m31s
CI / backup-verify (push) Has been skipped
CI / weekly-dr-drill (push) Failing after 0s
CI / build-deploy (push) Has been cancelled
CI / security-scan (push) Has been cancelled
主要变更:
- 新增 lesson-preparation 模块: 备课编辑器、节点编辑、AI 建议、知识点选择、版本历史、作业发布
- 新增 shared 通用组件: charts/question-bank-filters/schedule-list/ui (chip-nav/filter-bar/page-header/stat-card/stat-item)
- 新增 student/admin 端 loading.tsx 与 error.tsx, 优化加载与错误态体验
- 新增 teacher/lesson-plans 页面 (列表/新建/编辑)
- 新增 drizzle 迁移 0002_tiny_lionheart 及 snapshot
- 新增 textbooks/schema.ts 与 exams/utils/normalize-structure.ts
- 修复 Tiptap v3 SSR hydration 崩溃 (rich-text-block immediatelyRender: false)
- 重构多模块 data-access/actions/组件, 修复权限校验与类型规范
- 同步架构文档 004/005 反映新增模块、导出、依赖关系
- 归档 bugs/* 测试报告与 e2e 测试脚本 (admin/parent/student/teacher web_test)
2026-06-22 01:06:16 +08:00
SpecialX
49291fcc31
refactor: fix all P0/P1/P2 bugs and architecture issues
...
Bug fixes (from bugs/ directory):
- Fix cross-module DB queries in 9 modules (homework, grades, parent, diagnostic, elective, proctoring, notifications, scheduling, classes) by routing through data-access functions
- Fix shared/lib <-> auth circular dependency via new session.ts module
- Fix divide-by-zero guard in grades data-access
- Fix audit export data truncation (paginated fetch for full datasets)
- Fix missing transactions in homework grading and elective lottery
- Fix missing revalidatePath in course-plans actions
- Fix frontend permission checks using requirePermission instead of requireAuth
- Fix dashboard role routing using session.user.roles
- Fix student auth pattern (migrate getDemoStudentUser to users module)
- Fix ActionState return type handling in components
Code quality fixes:
- Remove 60+ as type assertions (replace with type guards)
- Remove non-null assertions (use optional chaining or explicit checks)
- Convert dynamic imports to static imports (grades, diagnostic)
- Add React.cache() wrapping for read functions
- Parallelize independent queries with Promise.all
- Add explicit return types to 30+ arrow functions
- Replace any with unknown + type guards
- Fix import type for type-only imports
- Add Zod validation schemas for classes and diagnostic modules
- Extract duplicate code (normalizeRoleName, normalizeBcryptHash, logger IP extraction)
- Add console.error to silent catch blocks
- Fix permission naming consistency (exam:proctor_read -> exam:proctor:read)
Architecture doc sync:
- Update 004_architecture_impact_map.md and 005_architecture_data.json
- Update management-modules-audit.md for P0-7 cross-module fix
Moved deleted proctoring event route to deletes/ folder.
2026-06-19 05:13:34 +08:00
SpecialX
9bfc621d3f
feat(classes): optimize teacher dashboard ui and implement grade management
2026-01-14 13:59:11 +08:00
SpecialX
0da2eac0b4
强制buildSSR
2025-12-31 14:01:12 +08:00
SpecialX
13e91e628d
Merge exams grading into homework
...
Redirect /teacher/exams/grading* to /teacher/homework/submissions; remove exam grading UI/actions/data-access; add homework student workflow and update design docs.
2025-12-31 11:59:03 +08:00