-
Notifications
You must be signed in to change notification settings - Fork 29
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarchitecturefrontendFrontend developmentFrontend developmenthelp wantedExtra attention is neededExtra attention is neededtanstack-query
Description
Depends on: #100
Migrate all bounty write operations from REST to GraphQL mutations.
Files to modify
hooks/use-bounty-mutations.ts
Tasks
-
useCreateBounty→ useuseCreateBountyMutationfrom generated hooks -
useUpdateBounty→ useuseUpdateBountyMutation(note: backend expectsidinside input, not as a separate arg) -
useDeleteBounty→ useuseDeleteBountyMutation -
useClaimBounty→ this mutation doesn't exist on the backend yet; either:- Remove this hook until the backend implements
claimBounty, or - Use
updateBountywithstatus: 'IN_PROGRESS'as a workaround
- Remove this hook until the backend implements
- Preserve optimistic update logic (the existing
onMutate/onError/onSettledpattern) - Update query key invalidation to use the new generated query key constants
Acceptance Criteria
- Create, update, and delete bounties all work via GraphQL mutations
- Optimistic updates still function correctly
- Cache invalidation still triggers list refreshes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarchitecturefrontendFrontend developmentFrontend developmenthelp wantedExtra attention is neededExtra attention is neededtanstack-query