Repository navigation
Add stops: voice Eircodes, remove Pin, Import checks addresses before adding - #7
Merged
Merged
Conversation
… before adding
- Voice: an Eircode said character by character ("P1 2 FY 70") is joined into one code ("P12 FY70"); the voice
panel uses the light theme's colours on Add stops (its grey text was unreadable there).
- Pin button removed from Add stops ("Drop pin" stays as a fix when an address is not found).
- Import rebuilt on the light theme: read the file, check every address on the map (new batch endpoint), add the
rows placed at the door on the street the file names at once, and list the rest (not found, different street or
number, area only, already added) for the rider to fix and check again, accept, or skip. A batch the server refuses
is retried row by row so only the refused rows wait.
- Backend: POST /deliveries/geocode-check-batch (up to 300, each different address looked up once, 6 at a time; a
failed lookup is reported per address). Rate limiters can count a request as several hits (cost), so a batch uses
one hit of the per-IP limit and one daily lookup per address.
- Stop cards no longer show the address twice when the map's text only differs by short forms (St / Street).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FsWYamWsagMdQ7biMYdzSN
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.
Builds on #6 (scanner). Merge #6 first; this PR's base is
scanner-address-mode, so it shows only its own changes.Why
Testing on Android showed three problems in Add stops:
P12FY70putP1 2 FY 70in the field, which the map cannot use.What changed
Voice
P1 2 FY 70,p 12 f y 7 0,P one two FY seven zero,double/triple→P12 FY70. Words around it are kept; a plain address is left as heard.Pin
Import (rebuilt)
Backend
POST /api/v1/deliveries/geocode-check-batch— up to 300 addresses, nothing saved; each different address looked up once, 6 at a time; a provider failure is reported for that address only (error: true).check(key, cost): a batch counts once against the per-IP limit and once per address against the rider's daily lookups (DB, Redis and in-memory stores).Stop cards
Church St, Co. OffalyvsChurch Street, County Offaly).Checks
npm test62 pass (new: voice, import checks, stop card text);tscandexpo lintclean.ruffclean. New teststest_geocode_check_batch_checks_every_address_once_and_saves_nothingandtest_a_batch_counts_as_many_hits_as_it_costs. Not run locally (the Prisma engine download is blocked in this environment) — CI runs them on this PR.Notes
Generated by Claude Code