Repository navigation
Fix/rate limit per api - #1356
Merged
greatest0fallt1me merged 5 commits intoOct 24, 2026
Merged
Conversation
|
@Opulencechuks Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
2 tasks
greatest0fallt1me
added a commit
that referenced
this pull request
Oct 24, 2026
) #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: greatest0fallt1me <greatest0fallt1me@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1326
✓ src/routeMatchers.test.ts (7 tests)
✓ src/pages/RateLimitCard.test.tsx (8 tests)
✓ RateLimitCard
✓ shows a loading state first
✓ renders three rows and a caption naming the API
✓ omits Burst and Concurrent columns when no tier has them
✓ shows the not-published state when the API has no rateLimits
✓ shows a not-found panel for an unknown id
✓ builds a breadcrumb from the API name whose hrefs all resolve to existing routes
✓ contains no GrantFox literals
✓ ROUTE_CATALOGUE
✓ has no dead /rate-limit entry