Skip to content

set up the API client and hook for submitting puzzle answers accordin…#290

Merged
A6dulmalik merged 1 commit intoMindBlockLabs:mainfrom
midenotch:Midey
Feb 26, 2026
Merged

set up the API client and hook for submitting puzzle answers accordin…#290
A6dulmalik merged 1 commit intoMindBlockLabs:mainfrom
midenotch:Midey

Conversation

@midenotch
Copy link

Close: #269
Fix: #269

I have set up the API client and hook for submitting puzzle answers according to your requirements.

Created API Client (frontend/lib/api/progressApi.ts) with submitAnswer method and types for DTO and response.
Created Hook (frontend/hooks/useSubmitAnswer.ts) containing the useSubmitAnswer() mutation hook, which explicitly handles the isLoading and error states.
The integration seamlessly connects to the existing api client (from client.ts)

@A6dulmalik A6dulmalik merged commit 31dbb57 into MindBlockLabs:main Feb 26, 2026
3 checks 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.

FRONTEND - Progress API Integration - Submit Answer

2 participants