Refactor agent detail fetches onto useApi#209
Merged
mikewheeleer merged 1 commit intoJun 29, 2026
Conversation
Contributor
|
thanks for the effort @niufuti-cyber! 🙏 i can't tie this to an issue assigned to you, and we merge from the assigned contributor to keep the campaign fair. please claim an open unassigned issue first, then open your PR. closing for now — hope to see it back 🙌 |
Contributor
|
great stuff — thanks for this! |
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.
Summary
useApihook, keyed by the URL-encoded agent id so navigation aborts superseded usage requests.Addresses #178
Verification
npm run lint: passes with 0 errors and 3 pre-existing warnings insrc/components/__tests__/ConfirmDialog.test.tsxnpm run typecheck: passesnpm test -- --runInBand --runTestsByPath src/app/agents/[agent]/page.test.tsx src/app/changelog/page.test.tsx: 2 suites passed, 10 tests passedNotes
I am not claiming the full suite or build are currently green:
npm test -- --runInBandwas checked against the same base and has unrelated baseline failures insrc/app/usage/page.test.tsxandsrc/components/__tests__/ConfirmDialog.test.tsx.npm run buildwas checked against the same base in a no-network verification environment and fails before this patch because the app imports Google fonts throughnext/font/google.