Commit Graph

393 Commits

Author SHA1 Message Date
b7117ddf2d fix: review blockers — entity registration, session enum, conflict date-range, @Type decorators 2026-07-05 20:20:43 +08:00
99162168b1 feat(dashboard): add classroom/attendance/income stat cards and trend charts
- Add second row of stat cards: classroom count, occupancy rate, attendance rate, monthly income
- Add ECharts line charts for attendance trend (30-day) and income trend (6-month)
- All fields sourced from existing GET /dashboard/stats response (Task 7.1 contract)
2026-07-05 19:53:34 +08:00
d317cb4fc1 feat(dashboard): add classroom/attendance/income stats to dashboard API
- Add classroomCount, classroomOccupancyRate from Classroom + ClassSchedule
- Add todayAttendanceRate, attendanceTrend from AttendanceRecord
- Add monthlyIncome, incomeTrend from Bill
- Register Classroom, ClassSchedule, AttendanceRecord in dashboard module
2026-07-05 19:51:16 +08:00
41f381e941 feat: attendance frontend page + backend list/classes endpoints
- Create AttendancePage with filter bar, table, calendar view toggle, batch add modal
- Register /attendance route with PermissionRoute (attendance:view)
- Add menu item in MainLayout with CheckCircleOutlined icon
- Add GET /attendance-records with pagination and filters
- Add GET /attendance-records/classes for class dropdown
- Add source column to AttendanceRecord entity (default: manual)
- Frontend tsc --noEmit: clean; backend: only pre-existing test errors
2026-07-05 19:49:53 +08:00
b6e308ae2a feat: add Attendance module with batch, summary, calendar, and dingtalk endpoints 2026-07-05 19:44:10 +08:00
4ededb0338 feat: add CLASS/SCHEDULE/ATTENDANCE permission nodes 2026-07-05 19:39:03 +08:00
f962633f67 fix: normalize operation log module names across controllers 2026-07-05 19:38:18 +08:00
efe13fe664 feat: add long-term rental independent billing in generate logic 2026-07-05 19:33:45 +08:00
881e9c6175 feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student 2026-07-05 19:31:03 +08:00
92e6ba0e34 feat(schedules): implement frontend schedule week view page
- Create SchedulesPage with week selector, classroom/class filters
- Matrix: rows=classrooms, cols=Mon-Sun, cells show subject/teacher/time
- Click empty cell -> create modal with schedule form
- Click occupied cell -> detail modal with delete button
- Conflict: backend 409/400 -> message.error with conflict info
- Route /schedules with PermissionRoute (schedule:view)
- Menu item '排课管理' with CalendarOutlined icon
2026-07-05 19:28:18 +08:00
037c0e07e0 feat: add Schedules module with conflict detection and weekly view 2026-07-05 19:21:37 +08:00
78320b8682 feat: add ClassSchedule entity 2026-07-05 19:18:31 +08:00
20a4dfad84 feat: add Class detail page with student roster and teacher tabs 2026-07-05 19:16:02 +08:00
9a3b92bf8e fix: add error handling to Classes page submit and delete 2026-07-05 19:13:52 +08:00
0053fed505 feat: add Classes list page with CRUD modal 2026-07-05 19:10:48 +08:00
ec26cb5f5e feat(classes): add ClassesController with operation logging and permission guards 2026-07-05 19:05:18 +08:00
786aa2ba2d fix: add @IsEnum validation to Classes DTOs 2026-07-05 19:02:54 +08:00
c378cc45f8 feat: add ClassesService with CRUD + student/teacher management 2026-07-05 18:59:09 +08:00
e1d9ce9709 feat: add Class, ClassStudent, ClassTeacher entities 2026-07-05 18:53:12 +08:00
ef805fc823 fix: PermissionButton 包裹 Upload 时添加 type=text 消除外层按钮白底 2026-07-03 10:35:30 +08:00
e87bc2dc9e feat: 权限一览工具栏添加 flexWrap 响应式适配 2026-07-03 10:16:19 +08:00
4f68eddefd feat: 账号管理工具栏添加 flexWrap 响应式适配 2026-07-03 10:16:19 +08:00
8ccc05387a feat: 角色管理工具栏添加 flexWrap 响应式适配 2026-07-03 10:16:11 +08:00
568f810377 feat: 登录卡片改为 maxWidth + calc 响应式宽度 2026-07-03 10:16:08 +08:00
fea550ae69 feat: 教室管理表格添加 scroll 横向滚动 2026-07-03 10:14:38 +08:00
284d791de7 feat: 租赁方表格添加 scroll 横向滚动 2026-07-03 10:14:24 +08:00
bfdb12d9ea feat: 账单管理表格添加 scroll,详情内嵌表格也添加 scroll 2026-07-03 10:14:23 +08:00
203ce3220c feat: 押金管理表格添加 scroll 横向滚动 2026-07-03 10:14:15 +08:00
7f92f0b7f7 feat: 费用录入两个表格添加 scroll 横向滚动 2026-07-03 10:12:47 +08:00
1ff833c5b3 feat: 入住管理表格添加 scroll 横向滚动 2026-07-03 10:12:17 +08:00
87445a0ca6 feat: 宿舍管理表格添加 scroll 横向滚动 2026-07-03 10:12:03 +08:00
2121282577 feat: 学生管理字段拆分(学号/身份证分列),表格和工具栏响应式适配 2026-07-03 10:10:04 +08:00
969f3f4221 feat: Dashboard 响应式网格,统计卡片/图表/工具栏适配三端 2026-07-03 10:07:28 +08:00
7465f51d4f feat: MainLayout 三端布局重构,使用 antd Grid.useBreakpoint() 2026-07-03 10:04:42 +08:00
611cc271ec feat: 建立三断点 CSS 体系,替换单断点移动端样式 2026-07-03 10:02:46 +08:00
fb88bff27d tweak: set tsBuildInfoFile to dist/ to fix stale incremental cache blocking dev 2026-07-02 17:42:30 +08:00
a4ca6b2ef9 fix: use tsconfig.build.json for nest start --watch to fix rootDir 2026-07-02 16:16:57 +08:00
ac19c666b3 fix: add missing 'dev' script to @gongxue/server for turbo run dev 2026-07-02 16:11:57 +08:00
4f4cee157a chore: commit oxfmt formatting changes and verify artifacts 2026-07-02 15:55:09 +08:00
e13de5fef4 chore(task6): complete turborepo migration verification 2026-07-02 15:49:14 +08:00
5cf7fe05e9 feat(task4): update TypeScript configs to use shared presets 2026-07-02 15:31:29 +08:00
73dd92e615 feat(task3): migrate toolchain to oxfmt + oxlint
- Install oxfmt with .oxfmtrc.json (maps Prettier config)
- Install oxlint with oxlint.config.ts (TypeScript + React rules)
- Replace admin ESLint with oxlint
- Remove Prettier integration from server ESLint (keep ESLint for type checking)
- Delete server .prettierrc and admin eslint.config.js
2026-07-02 15:24:29 +08:00
46a817503e feat(task1): restructure directories for turborepo monorepo
- Move backend/ to apps/server/ via git mv
- Move frontend/ to apps/admin/ via git mv
- Create packages/typescript-config/ with base, nestjs, and react-vite presets
2026-07-02 15:05:12 +08:00