Commit graph

407 commits

Author SHA1 Message Date
Clas Wen
450d339237 update api defination 2025-11-23 16:03:37 +08:00
Claude
3c3ebe66e9
feat: add notification preferences UI to repair admin page
- Add notification preferences API endpoints to OpenAPI types
- Create NotificationPreferences component with toggle switches
- Integrate notification preferences into repair admin page
- Support GET and PUT operations for notification preferences
- Add optimistic UI updates with error handling
- Include mobile-responsive design
2025-11-23 08:02:30 +00:00
clas
b29b59b4eb
Merge pull request #123 from nbtca/claude/add-repair-admin-query-params-01GEWWVWrbkRFCoPLXGVVNgA
Add URL query params to repair admin page
2025-11-23 15:45:35 +08:00
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
f767fce6ef
Merge pull request #122 from wen-templari/feat/server-side-pagination
feat: implement server-side pagination for repair admin
2025-11-12 21:46:45 +08: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
e6c36d14aa udpate pipeline 2025-11-09 00:34:39 +08:00
LazuliKao
c87e7a3f61 优化加入社团页面体验 2025-11-09 00:19:18 +08:00
Clas Wen
06b8f5cf79 Merge branch 'main' of https://github.com/nbtca/Home 2025-11-08 23:51:10 +08:00
Clas Wen
da62d5358f fix drop action 2025-11-08 20:10:36 +08:00
clas
cd04361535
Merge pull request #121 from nbtca/copilot/fix-markdown-hyperlink-highlight
Improve markdown hyperlink visibility with high-contrast colors
2025-10-30 10:13:07 +08:00
copilot-swe-agent[bot]
f3183a362d Fix markdown hyperlink visibility issue
Co-authored-by: wen-templari <52404670+wen-templari@users.noreply.github.com>
2025-10-30 02:08:03 +00:00
copilot-swe-agent[bot]
acd70b9cf3 Initial analysis of hyperlink visibility issue
Co-authored-by: wen-templari <52404670+wen-templari@users.noreply.github.com>
2025-10-30 02:03:31 +00:00
copilot-swe-agent[bot]
ab7682c793 Initial plan 2025-10-30 01:58:15 +00:00
7b15e9e7b3
Merge pull request #119 from nbtca/blog/m1ngsama-post
update cover of nbtca-post with HD logo
2025-10-17 21:44:17 +08:00
a94dc68d11 upload logo files 2025-10-17 21:38:57 +08:00
31691c01ee update cover of nbtca-post with HD logo 2025-10-17 21:28:31 +08:00
542bbe937a
Merge pull request #116 from nbtca/posts/nbtca-post
update nbtca-post: fix cover & add specific link
2025-10-17 15:43:38 +08:00
c1050c8a5b fix bug of code block 2025-10-17 15:38:49 +08:00
836deeb979 update nbtca-post: fix cover & add specific link 2025-10-17 15:31:15 +08:00
Clas Wen
a2eb15c002 Improve authentication callback UI and error handling
- Enhanced callback.astro with loading states and user feedback
- Fixed React prop naming in HeaderNavigation (stroke-width -> strokeWidth)
- Added safe utility for promise error handling
- Improved TicketForm authentication check using safe wrapper

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-15 20:13:59 +08:00
bfa15f2a42
Merge pull request #114 from nbtca/add-link-to-docs
add link to doc.nbtca.space at header
2025-10-11 18:58:53 +08:00
8a450f6369
Merge pull request #113 from nbtca/fix-blog-style
fix: fix blog style
2025-10-11 18:57:45 +08:00
Clas Wen
a369340a89 add link to doc.nbtca.space at header 2025-10-11 18:48:15 +08:00
Clas Wen
89bb636c30 fix blog style 2025-10-11 18:10:12 +08:00
ac299a5866
Merge pull request #111 from nbtca/posts/nbtca-post
upload nbtca post guide
2025-10-11 11:37:40 +08:00
Clas Wen
ceaa7c4f58 Merge branch 'main' of https://github.com/nbtca/Home 2025-10-10 23:07:33 +08:00
Clas Wen
094d6b17e4 add error handling 2025-10-10 20:14:52 +08:00
Clas Wen
42df93b9e6 Improve authentication error handling and update dependencies
- Add try-catch block for authentication check in TicketForm
- Handle authentication errors gracefully with proper error logging
- Update caniuse-lite dependency to latest version

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 19:11:15 +08:00
Clas Wen
f235cd5f1b Add pagination to UserRepairHistory component
- Add pagination state management with currentPage and totalPages
- Update API call to use limit/offset parameters for pagination
- Add HeroUI Pagination component with navigation controls
- Support 12 items per page with conditional pagination display
- Handle page changes and loading states properly

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 19:10:30 +08:00
e90124a7d9 upload nbtca post guide 2025-10-10 09:36:05 +08:00
bb5337a6b8
Merge pull request #110 from nbtca/blog/m1ngsama-post
upgrade getArch_cn.md
2025-10-04 22:20:01 +08:00
526d9762ad upgrade getArch_cn.md 2025-10-04 16:32:31 +08:00
Clas Wen
e33b81775e change loading 2025-10-03 23:28:49 +08:00
Clas Wen
5a175875ae remove loading state 2025-09-30 00:16:06 +08:00
clas
a293f77c8c
Merge pull request #109 from wen-templari/update-wording
update wording
2025-09-30 00:05:20 +08:00
Clas Wen
8e5c1753fb update wording 2025-09-30 00:05:01 +08:00
clas
d59bbfa7c7
Merge pull request #108 from wen-templari/fix/merge-conflicts
Fix merge conflicts in HeaderNavigation component
2025-09-30 00:03:56 +08:00
Clas Wen
c8c067fd4e Merge branch 'main' of https://github.com/nbtca/Home into fix/merge-conflicts 2025-09-30 00:03:30 +08:00
Clas Wen
99fa4948ec Fix merge conflicts in HeaderNavigation component
Resolved merge conflicts in HeaderNavigation.tsx to integrate GitHub link functionality with existing navigation structure.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 00:01:14 +08:00
clas
9cf31ebcc7
Merge pull request #107 from wen-templari/feature/repair-system-updates
Add comprehensive repair system functionality
2025-09-30 00:00:12 +08:00
Clas Wen
7d5960ae87 Add comprehensive repair system functionality
- Add repair ticket form and detail components
- Implement repair history tracking and display
- Create repair event detail view
- Add repair landing section and modal components
- Update repair header and main page

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 23:56:33 +08:00
clas
46219e8ba6
Merge pull request #106 from wen-templari/fix-header-github-mark
fix header github mark
2025-09-29 23:17:23 +08:00
Clas Wen
f6b62ce7a7 fix header github mark 2025-09-29 23:14:00 +08:00
clas
6d80272ef4
Merge pull request #105 from wen-templari/feature/add-github-link-header
Add GitHub link with icon to header
2025-09-29 23:04:11 +08:00
Clas Wen
54e2c6486b Add GitHub link with icon to header
Added GitHub organization link (github.com/nbtca) to the right side of the header navigation using the provided SVG icon. The link opens in a new tab and maintains proper accessibility attributes.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 23:03:07 +08:00
clas
b0969760b5
Merge pull request #104 from wen-templari/use-openapi-fetch
Migrate to openapi-fetch for API client
2025-09-29 22:56:18 +08:00
Clas Wen
87f8909283 Merge branch 'main' into use-openapi-fetch 2025-09-29 22:48:34 +08:00