Commit e0d2069
authored
Scheduling a call, request new times, cancelling call, & edit profile flows in participant dash. Contact form and sign out button for participant and volunteer dash. (#81)
TDLR: Implemented scheduling call, request new times, cancelling call, &
edit profile flows in participant dash. implemented contact form and
sign out button for participant and volunteer dash
i'm too lazy to write one so here's claude's pr message:
## Summary
Implements comprehensive participant dashboard improvements including
call scheduling, requesting new times, cancelling calls, profile
editing,
and contact form functionality.
## What Changed
### Participant Dashboard Features
- **Call Scheduling**: Participants can now schedule calls by selecting
from volunteer-proposed time blocks with a clean date/time picker
interface
- **Request New Times**: Two-step flow allowing participants to propose
alternative availability when volunteer times don't work
- **Cancel Calls**: Soft-delete flow with confirmation and success
modals
- **Edit Profile**: Comprehensive modal for editing personal details,
cancer experience, and account settings
- **Contact Form**: Shared component accessible from both participant
and
volunteer dashboards
### Backend API Enhancements
- Added `/contact/submit` endpoint for contact form (with logging; email
integration pending)
- Enhanced match endpoints: `/schedule`, `/cancel`, `/request-new-times`
- Updated `/user-data/me` PATCH to support timezone and language updates
- Fixed logout endpoint to properly handle auth_id to user_id conversion
- Match cancellation now uses soft-delete pattern (sets `deleted_at` and
cleans up time blocks)
### UI/UX Improvements
- Refactored participant dashboard components for better state
management
- Added timezone awareness (EST) across scheduling flows
- Improved modal consistency and user feedback
- Enhanced dashboard navigation with sidebar and profile dropdown
- Better handling of past/future time blocks
### Data & Testing
- Enhanced seed data with volunteer experiences, availability templates,
and timezone information
- More realistic test data for end-to-end testing
## Technical Details
**New Components:**
- `ParticipantEditProfileModal` - Full profile editing
- `DaySelectionCalendar` - Multi-day selection calendar
- `CancelCallConfirmationModal` & `CancelCallSuccessModal`
- `RequestNewTimesSuccessModal`
- `ViewContactDetailsModal`
- `ContactForm` & `ContactSuccessModal`
- `ReadOnlyDiagnosisField`
- `AccountSettings`
**New Pages:**
- `/participant/schedule/[matchId]` - Call scheduling interface
- `/participant/request-new-times/[matchId]` - Request new availability
- `/participant/dashboard/contact` - Contact form
- `/volunteer/dashboard/contact` - Volunteer contact form
**API Client Updates:**
- `participantMatchAPIClient` - Added `scheduleMatch`, `cancelMatch`,
`requestNewTimes`
- `contactAPIClient` - New client for contact form submission
- `authAPIClient` - Enhanced logout to clear both backend and Firebase
sessions
## Testing Checklist
- [ ] Participant can schedule a call from proposed times
- [ ] Participant can request new times when volunteer times don't work
- [ ] Participant can cancel a scheduled call
- [ ] Participant can edit profile including timezone and language
- [ ] Contact form works for both participants and volunteers
- [ ] Past time blocks are filtered out
- [ ] Logout properly clears all session data
- [ ] Seed data includes realistic test scenarios
## Known Limitations
- Contact form logs messages but doesn't send emails yet (email
integration pending)
- All times displayed in EST (future: respect user timezone preference)
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 84470d0 commit e0d2069
File tree
49 files changed
+4702
-1401
lines changed- backend/app
- routes
- schemas
- seeds
- services
- email
- implementations
- frontend/src
- APIClients
- components
- dashboard
- intake
- participant
- ui
- constants
- pages
- participant
- dashboard
- request-new-times
- schedule
- volunteer
- dashboard
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+4702
-1401
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
| |||
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
109 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| |||
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
131 | 144 | | |
132 | 145 | | |
133 | 146 | | |
| |||
147 | 160 | | |
148 | 161 | | |
149 | 162 | | |
| 163 | + | |
150 | 164 | | |
151 | 165 | | |
152 | 166 | | |
| |||
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
| 183 | + | |
| 184 | + | |
169 | 185 | | |
170 | 186 | | |
171 | 187 | | |
| |||
192 | 208 | | |
193 | 209 | | |
194 | 210 | | |
195 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
196 | 214 | | |
197 | 215 | | |
198 | 216 | | |
| |||
300 | 318 | | |
301 | 319 | | |
302 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
303 | 347 | | |
304 | 348 | | |
305 | 349 | | |
| |||
314 | 358 | | |
315 | 359 | | |
316 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
317 | 366 | | |
318 | 367 | | |
319 | 368 | | |
| |||
330 | 379 | | |
331 | 380 | | |
332 | 381 | | |
| 382 | + | |
333 | 383 | | |
334 | 384 | | |
335 | 385 | | |
| |||
345 | 395 | | |
346 | 396 | | |
347 | 397 | | |
| 398 | + | |
348 | 399 | | |
349 | 400 | | |
350 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
165 | 172 | | |
166 | 173 | | |
167 | 174 | | |
| 175 | + | |
168 | 176 | | |
169 | 177 | | |
170 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
171 | 185 | | |
172 | 186 | | |
173 | 187 | | |
| |||
190 | 204 | | |
191 | 205 | | |
192 | 206 | | |
| 207 | + | |
193 | 208 | | |
194 | 209 | | |
195 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
196 | 217 | | |
197 | 218 | | |
198 | 219 | | |
| |||
216 | 237 | | |
217 | 238 | | |
218 | 239 | | |
| 240 | + | |
219 | 241 | | |
220 | 242 | | |
221 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
222 | 249 | | |
223 | 250 | | |
224 | 251 | | |
| |||
241 | 268 | | |
242 | 269 | | |
243 | 270 | | |
| 271 | + | |
244 | 272 | | |
245 | 273 | | |
246 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
247 | 280 | | |
248 | 281 | | |
249 | 282 | | |
| |||
266 | 299 | | |
267 | 300 | | |
268 | 301 | | |
| 302 | + | |
269 | 303 | | |
270 | 304 | | |
271 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
272 | 312 | | |
273 | 313 | | |
274 | 314 | | |
| |||
434 | 474 | | |
435 | 475 | | |
436 | 476 | | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
437 | 493 | | |
438 | 494 | | |
439 | 495 | | |
| |||
0 commit comments