6b0a21d266
fix: resolve all admin typecheck errors (typed api wrapper, unused imports, missing hooks, PermissionButton children)
2026-07-06 01:02:26 +08:00
4a48a65a48
feat: enhance dashboard with attendance count + Gantt chart
2026-07-06 00:49:20 +08:00
b3655da012
fix: resolve 9 P0+P1 review findings (bills decorators, campus isolation bypass, ding raw crash, batch import counter, SSE multi-tab, interval leak, dept permissions, cycle prevention, tree depth)
2026-07-06 00:38:51 +08:00
90b6ce4aba
feat: add Departments management page with tree + user list
2026-07-06 00:09:04 +08:00
80839607a4
feat: integrate CampusSwitcher into header and API interceptor
2026-07-06 00:06:35 +08:00
af3b4ba8f4
feat: add useCampus hook and CampusSwitcher component
2026-07-06 00:05:48 +08:00
9e6c136ef0
fix: apply code review fixes — double layout, SSE leaks, interval leak, conflict values
...
- App.tsx: remove double-wrapped MainLayout from /notifications route
- NotificationBell.tsx: decouple SSE from popover open state using ref
- useNotifications.ts: fix interval leak in onerror via ref in cleanup
- notifications.controller.ts: unsubscribe on req.on('close') for SSE Subject
- schedules.controller.ts: use existing schedule values in conflict catch
2026-07-05 23:31:21 +08:00
155e3b3c96
feat: add Notifications full page with sidebar filter
2026-07-05 23:21:08 +08:00
168308347f
feat: integrate NotificationBell into MainLayout header
2026-07-05 23:19:27 +08:00
f47b7aaf87
feat: add useNotifications hook and NotificationBell component
2026-07-05 23:18:18 +08:00
1cb2137f61
fix: replace deprecated antd Space direction→orientation
2026-07-05 21:59:00 +08:00
79f503c46a
fix: add missing isMobile definition in Dashboard
2026-07-05 21:53:47 +08:00
2be8b55c93
feat: enhance dashboard with comprehensive stats and charts
2026-07-05 21:52:50 +08:00
ab5898e2cf
fix: replace deprecated antd APIs (Drawer width→size, Modal destroyOnClose→destroyOnHidden)
2026-07-05 21:47:32 +08:00
c77246d3e7
fix: restore transformToMenuItems function
2026-07-05 21:42:30 +08:00
f3af403714
feat: add selectedKeys/openKeys helpers for nested menu
2026-07-05 21:40:47 +08:00
9408642b22
refactor: reorganize sidebar into nested two-level menu groups
2026-07-05 21:40:09 +08:00
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
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
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
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
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
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
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
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
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