Skip to content

fix(ci): repair main type-check and finish per-API rate limit wiring - #1365

Merged
greatest0fallt1me merged 1 commit into
mainfrom
ci/fix-main-tsc
Oct 24, 2026
Merged

greatest0fallt1me merged 1 commit into
mainfrom
ci/fix-main-tsc

Conversation

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Main has been red since 2026-10-21. The latest failure is tsc --noEmit in src/App.tsx and src/pages/RateLimitCard.tsx, because #1356 was merged with only part of its changes.

Changes

  • src/App.tsx: import Navigate and useToast; add legacyRateLimit: "/rate-limit" and move rateLimitCard to /marketplace/:apiId/rate-limits. The legacy redirect shows its toast once, even under StrictMode.
  • src/pages/RateLimitCard.tsx: per-API page driven by fetchCatalog and api.rateLimits, with loading, not-published, not-found and error states, and optional columns.
  • src/renderRoute.tsx: use isMarketplaceSubpage so /marketplace/:id/rate-limits reaches App.
  • src/pages/ApiDetailPage.tsx: add a "View rate limits" link.
  • Tests: rewrite RateLimitCard.test.tsx (the old file was a broken merge) and update RouteSplitting.test.tsx.

Follow-up commits on this PR fix whatever later CI steps (build, vitest) turn up.

🤖 Generated with Claude Code

#1356 was squashed with only part of its changes, leaving main failing
type-check: App.tsx used useToast/Navigate without importing them and
referenced APP_ROUTES.legacyRateLimit, and RateLimitCard referenced an
undefined `api`. Its test file was a broken merge of old and new tests.

- App: import Navigate and useToast, route /marketplace/:apiId/rate-limits
  to RateLimitCard and redirect legacy /rate-limit to the Marketplace with
  a one-time toast.
- RateLimitCard: resolve the API from fetchCatalog by :apiId, build the
  table/cards from api.rateLimits, hide empty optional columns, and handle
  loading, not-published, not-found and error states.
- renderRoute: use isMarketplaceSubpage so per-API subpages reach App.
- ApiDetailPage: add a "View rate limits" link next to "View SLA".
- Tests: rewrite RateLimitCard tests, point route-splitting test at the
  per-API path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greatest0fallt1me
greatest0fallt1me merged commit c5667a5 into main Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant