Commit graph

15 commits

Author SHA1 Message Date
Claude
dda92f5664
fix: ensure eventid is removed from URL when drawer closes
- Replace onCloseEventDetail with handleDrawerOpenChange
- Handle all drawer close scenarios: button click, outside click, ESC key
- Remove eventid from URL whenever drawer is closed via any method
- Fixes issue where eventid remained in URL after closing drawer
2025-11-23 07:28:52 +00:00
Claude
8720a56c7d
feat: add eventid query parameter to auto-open event details
- Add eventid URL parameter support to open specific event on page load
- Automatically fetch and display event detail drawer when eventid is present
- Show error message if event ID is invalid or doesn't exist
- Update URL when opening/closing event detail drawer
- Add error message UI with dismiss functionality
- Maintain eventid in URL for shareable links to specific events
2025-11-23 07:24:01 +00:00
Claude
96964f4f00
feat: add URL query params for page and status filter in repair admin
- Initialize page and statusFilter from URL query parameters on mount
- Update URL when page or statusFilter state changes
- Support comma-separated status values in URL
- Enables sharing specific page/filter state via URL
- Preserves state on page refresh
2025-11-23 07:19:30 +00:00
Clas Wen
8072dd5ce7 feat: implement server-side pagination for repair admin
- Replace client-side pagination (limit: 1000) with server-side pagination (limit: 10)
- Add totalCount state to track pagination from API headers
- Extract X-Total-Count from response headers for accurate page calculation
- Pass status filter as array to API instead of comma-separated string
- Add loading state during pagination changes
- Add min-h-[600px] to prevent layout shifts during loading
- Remove client-side filtering and slicing logic
- Add useEffect to reload data on page/filter changes

Performance improvements:
- 99% reduction in data transfer (10 vs 1000 events per request)
- Faster initial load and page transitions
- Better scalability for growing datasets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 21:45:28 +08:00
Clas Wen
6536c61317 use openapi fetch 2025-09-25 23:18:33 +08:00
Clas Wen
3ef9cc2ebe Make RepairAdmin page responsive with mobile card layout
- Add responsive container layout with mobile-first approach
- Implement mobile card component for better touch interaction
- Switch between table (desktop) and cards (mobile) at sm breakpoint
- Make header section responsive with stacked layout on mobile
- Enhance drawer with full-screen mobile support
- Add mobile-optimized filter controls
- Improve touch targets and spacing for mobile devices
- Fix global CSS button border issue for card styling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 19:37:34 +08:00
Clas Wen
f4a7df3ab0 add default filter 2025-05-25 10:04:12 +08:00
Clas Wen
928162ece2 update style 2025-05-24 17:47:49 +08:00
Clas Wen
9eaf58ef86 fix offset 2025-05-24 15:20:40 +08:00
Clas Wen
74c95626c8 add export dialog 2025-05-24 14:24:16 +08:00
Clas Wen
478a7146f5 fix commit 2025-05-24 13:54:06 +08:00
Clas Wen
b4350c9b50 add memberId 2025-05-24 12:52:19 +08:00
Clas Wen
33d93d0347 add event actions 2025-05-24 12:40:25 +08:00
Clas Wen
bd38b8ed2b fix page 2025-05-24 02:42:15 +08:00
Clas Wen
91666db1d7 init 2025-05-24 01:14:46 +08:00