# 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/features/entries/hooks/use-entries.ts` - `apps/web/features/auth/hooks/use-auth.ts` - `apps/web/features/groups/hooks/use-groups.ts` - `apps/web/features/entries/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