Commit Graph

77 Commits

Author SHA1 Message Date
85872d6564 refactor(admin): extract StudentProfileContent component and reuse in drawer 2026-07-06 17:22:09 +08:00
b8563fbde0 fix: use div wrapper for Drawer content 2026-07-06 17:01:17 +08:00
edb80b7fb2 fix: wrap Drawer content in fragment 2026-07-06 17:00:51 +08:00
b4fa3ab1fd feat: add learning records and attachments tabs to profile Drawer, plus PDF report button 2026-07-06 17:00:13 +08:00
09eb9ca9e0 fix: archive button opens Drawer instead of navigating to separate page 2026-07-06 16:58:54 +08:00
be75437861 fix: comprehensive UI fix — all table columns have explicit widths, no ellipsis on data, consistent scroll.x 2026-07-06 16:56:35 +08:00
26754dc3fa fix(admin): fix column widths and scroll.x for Attendance and Roles pages
- Attendance: remove ellipsis from 备注 column, scroll.x 1100 -> 1200
- Roles: adjust column widths (ID 60->80, 系统 70->80, 操作 160->180), remove ellipsis from 描述 and 权限标签
- Teachers: already correct (verified all widths match spec)
- Permissions: card-based layout, no Table component - no changes needed
- Notifications: List-based layout, no Table component - no changes needed
2026-07-06 16:56:26 +08:00
cb39a183cc fix: restore form declaration, fix openDrawer state 2026-07-06 16:47:20 +08:00
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