Skip to content

TL-20 | Driver sees the registered address for the assigned job #40

Closed

Description

@SJAryan

A (view) with D (driver screen) • P0 • Demo step 5: "The driver screen shows the address and the job."

driver_jobs carries householdId, route, asset, ETA and status, but no address. The address only lives in the private profile row from enrollPreparedness (TL-09), which only the resident and coordinators can read. As a result, the driver phone can show "H17: deliver BAT-01" but not where to go.

  • A: expose the delivery address (and backup device, which is useful for the swap) of the household on a job, to that job's assigned driver only, while the job is active. Either add columns to driver_jobs or add a driver_stops view. Never expose the medical need text or any contact details. A household without a profile shows "No address on file; call the coordinator."
  • D: show the address and device on the live driver phone job card.

Done when Ana's phone shows H17's synthetic address after reserve, Ben's session and a session without a role can't read it, and it disappears from Ana's view after release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions