You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(ui,astro): improve error handling, build config, and code organization
UI Package Updates:
- Enhanced billing error handling in CheckoutPage by properly flattening
ClerkAPIResponseErrors to extract error codes
- Updated InvalidPlanScreen to correctly filter and extract errors from
ClerkAPIResponseErrors before checking for invalid_plan_change
- Removed unused imports from OrganizationProfile components
- Simplified SignUpStart appearance usage
- Added type-check script to package.json
- Updated tsconfig to exclude __tests__ directories
- Enhanced rspack dev config with better source maps and disabled tree shaking
for easier debugging
- Added __BUILD_DISABLE_RHC__ constant to both rspack and tsdown configs
Astro Package Updates:
- Refactored createClerkInstance to extract clerk-js and clerk-ui loading into
separate functions (getClerkJsEntryChunk, getClerkUiEntryChunk)
- Improved code clarity with better comments explaining early returns when
scripts are already loaded via middleware
- Maintained parallel loading of both scripts for optimal performance
Root Package Updates:
- Added E2E_DEBUG=1 to billing, generic, and machine integration test scripts
for better debugging visibility
- Updated billing test to use withBillingJwtV2 instead of withBilling
- Fixed duplicate E2E_DEBUG flag in express test script
0 commit comments