Commit Graph

74 Commits

Author SHA1 Message Date
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组件拆分 + 测试修复 + 架构文档
Some checks failed
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
Some checks failed
CI / build-deploy (push) Has been cancelled
2026-03-19 13:16:49 +08:00
SpecialX
eb08c0ab68 sync-docs-and-fixes 2026-03-03 17:32:26 +08:00
SpecialX
538805bad0 docs 2026-03-02 12:43:38 +08:00
SpecialX
8f974c04e0 refactor-ci-standalone 2026-02-26 16:38:07 +08:00
SpecialX
16ebbbe924 remove deploy setup network 2026-02-26 15:48:42 +08:00
SpecialX
175af10881 fix-deploy-no-proxy 2026-02-25 18:27:53 +08:00
SpecialX
ef9b987653 fix-deploy-network 2026-02-25 18:03:32 +08:00
SpecialX
dcc946f48c fix-lint 2026-02-25 15:27:14 +08:00
SpecialX
cc02ddf82e fix-ci-proxy 2026-02-25 15:17:49 +08:00
SpecialX
3986c5919c chore: inject proxy envs for ci 2026-02-25 13:42:41 +08:00
SpecialX
bd8a4d39a6 chore: configure npm proxy in ci 2026-02-25 13:34:34 +08:00
SpecialX
0f38e97b4e remove configure npm registry 2026-02-25 12:36:20 +08:00
SpecialX
9c83fcc7c1 chore-npm-ci-stable 2026-02-25 11:30:07 +08:00
SpecialX
ddd3227693 log ci fail 2026-02-25 11:02:06 +08:00
SpecialX
ca465622dc chore-ci-cache 2026-02-24 18:55:36 +08:00
SpecialX
2e9078f810 chore-ci-cache 2026-02-24 18:37:03 +08:00
SpecialX
ac859ee560 Update-remaining-files 2026-02-24 16:07:15 +08:00
SpecialX
a2e89ce795 Fix-auth-hashing-update-worklog 2026-02-24 15:50:38 +08:00
SpecialX
bb4555f611 feat: enhance textbook reader with anchor text support and improve knowledge point management 2026-01-16 10:22:16 +08:00
SpecialX
9bfc621d3f feat(classes): optimize teacher dashboard ui and implement grade management 2026-01-14 13:59:11 +08:00
SpecialX
ade8d4346c feat(dashboard): optimize teacher dashboard ui and layout
- Refactor layout: move Needs Grading to main column, Homework to sidebar
- Enhance TeacherStats: replace static counts with actionable metrics (Needs Grading, Active Assignments, Avg Score, Submission Rate)
- Update RecentSubmissions: table view with quick grade actions and late status
- Update TeacherSchedule: vertical timeline view with scroll hints
- Update TeacherHomeworkCard: compact list view
- Integrate Recharts: add TeacherGradeTrends chart and shared chart component
- Update documentation
2026-01-12 11:38:27 +08:00
SpecialX
8577280ab2 feat: 首次登录引导与注册修复 2026-01-12 10:49:30 +08:00
SpecialX
15fcf2bc78 BUG FIX && 权限验证 2026-01-09 14:10:04 +08:00
SpecialX
15d9ea9cb8 fix: login suspense + migrate middleware to proxy 2026-01-08 11:35:15 +08:00
SpecialX
f513cf5399 Fix Bug
Fix Not Suspense for Login Form
2026-01-08 11:29:23 +08:00
SpecialX
57807def37 完整性更新
现在已经实现了大部分基础功能
2026-01-08 11:14:03 +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
SpecialX
f8e39f518d feat(teacher): 题库模块(QuestionBank)
工作内容

- 新增 /teacher/questions 页面,支持 Suspense/空状态/加载态

- 题库 CRUD Server Actions:创建/更新/递归删除子题,变更后 revalidatePath

- getQuestions 支持 q/type/difficulty/knowledgePointId 筛选与分页返回 meta

- UI:表格列/筛选器/创建编辑弹窗,content JSON 兼容组卷

- 更新中文设计文档:docs/design/004_question_bank_implementation.md
2025-12-30 19:04:22 +08:00
SpecialX
f7ff018490 feat: exam actions and data safety fixes 2025-12-30 17:48:22 +08:00
SpecialX
e7c902e8e1 Module Update 2025-12-30 14:42:30 +08:00
SpecialX
f1797265b2 chore: remove debug steps and loyment workflow 2025-12-22 14:18:56 +08:00
SpecialX
be36a7131c chore: remove debug steps and loyment workflow 2025-12-22 13:58:31 +08:00
SpecialX
b7ec909073 chore: remove debug steps and loyment workflow 2025-12-22 13:52:34 +08:00
SpecialX
aaf4e498f8 chore: remove debug steps and loyment workflow 2025-12-22 13:38:56 +08:00
SpecialX
36b2275f50 chore: remove debug steps and loyment workflow 2025-12-22 13:28:18 +08:00
SpecialX
b453bab8b8 chore: remove debug steps and loyment workflow 2025-12-22 13:27:45 +08:00
SpecialX
fc3e9a4220 chore: remove debug steps and loyment workflow 2025-12-19 18:13:48 +08:00
SpecialX
11ea7c880c chore: remove debug steps and loyment workflow 2025-12-19 17:32:28 +08:00
SpecialX
b918744f6a chore: remove debug steps and loyment workflow 2025-12-19 17:25:57 +08:00
SpecialX
5e417d313b chore: remove debug steps and finalize deployment workflow 2025-12-19 17:22:21 +08:00
SpecialX
99a22910b2 chore: remove debug steps and finalize deployment workflow 2025-12-19 17:19:09 +08:00
SpecialX
5d8f474582 chore: debug build output structure 2025-12-19 17:06:09 +08:00
SpecialX
576fe62cf6 fix: upload specific standalone artifacts to simplify structure 2025-12-19 16:42:56 +08:00
SpecialX
1eff250619 fix: upload specific standalone artifacts to simplify structure 2025-12-19 16:29:12 +08:00
SpecialX
6ed30de40c chore: add debug step to list artifact structure 2025-12-19 16:23:30 +08:00
SpecialX
b4b21e2b16 chore: add debug step to list artifact structure 2025-12-19 16:15:53 +08:00