fiddy/docs/app_dev_plan/09_hooks_api_calls.md
2026-02-11 23:45:15 -08:00

703 B

Hooks for API Calls

Focus

Move API calls into exported hooks/services for reuse and cleanliness.

Changes

  • Entries hook for list/create (and now update/delete).
  • Auth hook for login/register/session checks.
  • Groups hook for list/create/join/active group operations.
  • Refactor components/pages to use hooks.
  • Update copilot instructions to prefer hooks/services for API calls.

Files

  • apps/web/hooks/use-entries.ts
  • apps/web/hooks/use-auth.ts
  • apps/web/hooks/use-groups.ts
  • apps/web/components/entries-panel.tsx
  • apps/web/components/navbar.tsx
  • apps/web/app/login/page.tsx
  • apps/web/app/register/page.tsx
  • .github/copilot-instructions.md

Status

  • Implemented