Repository navigation
Add stops: Sheet scan β pick many Eircodes from one photo - #9
Open
alisulmanpro wants to merge 1 commit into
Open
alisulmanpro wants to merge 1 commit into
alisulmanpro wants to merge 1 commit into
Conversation
- New "Sheet" button next to Voice: one photo of a page with many Eircodes (a list, a printout, a laptop screen). Every Eircode found gets a box on just its characters; the rider taps the ones to add, or Select all, then "Add N stops". - The picked codes go through the same checks as Import (one batch lookup, duplicates on the list or in the photo, failed lookups): good ones are added at once, the rest wait on a card to fix or skip. - lib/scan/photoLines.ts: photoEircodes() finds codes printed in one piece or two, fixes the usual OCR look-alikes, lists each code once, in reading order. Tests in tests/photoLines.test.ts. - The photo scanner component now serves both Address mode and Sheet scan. 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.
Why
A rider with a printed list (or a screen) of many Eircodes should not scan or type them one by one. Asked for: a button next to Voice, take one photo of the sheet, tap the Eircodes wanted, add them as stops β the same way as the Address scan and Import.
What changed
P12FY70) or two (P12 FY70) are found; usual OCR look-alikes fixed (Y2O1βY201); a code that appears twice is listed once; reading order kept.kind="address" | "eircodes").Checks
npm test: 64 pass (new:photoEircodesβ word boxes, one-piece and two-piece codes, look-alikes, duplicates, line-box fallback).tscandexpo lintclean. JS only, no new native package (goes out over the air).Generated by Claude Code