Commit graph

385 commits

Author SHA1 Message Date
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
Clas Wen
75100b26d3 Merge remote-tracking branch 'upstream/refactor-blog' into refactor-blog 2025-09-27 16:16:03 +08:00
clas
ec83bcccd7
Merge branch 'main' into refactor-blog 2025-09-27 16:13:42 +08:00
Clas Wen
c8eb20e13f Refactor blog structure and update navigation
- Replace archive page with new blog page
- Update navigation links from /archive to /blog
- Extract CA logo and iCal URLs to constants
- Update references throughout codebase to use new constants

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 16:12:01 +08:00
Clas Wen
a830ba1743 Merge branch 'main' into refactor-blog 2025-09-27 16:00:07 +08:00
Clas Wen
3048475948 Fix line breaks rendering in event descriptions
Add whitespace-pre-wrap CSS class to preserve line breaks and formatting in event descriptions while maintaining proper text wrapping.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 12:33:09 +08:00
Clas Wen
e2187b1f13 Fix timing issue with event loading and month filtering
Removed redundant useEffect that was causing a race condition where:
1. Page would load showing all events first
2. Then switch to month-filtered events after a delay

The issue was two competing useEffects:
- One for month filtering (extractScheduleEventsInRange)
- One for loading all events (extractScheduleEvents)

Now uses only one useEffect for both initial loading and month filtering,
ensuring consistent behavior on page load.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 23:36:28 +08:00
Clas Wen
a23e262931 Fix timing issue with event loading and month filtering
Removed redundant useEffect that was causing a race condition where:
1. Page would load showing all events first
2. Then switch to month-filtered events after a delay

The issue was two competing useEffects:
- One for month filtering (extractScheduleEventsInRange)
- One for loading all events (extractScheduleEvents)

Now uses only one useEffect for both initial loading and month filtering,
ensuring consistent behavior on page load.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 23:36:18 +08:00
Clas Wen
6536c61317 use openapi fetch 2025-09-25 23:18:33 +08:00
clas
38e9a6af61
Merge pull request #101 from wen-templari/fix/recurring-event-duplication
Fix recurring event duplication bug
2025-09-25 23:07:01 +08:00
Clas Wen
39d266e9b5 Fix recurring event duplication bug
When a recurring event has a modified occurrence, the calendar was showing both the original and modified versions. This happened because the code didn't properly handle RECURRENCE-ID exceptions in iCal data.

Changes:
- Modified extractScheduleEventsInRange() to collect exception events first and filter them from recurring patterns
- Updated expandEventOccurrences() to skip dates that have exceptions
- Applied same fix to extractScheduleEvents() for proper date range filtering

Fixes issue where modified recurring events appeared twice in the UI.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 22:47:21 +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
92396ccc4c
Merge pull request #99 from nbtca/fix-workflow-permission
fix workflow permission
2025-09-20 19:47:34 +08:00
clas
09d88dc7ba
Update main.yml 2025-09-19 22:15:48 +08:00
clas
5338706dab
Merge pull request #96 from wen-templari/clarity
add clarity
2025-09-19 11:20:54 +08:00
clas
94d32da20f
Merge pull request #98 from nbtca/alert-autofix-3
Potential fix for code scanning alert no. 3: Workflow does not contain permissions
2025-09-19 11:17:26 +08:00
clas
59428e19e3
Potential fix for code scanning alert no. 3: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-09-18 23:09:13 +08:00
clas
bbeb9f5391
Merge pull request #97 from nbtca/dependabot/npm_and_yarn/npm_and_yarn-43e0f2a6b1
Bump the npm_and_yarn group across 1 directory with 2 updates
2025-09-18 23:08:03 +08:00
clas
cdf0764938
Merge branch 'main' into clarity 2025-09-18 23:00:55 +08:00