35 lines
966 B
Markdown
35 lines
966 B
Markdown
---
|
|
# nuzlocke-tracker-8fcj
|
|
title: Frontend API Integration
|
|
status: todo
|
|
type: task
|
|
priority: normal
|
|
created_at: 2026-02-04T15:44:42Z
|
|
updated_at: 2026-02-04T15:47:24Z
|
|
parent: nuzlocke-tracker-f5ob
|
|
blocking:
|
|
- nuzlocke-tracker-uw2j
|
|
- nuzlocke-tracker-0q8f
|
|
- nuzlocke-tracker-hm6t
|
|
- nuzlocke-tracker-8tuw
|
|
---
|
|
|
|
Implement frontend services to communicate with the backend API.
|
|
|
|
## Checklist
|
|
- [ ] Create API client/service layer
|
|
- [ ] Implement API calls for:
|
|
- [ ] Fetch available games
|
|
- [ ] Fetch routes for a game
|
|
- [ ] Fetch Pokémon data
|
|
- [ ] Create/update/delete Nuzlocke runs
|
|
- [ ] Create/update encounters
|
|
- [ ] Update Pokémon status
|
|
- [ ] Add loading states and error handling
|
|
- [ ] Implement optimistic updates where appropriate
|
|
- [ ] Add retry logic for failed requests
|
|
|
|
## Technical Notes
|
|
- Use fetch or axios for HTTP requests
|
|
- Consider using React Query/TanStack Query or SWR for caching
|
|
- Type API responses with TypeScript |