refactor(api): sets → src/api modules (Effort 1)#58
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Summary by QodoRefactor sets feature into src/api/sets with shared types/keys and queryOptions Description
Diagram
High-Level Assessment
Files changed (30)
|
Code Review by Qodo
Context used✅ Compliance rules (platform):
109 rules 1. API depends on hooks
|
|
Triage of Qodo's two findings — both Maintainability, neither a behavior/correctness bug, so #58 stays a pure mechanical move: 1. 2. No changes here. Generated by Claude Code |
Mechanical move of the sets feature from src/hooks/queries/sets to src/api/sets. Added queryOptions factories for the set query hooks. No behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K513rsQz6Lg1HbbfYiafrE
387d221 to
9922251
Compare
useSetsQuery (fetch all sets, unscoped) had no call sites — every consumer uses the edition-scoped useSetsByEditionQuery. The file was already orphaned on main; removing it rather than carrying dead code into src/api. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K513rsQz6Lg1HbbfYiafrE
Mechanical move of the
setsfeature fromsrc/hooks/queries/setstosrc/api/sets, addingqueryOptionsfactories for the set query hooks. No behavior change. Part of #52.Manual verification
pnpm run lint && pnpm test && pnpm run buildall pass.Generated by Claude Code