b77e5a2f50
fix: remove PermissionButton wrappers from Upload components
2026-07-05 21:37:47 +08:00
940b587df9
fix: remove nested button patterns across all pages, remove Dashboard gantt
2026-07-05 21:35:03 +08:00
1b49d971ae
fix: add missing fragment closing tag in Rooms page
2026-07-05 21:29:42 +08:00
831a2c35d0
fix: remove nested button pattern in Rooms page (Popconfirm outside PermissionButton)
2026-07-05 21:26:05 +08:00
6737c00d96
fix: make JwtAuthGuard global to run before PermissionGuard, skip @Public routes
2026-07-05 21:23:42 +08:00
898738b775
fix: remove null assignments incompatible with non-null entity types
2026-07-05 20:59:20 +08:00
6d589f6faa
fix: remove null union types causing TypeORM Object inference on Deposit columns
2026-07-05 20:58:49 +08:00
f7cb7a9599
fix: add explicit datetime type to Deposit refund columns
2026-07-05 20:57:45 +08:00
2357db31dd
fix: remove broken Department relation from Class entity
2026-07-05 20:56:23 +08:00
eb82b269c1
fix: add missing Class/ClassStudent/ClassTeacher/DepositInstallment to TypeORM entities list
2026-07-05 20:55:36 +08:00
a7a1969d79
test: add unit tests for Schedules, Bills, and Attendance services
2026-07-05 20:51:24 +08:00
09580e4a4e
feat: P2-15 cron-based DingTalk/WeCom sync with logging and incremental sync
...
- Add @nestjs/schedule dependency
- Create SyncLog entity (platform, syncType, status, recordsCount, errorMessage, timestamps)
- Create SyncState entity for tracking lastSyncAt per platform
- SyncService with @Cron('0 2 * * *') daily scheduled sync
- Incremental sync: tracks last_sync_at per platform, passes to integration APIs
- Full/incremental mode determined by existence of prior sync
- SyncController: POST /sync/trigger (manual), GET /sync/logs (history)
- Register SyncModule in AppModule with ScheduleModule
2026-07-05 20:48:43 +08:00
ab4adf1174
P2-14: Deposit installment tracking + refund approval flow
...
- Add DepositInstallment entity (id, depositId, amount, dueDate, paidDate, status, createdAt)
- Add installments OneToMany relation to Deposit entity with cascade+eager
- Add refund approval fields: refundStatus, refundRequestedAt, refundApprovedBy, refundApprovedAt
- Add installment DTOs (CreateInstallmentDto, UpdateInstallmentDto)
- Add refund approval DTOs (ApproveRefundDto, CreateDepositWithInstallmentsDto)
- Service: add/create/update/delete installments, requestRefund, approveRefund, findPendingRefunds
- Controller: GET deposits/:id, GET pending-refunds, POST :id/installments, PUT installments/:id, DELETE installments/:id, POST :id/request-refund, PUT :id/approve-refund
- Frontend: detail modal with installment list, refund request button, pending refunds tab with approve actions
2026-07-05 20:46:05 +08:00
5df70a8af0
feat: P2-12 Teacher profile/workspace + P2-13 Multi-class comparison
...
P2-12 Teacher Management:
- Add profile JSON field (subjects, joinedAt, qualifications) to User entity
- Add GET/PUT /rbac/users/:id/profile endpoints with UpdateProfileDto
- Add GET /rbac/teacher-workspace endpoint returning assignedClasses,
todaySchedules, and myStudents
- Create /teacher-workspace page with tabs (My Classes, Today's Schedule,
My Students)
- Add route with PermissionRoute and menu item in MainLayout
P2-13 Student Archive Multi-class:
- Add GET /students/:id/compare-classes endpoint returning side-by-side
enrollment data with per-class attendance statistics
- Students module now includes ClassStudent and AttendanceRecord entities
- No 2-enrollment cap existed in the codebase; student enrollments
already return all records via class-student table
2026-07-05 20:42:27 +08:00
80ce911b88
fix: add studentNo field to Student entity
2026-07-05 20:35:47 +08:00
194f25c3ad
feat: add class roster export and attendance stats export
...
- GET /classes/:id/roster/export — Excel export with 姓名/学号/加入日期/状态
- GET /attendance-records/export — Excel export with 姓名/班级/日期/时段/状态/来源/备注/打卡时间
- Add findAllForExport to AttendanceService (no pagination)
- Both use ExcelJS following classrooms controller downloadTemplate pattern
2026-07-05 20:35:11 +08:00
66aadfe3ff
fix: I2 add studentNo to class listing, I4 replace attendance edit placeholder with working edit modal
2026-07-05 20:31:53 +08:00
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
b89dff6d18
docs: add P0 implementation plan with 7 phases
2026-07-05 18:44:24 +08:00
ebacf8601f
docs: add P0 design spec and project APPEND_SYSTEM.md
2026-07-05 18:34:42 +08:00
b4c1d11cf2
chore: remove abandoned betterauth-hono-drizzle-migration change (0/43 tasks)
2026-07-03 15:05:54 +08:00
7461efb2fa
chore: add implementation plan for betterauth-hono-drizzle-migration
2026-07-03 14:13:43 +08:00
3b45723877
chore: 归档 3 个 change 产物、Design Doc、验证报告、主 spec、项目配置
2026-07-03 10:58:57 +08:00
ef805fc823
fix: PermissionButton 包裹 Upload 时添加 type=text 消除外层按钮白底
2026-07-03 10:35:30 +08:00
56f073c6bc
chore: 勾选 plan 子步骤,标记程序化验证项为完成
2026-07-03 10:19:25 +08:00
6f3a6456ba
chore: 记录 review_mode=off 跳过原因
2026-07-03 10:18:25 +08:00
56c3188576
chore: 批量勾选已完成的响应式适配任务
2026-07-03 10:18:00 +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