Commit Graph

36 Commits

Author SHA1 Message Date
jessikitty ca702b9703 Phase 3.1: Add Reports page - weekly dashboard with charts, leaderboards, stats 2026-02-05 12:25:05 +11:00
jessikitty 29b49253d7 Phase 3.1: Add choreLogs API service for frontend 2026-02-05 12:13:30 +11:00
jessikitty c7d9e90980 Add EditChoreModal component for admin chore editing
New component that allows admins to edit existing chores:
- Loads chore data and pre-populates form with current values
- Multi-user checkbox selection grid
- Updates all chore fields: title, description, room, frequency, points, due_date, assigned_user_ids
- Loading spinner while fetching chore
- Error handling with detailed messages
- Admin-only feature called from ChoreCard edit button
2026-02-02 12:12:07 +11:00
jessikitty 2f252948c0 Update ChoreCard: Multi-user display, birthday icons, points, and admin edit button
- Display multiple assigned users with completion status per user
- Show birthday emoji 🎂 for users with birthday today
- Display points with  emoji
- Add Edit button for admins (calls onEdit prop)
- Show "Birthday chore! Give them a break today" message
- Update frequency icons (added fortnightly, on_trigger)
- Check if current user is assigned and show appropriate completion button
- Only show Complete button if user is assigned and hasn't completed yet
2026-02-02 12:11:31 +11:00
jessikitty 0969cde841 Update chores API: Add multi-user support, birthday filtering, and points
- Added AssignedUser interface with birthday and completed_at fields
- Updated Chore interface with assigned_users array and points field
- Added assigned_user_ids to CreateChoreRequest and UpdateChoreRequest
- Added query params to getChores: user_id and exclude_birthdays
- Added assignUsers method for POST /chores/{id}/assign endpoint
- Updated frequency enum to include 'on_trigger' and 'fortnightly'
2026-02-02 12:10:45 +11:00
jessikitty b214f56570 Add Settings link to Dashboard header 2026-01-28 17:39:30 +11:00
jessikitty d4608fefbe Add Settings route to application 2026-01-28 17:38:50 +11:00
jessikitty c9d98f8a32 Create Settings page with profile editing and admin user management 2026-01-28 17:26:59 +11:00
jessikitty 54dfc39e32 Fix date conversion: convert YYYY-MM-DD to datetime format before submission 2026-01-28 17:21:25 +11:00
jessikitty 2b0f3f66c8 Fix text color visibility and error handling, update frequency options 2026-01-28 17:04:16 +11:00
jessikitty b2a9b7ea04 Fix login sequence: store token BEFORE calling getCurrentUser 2026-01-28 14:59:16 +11:00
jessikitty cd8a062145 Update API URL to use server IP instead of localhost 2026-01-28 11:35:58 +11:00
jessikitty baa93959e4 Fix input text color visibility (add text-gray-900) 2026-01-27 22:49:39 +11:00
jessikitty 42a4434b59 Add frontend environment configuration 2026-01-27 22:30:30 +11:00
jessikitty c8897ba69c Update App.tsx with routing and authentication 2026-01-27 22:29:34 +11:00
jessikitty d21c368cfd Add CreateChoreModal component 2026-01-27 22:22:59 +11:00
jessikitty da92c08a7e Add ChoreCard component 2026-01-27 22:22:37 +11:00
jessikitty 93a2b8acb1 Add dashboard page with chore management 2026-01-27 22:22:21 +11:00
jessikitty cdfcb1bcce Add login page component 2026-01-27 22:21:51 +11:00
jessikitty edd51e61d3 Add auth context for user state management 2026-01-27 22:21:39 +11:00
jessikitty d2f6fbd886 Add chore service API 2026-01-27 22:21:28 +11:00
jessikitty 6bcc0554e0 Add auth service with login/logout 2026-01-27 22:21:16 +11:00
jessikitty 00bf118781 Add axios API client with auth interceptors 2026-01-27 22:21:08 +11:00
jessikitty 4b6f8a6969 Add frontend public directory 2026-01-26 21:51:43 +11:00
jessikitty 784e89e068 Add frontend App test file 2026-01-26 21:51:31 +11:00
jessikitty 903cee27b9 Add frontend App.tsx with welcome page 2026-01-26 21:51:22 +11:00
jessikitty 8604708df1 Add frontend index.css 2026-01-26 21:51:06 +11:00
jessikitty 900d3737af Add frontend main.tsx 2026-01-26 21:50:59 +11:00
jessikitty ec89ce1c4d Add frontend index.html 2026-01-26 21:50:53 +11:00
jessikitty 3fa073f99b Add frontend TypeScript node config 2026-01-26 21:50:47 +11:00
jessikitty ccc2aaee4f Add frontend TypeScript config 2026-01-26 21:50:42 +11:00
jessikitty abe48de039 Add frontend postcss config 2026-01-26 21:50:35 +11:00
jessikitty 13029a5a23 Add frontend tailwind config 2026-01-26 21:50:30 +11:00
jessikitty cc8d1244a6 Add frontend vite config 2026-01-26 21:50:25 +11:00
jessikitty ad7a148b83 Add frontend package.json 2026-01-26 21:50:18 +11:00
jessikitty 79f2e67d6e Add frontend Dockerfile 2026-01-26 21:50:10 +11:00