-
Notifications
You must be signed in to change notification settings - Fork 0
Participants Screens
Masked-Kunsiquat edited this page Dec 25, 2025
·
2 revisions
This page documents participant-related screens and their responsibilities.
File: src/modules/participants/screens/ManageParticipantsScreen.tsx
- Lists participants for a trip.
- Adds a participant with name + auto-assigned avatar color.
- Removes a participant with confirmation dialog.
- Supports pull-to-refresh for trip and participant data.
- Empty state card when no participants exist.
- Sorts list by
nameusinglocaleCompare. - Tap row -> open details.
- Long-press row -> remove confirmation.
useParticipants(tripId)useTripById(tripId)- Repository calls for create/delete
File: src/modules/participants/screens/ParticipantDetailsScreen.tsx
- Shows participant balance and transaction summary.
- Displays expenses paid by the participant and expenses they are part of.
- Pulls settlement suggestions and recorded settlements.
- Provides quick navigation back to the participants list.
- Participants:
useParticipants - Settlements:
useSettlement,useSettlements - Expenses + categories:
useExpenses,useExpenseCategories - Expense splits:
getExpenseSplits - Display currency:
useDisplayCurrency
- Precomputes FX conversions with
cachedFxRateProvider. - Uses refresh control for participants, settlements, and expenses.
-
/trips/[id]/participants-> ManageParticipantsScreen -
/trips/[id]/participants/[participantId]-> ParticipantDetailsScreen