0f9bcbdaca
fix: import Tabs/Descriptions, remove duplicate state
2026-07-06 16:46:03 +08:00
aac01594da
feat: student profile as Drawer from student list
2026-07-06 16:45:21 +08:00
8f3a20140d
feat: click student name to navigate to profile page
2026-07-06 16:43:51 +08:00
4024d7c174
fix: remove ellipsis from student name column, give it 120px width
2026-07-06 16:42:36 +08:00
43ee4dc5d5
fix(admin): replace scroll.x='max-content' with calculated fixed widths for all tables
2026-07-06 16:39:53 +08:00
f4eac7b804
fix: add scroll.x='max-content' to 15 tables, widen narrow columns to prevent header wrapping
2026-07-06 16:10:33 +08:00
8bd59b8ac6
feat: complete student archive subsystem — 7 entities, PDF report, frontend profile page
2026-07-06 15:58:36 +08:00
9eec7c34be
feat: add teacher management page with profile editing
2026-07-06 15:36:52 +08:00
1c097dc230
feat: new classrooms default to 'reserved' status instead of 'available'
2026-07-06 15:26:35 +08:00
20f3b79179
feat: bills expense type filter (backend join + frontend Select), sync stub docs
2026-07-06 14:48:47 +08:00
4b02012634
feat: classroom status filter + export button + menu (departments/notifications)
2026-07-06 14:43:13 +08:00
fb6d99266e
feat: add date range filter to Occupancies, status filter to Tenants
2026-07-06 14:36:03 +08:00
ca909fae86
feat: add status+tenant filter to Students page, status filter to Rooms page
2026-07-06 14:33:30 +08:00
beeb8cb905
feat(attendance): add anomaly alert banner showing consecutive absences and frequent lates
2026-07-06 14:27:21 +08:00
9b0a9749a2
fix: type error in dashboard ClassroomUtilStats
2026-07-06 10:30:04 +08:00
2c0ca583a3
feat(students): add multi-enrollment comparison view in student list expand row
2026-07-06 10:00:35 +08:00
6ba7213cc4
feat(deposits): add refund rejection path with reason
2026-07-06 09:48:20 +08:00
3717531bb3
feat(dashboard): add classroom utilization stats endpoint and UI
2026-07-06 09:38:17 +08:00
5d102ca3c4
feat: add class roster export button in class detail page
2026-07-06 01:16:55 +08:00
8453e62088
feat: integrate classroom real-time occupancy with schedule and rental data
2026-07-06 01:14:58 +08:00
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