Commit graph

12 commits

Author SHA1 Message Date
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