The scenario: filtering can hide the choices needed to undo it
A mobile clinic directory needs more than a request builder. If a filtered page supplies the entire menu vocabulary, choosing one country can make every other country disappear from the controls. Clearing a filter can also unintentionally reset a user’s distance preference. These are client-state questions alongside the server’s search rules.
The pinned Movo-X native implementations contain separate filter, request and gallery helpers. Fourteen existing Android JVM cases and five portable Swift cases passed using invented data and an injected transport. The research did not acquire a real location, open a native screen, query actual clinics or download a photograph.
Accumulate observed choices without inventing a global taxonomy
The Android filter-options helper merges specialties, languages and countries from successive result pages. It also retains an active selection when no currently supplied card contains that value. The existing fixture first supplies multiple invented countries, then a narrower filtered page, and checks that the earlier choices remain selectable.
This is an observed-options cache, not a complete authoritative catalogue of every available clinic attribute. The helper does not prove that all matching pages have been fetched or that an earlier choice still has results. UI wording and refresh/reset policy should preserve that distinction instead of promising exhaustive directory coverage.
Clear active filters while preserving a separate radius preference
The Android cleared helper removes selected filters while keeping its radius value for future proximity use. The corresponding case checks inactive state and the retained radius. Other selected cases check the emitted search, page, specialty, language, country and positive Boolean filter fields.
These are helper outputs, not a mounted Compose state-restoration test. The source has a saver and UI/location code, but those paths were not exercised by the JVM helper cases. Process death, permission changes, restored selections and screen rotation need their own acceptance before describing filter state as durable across every app lifecycle.
Normalize selected inputs and keep the server authoritative
Android cases exercise representative invalid language/country/proximity inputs, selected case normalization, text bounds and radius clamping. The portable Swift request cases check selected text trimming, case normalization, page/radius bounds and omission of unsupported values. Each request helper constructs the supported parameter shape rather than forwarding an arbitrary settings object.
These selected fixtures do not prove that every possible direct helper input is safe or that all international text-counting semantics match across languages. Client normalization is a convenience boundary. The server parser and authoritative search still decide whether a request is accepted and what results it may return.
Keep location representation choices explicit
The inspected Android directory location helper emits selected coordinate strings rounded to two decimal places. The Swift geographic query helper in this review emits five decimal places. Existing cases check those respective representations and selected range-related inputs. They are different source choices, not evidence of identical wire requests.
Reducing coordinate precision does not establish anonymity or a fixed distance error everywhere. Neither suite requested an operating-system permission or exercised a physical/network location provider. Current permission prompts, source selection, freshness, cancellation and transmitted values need a separate native-device acceptance record.
Separate clinic and doctor endpoint filters
The Swift request suite checks that doctor queries carry only their supported server parameters. Selected clinic and bookable choices are represented as local doctor filters rather than unsupported query keys. Clinic requests have their own country and positive availability flags. The injected transport fixture records the selected list/detail destinations and response parsing.
Those tests do not establish current server availability or real authentication behaviour. An optional-auth request policy and an injected response are not observations of a signed-out or signed-in user journey through production. A contract acceptance set should verify both native builders against the actual server parser with controlled fixtures.
Select gallery URLs before asking an image loader to fetch
Android and Swift gallery cases exercise selected relative asset paths, trusted-host HTTPS values, duplicates, disallowed hosts/schemes and the selected maximum image count. The Swift decoding case also handles missing/null gallery entries before URL selection. These are URL-resolution and model observations over invented strings.
The tests do not fetch image bytes, follow redirects or verify the image loader’s cache and authentication policy. An allowed initial URL is not a complete proof of media safety or ownership. The platform’s asset-reference validator and a native client’s loading policy are separate boundaries, as discussed in the profile-editor chapter.
Represent absent and failed information without broad fallback claims
Selected Android directory cases decode rich card/detail fields, retain a rating-hidden state and distinguish an unavailable route from other failures. Another helper formats selected distance values while omitting missing or invalid ones. Those cases exercise the actual local models and pure formatters.
They do not prove that every older response remains compatible, that a malformed collection is always partially preserved or that every network failure should display an empty directory. Error handling, retry state, cached results and filter choices must be considered together in the real screen rather than inferred from a few decoder fixtures.
A practical mobile-directory acceptance package
Keep request-shape, observed-options, clear-state, coordinate-format, gallery-selection and model cases. Add cross-runtime contract fixtures for international text, actual state-restoration tests and controlled location/image-loader journeys. Verify that filtering, errors, pagination and changing permissions preserve understandable controls and never imply a complete catalogue from one page.
For a CTO or product leader, the source case makes shared contracts and platform differences visible. The selected JVM and portable Swift cases support specific local decisions. They leave current search content, complete Android/iOS parity, native accessibility, real location privacy and image delivery to independent acceptance work.
Compare the reviewed boundaries
Mobile directory evidence at separate layers
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Layer | Selected evidence | Separate acceptance |
|---|---|---|
| Filter choices | Observed-page merge and active selection cases | Complete taxonomy and real screen state |
| Query shape | Android/Swift selected normalization | Full cross-runtime/server contract |
| Coordinates | Different selected source precisions | Actual location permission and privacy |
| Gallery | Initial URL selection and limits | Image fetch, redirects and caching |
Illustrative control flow
Pseudocode summarizing the decision boundary. It is not copied production code or a deployment instruction.
options = merge_observed_values_across_pages(options, results, active_selection)
request = build_only_endpoint_supported_parameters(filters)
results = fetch_through_current_authentication_policy(request)
gallery = resolve_selected_initial_image_urls(results)
# Observed choices are not a complete taxonomy; URL selection is not image delivery.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 ↗