The scenario: a helpful setup prompt needs the right reason
A profile can look incomplete because information is missing, because the current session is restricted or because the user deliberately postponed setup. Those situations deserve different handling. A setup flow that treats every absent field as a data-entry task can repeatedly ask someone to replace information that the session is intentionally not allowed to reveal.
The selected Movo-X Android setup logic separates those states. Ten existing JVM cases passed for profile incompleteness, prompt deferral, visible steps and identity-review offers. Three portable Swift cases cover the identity offer policy, selected status decoding/polling decisions and a 404 compatibility response. The native screens were inspected in source; they were not mounted or exercised on devices in this batch.
Choose the self profile before deciding whether setup is incomplete
The Android helper selects the first household person marked as self. For an unrestricted household, a missing self person means the selected profile setup is incomplete. When a self person exists, the predicate checks for a blank or missing date of birth and a missing or explicitly unknown sex value. An existing case covers a complete synthetic self profile; another covers the selected missing-field variants.
This is a prompt predicate rather than a complete profile validator. It does not prove that every nonblank date is valid or that every possible sex representation is accepted by the authoritative write path. Keep display completeness, editable draft validation and server validation as separate responsibilities. A skipped prompt is not a certificate that identity information is correct.
Treat restricted data as a visibility boundary
The selected predicate returns false when either the household or its self person is marked restricted. An existing case supplies a missing date of birth under each restriction and verifies that setup is not classified incomplete. The important distinction is why the value is absent, rather than the absence alone.
This local decision does not authorize access to a hidden date or verify the server’s restriction. It consumes an already supplied household model. Acceptance should include the current service’s restricted projection and the UI’s handling of it, so a hidden field does not cause a misleading prompt or accidental replacement. Those authoritative and rendered boundaries were not executed by the JVM predicate cases.
Separate an automatic offer from a later resume card
The Android shouldStart helper requires an incomplete profile, no deferral and no previous offer in the supplied process state. Its existing case checks the positive offer and the deferral, already-offered and complete-profile refusals. A separate helper shows the finish card only when setup was deferred and the profile remains incomplete.
The selected navigation source loads the household, checks that policy, marks the process offer and navigates to setup. The container stores the deferral flag and resets it during account wiping. Those are inspected integration points. The pure tests do not establish exactly-once navigation across every recreation, durable preference writes or behaviour when account changes and asynchronous household loads overlap.
Make Later and finishing express the loaded profile state
In the inspected Android screen, Later records deferral and closes the flow. Finishing consults the currently loaded household: if the profile remains incomplete, the finish card remains eligible; when household state is not ready, the selected source preserves deferral rather than assuming completion. These screen actions were source-reviewed rather than clicked.
The inspected iOS view similarly retains a resume path when the model reports onboarding incomplete. That does not establish full cross-platform parity of lifecycle, persistence or navigation. A practical product acceptance set should cover skipping every step, returning after a failed save, loading/error states and resuming after an external identity scan without losing the intended place.
Count the steps that are actually visible
The selected Android flow has About, Family and Clinics steps, with Identity inserted when offered. Existing cases verify both lists, forward/back navigation and progress positions for the three-step and four-step versions. A fallback case checks that a nonlisted Identity step does not crash position calculation.
The native screen holds the step ordinal and retains the identity offer once it has appeared, so later status changes need not unexpectedly remove the step from Back navigation. The inspected iOS view also keeps an offered identity step during its flow. Neither source inspection establishes rendered progress accessibility or every restoration case. Missing-step fallback details should be reviewed per platform rather than assumed identical.
Offer a clinic review task from its own status
The Android existing cases offer identity review for nothing-submitted and rejected states, and skip submitted, clinic-reviewed, unknown future, loading, failed and absent states. Another case covers the unavailable-feature state: skipped normally, but offered in the selected demo mode. The portable Swift case checks the corresponding known status decisions and absent status.
This is a decision about showing an optional task. Submitted evidence is not a clinic review decision, and a clinic review is not government identity verification. Unknown future states need an explicit compatibility policy. The tests establish the selected offer decisions; they do not verify a person, authorize record access or demonstrate that a real clinic has completed a review.
Preserve write authority after a prompt is shown
The inspected Android About screen uses separate editability conditions involving managed state, active status, restrictions and existing record links. It constructs a patch and handles save failure separately from navigation. A prompt being visible therefore does not itself establish permission to rewrite all identity fields. Those editing branches were not executed in this batch.
Likewise, adding family members, opening an identity scan and finding a clinic lead into their own workflows. Do not turn completion of a guided checklist into consent to every later operation. Review current authoritative access checks and user confirmation for each resulting write, then test the rendered result with controlled synthetic accounts.
Bound status refresh without changing review authority
Two additional portable Swift cases cover selected status and compatibility behaviour. A synthetic rejected response retains its reason and facility context; an unknown future status remains unknown, and a selected missing status decodes to none. The tested submitted state is not immediately resubmittable. The polling predicate accepts a selected short elapsed value and refuses a later one, reviewed state and absent state.
The inspected helper defines a twenty-second interval and a ten-minute maximum for submitted-status refresh. These pure elapsed-value checks do not run a real timer or guarantee a clinic decision within that window. A separate fake GET returning 404 maps to unavailable; the source also names other compatibility statuses that were not exercised by that case. A hidden entry point, a stopped poll and a reviewed response have different meanings from completed identity authentication or current record permission.
An onboarding acceptance package for product and engineering
Retain the thirteen scoped cases with the pinned source and add native navigation tests for Later, process recreation, account changes and in-flight household refreshes. Verify restricted projections, skipped steps, identity-review state changes and local persistence independently. Include accessibility and language review for progress and status wording rather than treating a list of enum values as a finished user experience.
For a CEO or CTO, the result is a clearer product contract: setup offers help with missing profile information, respects restricted visibility, allows deferral and routes optional clinic review according to its own status. The selected tests establish those local decisions. A complete onboarding acceptance still needs actual screens, current server authority and controlled device lifecycle evidence.
Compare the reviewed boundaries
A setup decision should preserve the reason behind each state
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Situation | Selected local decision | Separate acceptance |
|---|---|---|
| Restricted household/person | Do not infer missing profile from hidden date | Current server projection and UI visibility |
| Incomplete and Later selected | Suppress automatic offer; allow finish card | Persistence and account-switch lifecycle |
| Identity submitted/reviewed | Skip a new offer under selected policy | Actual clinic review and record authority |
| Optional Identity step | Adjust list, navigation and progress counts | Rendered accessibility and restoration |
| Review-status refresh | Selected decode/poll predicate and fake 404 cases | Actual timer, compatibility errors and authoritative reviewer state |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
if household_restricted or self_person_restricted:
return no_missing_profile_prompt
incomplete = missing_self_or_selected_profile_fields
auto_offer = incomplete and not deferred and not offered_this_process
resume_card = incomplete and deferred
# Identity-review offers use their own server status and feature policy.About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗