Implement AddParticipantsToEventPane and related functionality#150
Merged
Implement AddParticipantsToEventPane and related functionality#150
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Introduces an end-to-end flow for adding participants to an existing event, including UI, domain logic, navigation, and comprehensive testing support.
Changes:
- Added new feature for adding participants to existing events with
AddParticipantsToEventPane,AddParticipantsToEventViewModel, and domain use case - Integrated the feature into app navigation via
MainNavHostand menu system with localized strings - Added Android instrumented tests to verify the complete flow and updated test screens for UI automation
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| MainNavHost.kt | Registers the new add participants navigation module |
| MenuViewModel.kt | Adds navigation handler for the add participants action |
| MenuDialogDestination.kt | Wires the view model callback to the UI component |
| MenuDialog.kt | Adds UI menu item for adding participants with icon and localized text |
| strings.xml (en, ru) | Adds localized menu label for the add participants action |
| AddParticipantsToEventViewModel.kt | Implements view model managing participant list state and confirmation logic |
| AddParticipantsToEventPaneUiModel.kt | Defines UI state model with validation for confirming participants |
| AddParticipantsToEventPaneDestination.kt | Sets up navigation destination and dependency injection |
| AddParticipantsToEventPane.kt | Implements UI for adding multiple participants with dynamic form fields |
| AddParticipantsToCurrentEventUseCase.kt | Domain use case handling participant insertion into current event |
| EventsComponent.kt | Exposes the new use case via lazy dependency injection |
| themes.xml | Sets window background color for light theme |
| colors.xml (light/dark) | Defines window background colors for light and dark themes |
| MenuDialogScreen.kt | Adds test helper method for navigating to add participants screen |
| AddParticipantsToEventScreen.kt | New test screen class for UI automation of add participants flow |
| BasicInstrumentedTest.kt | Adds comprehensive end-to-end test for the add participants feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...n/com/inwords/expenses/feature/events/ui/add_participants/AddParticipantsToEventViewModel.kt
Show resolved
Hide resolved
...com/inwords/expenses/feature/events/ui/add_participants/AddParticipantsToEventPaneUiModel.kt
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Introduces an end-to-end flow for adding participants to an existing event and wires it into the app navigation and menu, with UI, domain use case, and tests, plus minor theme tweaks.
AddParticipantsToEventPane(UI),AddParticipantsToEventViewModel, and navAddParticipantsToEventPaneDestinationAddParticipantsToCurrentEventUseCaseand DI exposure viaEventsComponentMenuDialog,MenuViewModel, strings)MainNavHostandroid:windowBackgroundwith light/dark colorsWritten by Cursor Bugbot for commit 6ca748e. This will update automatically on new commits. Configure here.