Commit graph

403 commits

Author SHA1 Message Date
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
clas
b54db897e6
Merge pull request #103 from wen-templari/feature/add-cover-image-utility
Update OG Image, Add getCoverImage utility function and update layouts
2025-09-29 07:31:25 +08:00
Clas Wen
6bcb1cf581 Add getCoverImage utility function and update layouts
- Add getCoverImage function in utils.ts to handle different cover image formats
- Update MarkdownPost.astro to use getCoverImage for consistent image handling
- Update MoreTile.astro to use getCoverImage and remove direct CA_LOGO_URL import
- Update preview.png

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-28 23:35:38 +08:00
clas
a0aaf4984a
Merge pull request #102 from wen-templari/fix/schedule-loading-race-condition
Fix schedule loading race condition causing event flash
2025-09-28 08:45:33 +08:00
clas
a3a9fbca0e
Merge pull request #89 from nbtca/refactor-blog
refactor: refactor blog page
2025-09-28 08:44:38 +08:00