Repository navigation
TL-20: driver sees the delivery address until release (A view + D phone) - #54
Merged
Merged
Conversation
A (view): driver_stops gives a driver the address and backup device of each of their jobs in their incident, until a coordinator releases it. Never the medical need or contact details. A household without a profile returns onFile false with empty fields. D (driver phone): the live job card shows Address and Equipment, or "No address on file; call the coordinator." It hides after delivery. Proof (local SpacetimeDB): check:tl20 passes (Ana sees H17's synthetic address after reserve; Ben, the resident, the coordinator and a no-role session see nothing; gone after release; H22 shows onFile false). check:tl05/06/09/11/15/18 still pass. Driver phone checked in Chrome. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #40. Both halves of TL-20: A's view (done by D with Ira's OK) and D's driver phone.
A —
driver_stopsview (spacetimedb/src/index.ts){ jobId, householdId, onFile, address, backupDevice }for each of their own jobs in their incident, until a coordinator releases it.profile.onFile: falsewith empty fields.driver_jobsis unchanged, so existing clients and checks are unaffected.D — live driver phone (
src/live/LivePhone.tsx)Check:
npm run stdb:reset:local && npm run check:tl20(new)releaseJob(the job itself stays indriver_jobs).onFile: falseto Ben.Ran on a local SpacetimeDB:
check:tl20PASS;check:tl05/06/09/11/15/18all still PASS on this module. Fixtures 32/32,tscclean,npm run buildOK. Driver phone checked in Chrome for both the address card and the no-profile message.Not done: not published to Maincloud. This adds a view only (no table change), so a normal publish is enough.
🤖 Generated with Claude Code