SpecialX
|
1f833097e2
|
feat(shared): add errors lib, question-content, and update permissions and UI
- Add errors lib for standardized error handling
- Add question-content lib for question content processing
- Update action-utils, ai/provider-config, auth-guard, permissions, types/permissions
- Update UI sheet component
- Update proxy middleware
|
2026-06-24 12:04:09 +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
|
d8962aba96
|
refactor: fix remaining P2 architecture issues
Fix P2-6: proxy.ts now uses Permissions constants instead of hardcoded strings
Fix P2-7: useA11yId file no longer exists (use-aria-live.ts already in hooks/)
Fix P2-8: schema.ts section numbering reordered to continuous 1-24
Fix P2-11: announcements dead code void wasPublished already removed
Fix P2-17: app-sidebar.tsx uses hasRole() instead of permission-based role inference
Fix P2-18: scheduling/actions.ts removes trailing re-export of data-access; 4 pages now import directly from data-access
Sync architecture docs 004 and 005
|
2026-06-20 01:00:06 +08:00 |
|
SpecialX
|
f013337ff7
|
feat: 重写种子脚本实现小学完整场景 + 修复 proxy getToken 密钥
- scripts/seed.ts: 完全重写,实现小学场景初始化
- 1所学校(实验小学)、2个年级(一/二年级)、每年级2个班级
- 8名教师(每班2名:1班主任+1科任,跨班覆盖语数外3科)
- 24名学生(每班6名)+ 24名家长
- 3科教材(语数外各1本)+ 章节 + 知识点
- 15道题目(每科5道:单选/文本/判断)
- 2套试卷(语文/数学)+ 24份提交 + 120个答案
- 2套作业 + 6份提交 + 30个答案
- 课表、成绩、考勤、课程计划、公告等完整数据
- 6个角色 + 47个权限点的 RBAC 映射
- src/proxy.ts: 修复 getToken 在 edge 运行时缺少 secret 的问题
- 显式传入 secret: process.env.NEXTAUTH_SECRET
- 解决 MissingSecret 错误
测试账号(密码均为 123456):
- admin@xiaoxue.edu.cn (管理员)
- t_chinese_1@xiaoxue.edu.cn (语文老师/一年级1班班主任)
- t_math_1@xiaoxue.edu.cn (数学老师)
- t_english_1@xiaoxue.edu.cn (英语老师)
- student_g1c1_1@xiaoxue.edu.cn (学生)
- parent_g1c1_1@xiaoxue.edu.cn (家长)
|
2026-06-17 14:05:58 +08:00 |
|
SpecialX
|
3b6272c99d
|
feat: 完成 P1 全部功能 + 修复 proxy 导出 + 切换 MySQL 端口至 14013
## P1 功能(20 项)
- 站内消息系统、家长仪表盘、学生考勤管理
- Excel 导入导出、用户批量导入、成绩导出
- 排课规则+自动排课+课表调整
- 成绩趋势+对比分析、密码安全策略、速率限制
- 数据变更日志、文件预览+存储策略、全文检索
- 依赖审计集成 CI、数据库定时备份、E2E 测试完善
- 通知偏好管理
## 基础设施修复
- src/proxy.ts: 将 middleware 导出重命名为 proxy(Next.js 16 要求)
- .env: MySQL 端口从 13002 切换至 14013
- scripts/create-db.ts: 新增数据库初始化脚本
## 架构文档同步
- 004_architecture_impact_map.md 和 005_architecture_data.json
完整记录所有新增表、模块、路由、权限、依赖关系
|
2026-06-17 13:44:37 +08:00 |
|
SpecialX
|
125f7ec54c
|
refactor: RBAC权限系统重构 + UI组件拆分 + 测试修复 + 架构文档
CI / build-deploy (push) Has been cancelled
- RBAC: 新增30个权限点、DataScope行级权限、requirePermission守卫,所有57+ Server Action接入权限校验
- UI拆分: exam-form(1623行→11文件)、textbook-reader(744行→7文件),均降至300行以内
- 测试: 新增5个单元测试文件(19用例),修复4个集成测试文件(38用例全部通过)
- 架构文档: 新增架构影响地图(004/005)、标准功能清单(006)、差距审计报告(007)
- 项目规则: 架构图优先规则,改码必同步图
- 安全: rehype-sanitize净化、AES加密API Key、权限路由守卫
- 无障碍: skip-link、aria-label、prefers-reduced-motion
- 性能: next/font优化、next/image、代码分割
|
2026-06-16 23:38:33 +08:00 |
|
SpecialX
|
99f116cb64
|
=test_update_homework_tests_and_work_log
CI / build-deploy (push) Has been cancelled
|
2026-03-19 13:16:49 +08:00 |
|
SpecialX
|
ac859ee560
|
Update-remaining-files
|
2026-02-24 16:07:15 +08:00 |
|
SpecialX
|
15d9ea9cb8
|
fix: login suspense + migrate middleware to proxy
|
2026-01-08 11:35:15 +08:00 |
|