MS-1458 Subject pool validation UX rework#1695
Open
luhmirin-s wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR reworks the “subject pool validation” UX and wiring so pool validation is enabled by default (but can be disabled via project custom config), and is also applied to Enrol+ flows with updated “no records” behavior.
Changes:
- Renames/inverts the experimental flag to
disableSubjectPoolValidation(defaulting validation to ON unless explicitly disabled). - Extends validate-subject-pool flow to support an explicit
ValidationMode(IDENTIFICATION vs ENROL_PLUS) and adjusts ViewModel logic/tests accordingly. - Inserts the pool validation step into Enrol+ (duplicate check) orchestration steps and updates orchestrator tests/cached-step fixtures.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| infra/resources/src/main/res/values/strings.xml | Updates the “Continue capture” CTA copy to “Continue”. |
| infra/resources/src/main/res/values-bn/strings.xml | Adjusts Bengali resources around pool validation actions. |
| infra/config-store/src/main/java/com/simprints/infra/config/store/models/ExperimentalProjectConfiguration.kt | Replaces the old “enable” flag with disableSubjectPoolValidation in experimental config. |
| infra/config-store/src/test/java/com/simprints/infra/config/store/models/ExperimentalProjectConfigurationTest.kt | Updates tests for the renamed/inverted pool validation flag. |
| feature/validate-subject-pool/src/main/java/com/simprints/feature/validatepool/ValidateSubjectPoolFragmentParams.kt | Adds ValidationMode to params for mode-specific validation behavior. |
| feature/validate-subject-pool/src/main/java/com/simprints/feature/validatepool/ValidateSubjectPoolContract.kt | Extends contract params factory to accept/pass validation mode (default IDENTIFICATION). |
| feature/validate-subject-pool/src/main/java/com/simprints/feature/validatepool/screen/ValidateSubjectPoolViewModel.kt | Implements mode-aware validation logic and passes mode through sync + re-check flow. |
| feature/validate-subject-pool/src/main/java/com/simprints/feature/validatepool/screen/ValidateSubjectPoolState.kt | Renames mismatch state to AttendantMismatch. |
| feature/validate-subject-pool/src/main/java/com/simprints/feature/validatepool/screen/ValidateSubjectPoolFragment.kt | Threads mode into validation and sync actions; updates state rendering mapping. |
| feature/validate-subject-pool/src/test/java/com/simprints/feature/validatepool/screen/ValidateSubjectPoolViewModelTest.kt | Updates existing tests for mode parameter and adds Enrol+ “no-records” expectations. |
| feature/orchestrator/src/main/java/com/simprints/feature/orchestrator/usecases/steps/BuildStepsUseCase.kt | Enables validation-by-default, allows disabling, and adds validation step before Enrol+ matching. |
| feature/orchestrator/src/test/java/com/simprints/feature/orchestrator/usecases/steps/BuildStepsUseCaseTest.kt | Updates/extends step-order expectations for new validation behavior and disable flag. |
| feature/orchestrator/src/test/java/com/simprints/feature/orchestrator/cache/OrchestratorCacheIntegrationTest.kt | Updates cached step params fixture to include validation mode. |
|
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.


JIRA ticket
Will be released in: 2026.3.0
Notable changes
Testing guidance
Additional work checklist