Skip to main content

Use the reviewed order detail contract

Driver App order detail is a stateful composition, not a passive record page. Mounting it can read order or assignment data, related business and message data, join realtime state, follow location and prepare conditional controls before the Driver selects an action.

This public contract defines responsibility and safe display only. It does not certify data currentness, group/logistics reachability, action eligibility, provider completion or deployed behavior.

Availability

Registered authenticated entry can come from an order card, history, logistics request, in-app navigation or supported opened-notification target. Ordinary, grouped and logistics detail shapes differ. A logistics-group render branch exists, but productive entry with every required group property is not proven portable.

Prerequisites

  • Authenticated Driver scope and a registered route with validated input.
  • Current order/assignment authorization on every read and mutation.
  • Synthetic/redacted display fixtures for all PII, payment and custom fields.
  • Explicit lifecycle cleanup for reads, sockets, location, messages and assets.
  • Separate task contracts for every contact, map, message, review, assignment, status, media, PIN, proof or provider action.

Responsibility boundaries

BoundaryResponsibilityLimit
Route wrapperSupply order/reference/assignment and Driver permission/action adapters.Route visibility is not authorization.
Detail controllerLoad order/assignment, business, messages and related data; manage realtime/location state.Mount is effectful and partial.
HeaderPresent reference/status/type/payment/time/priority and navigation/action icons.Presentation is not currentness or settlement.
ContentPresent custom, business/customer, products/comments, bill/payment, spot/vehicle fields.Dense PII/financial data; no correctness/share claim.
Group/logisticsRender members/assignment-specific state when shape supports it.Member state/actions are not atomic or portable.
Conditional controlsExpose task intent from status/config/permission/read state.Visibility is not eligibility or success.
APIAuthorize reads/mutations and own writes/follow-ons.Running artifact relation remains unconfirmed.

Inputs and result

Input/stateClient resultLimit
Order object suppliedCan render immediately then run related effects.Supplied object can be stale/partial.
Order reference suppliedFetch loading/content/error.Response/currentness/deployment unproven.
Assignment referenceAssignment/detail read then shared detail shape.Ownership/expiry/lock separate.
Business/customer/custom/product/bill arraysConditional sections/accordions/lines.PII/payment correctness unproven.
Socket/location/message stateLater detail updates/indicators/controls.Ordering/freshness/cleanup unproven.
Status/config/permissionConditional task controls.Server transition graph not established.

Security and privacy

  • Minimize access to identity, contact, address, coordinates, custom fields, order comments, products, payment, messages, PIN, proof and media.
  • Never copy/log/screenshot/share real detail data in diagnostics.
  • Keep contact/map/clipboard/native handoffs disabled in evidence harnesses.
  • Bind late read/socket/location results to current order/account generation.

Limits and failure states

StateMeaningMaintainer response
Loading/errorMount reads unsettled/failed.No action.
Supplied stale objectImmediate presentation before refresh.Do not call current.
Group/logistics shape partialBranch may omit/misroute member data.Keep portable claim blocked.
Header/body/realtime divergenceInputs settled at different times.Stop actions and reconcile.
Conditional control visibleClient rule passed.Server eligibility separate.
Provider/Linking/clipboard controlExternal/local handoff.Completion and privacy separate.

Troubleshooting

Diagnose route input, read ownership, generation, mount effects and visible state separately. Never open real contact/map/message/status controls to verify detail. Use synthetic ordinary/group/logistics/empty/error fixtures and an effect ledger.

Re-review whenever route inputs, mount reads, socket/location/message lifecycle, field schemas, group/logistics shape, bill/payment display or action visibility changes.

Related guides: Order details · Active delivery · Delivery history · Communication contract · Maps contract · Order mutation contract