Skip to content

Scan flow wait - #49

Open
austensen wants to merge 21 commits into
rh-magic-linkfrom
scan-flow-wait
Open

Scan flow wait#49
austensen wants to merge 21 commits into
rh-magic-linkfrom
scan-flow-wait

Conversation

@austensen

@austensen austensen commented Aug 14, 2026

Copy link
Copy Markdown
Member

Companion BE PR: https://github.com/JustFixNYC/auth-provider/pull/172

Wires the frontend to the new scan pipeline contract so the happy path skips in-app scan review and shows a compiling wait screen while the backend processes pages.

  • Sync OpenAPI and regenerate account API client (COMPILING, REPORT, finalize-scan, scan-pipeline-status)
  • Update analysis flow progress and historyResumePath; bootstrap redirects to /compiling when step is COMPILING or pipeline is non-terminal
  • Add CompilingWaitingPage with milestone checklist, ~1.5s pipeline polling, auto-nav on complete / needs_rescan, and FlowNav on back-navigation
  • Update scanner: happy path Dynamsoft exit → finalize-scan/compiling; rescan path keeps scan-review, failure callouts, and SkipOrRescanModal; best-effort finalize on tab hide
  • Remove magic-link test UI from AccountPage

The scanner.tx file was getting way too long and complicated, so I have also done a refactor pass to clean things up a bit - see #51 . This adds a new separate scan-review page, and more hooks to better separate out functionality like for launching and relaunching the dynamsoft scanner and navigating back and forth through the scan flow.

Error handling also added for a failed scan launch (copy and design for error message to be updated later - need to share with Corey)

The scan-review page itself is still the old version. A separate set of PRs will add the page number scan extraction, add that to the scan-review api response, and implement the new simplified ui for the page without images and with a new error message.

@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for demo-rent-history ready!

Name Link
🔨 Latest commit c1c6a85
🔍 Latest deploy log https://app.netlify.com/projects/demo-rent-history/deploys/6a8cb28d6f22670008a0e90b
😎 Deploy Preview https://deploy-preview-49--demo-rent-history.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

austensen and others added 16 commits August 17, 2026 15:13
Refactor the scanner to create a separate scan-review page instead of using a phase screen of the scanner page. Things were getting too long and complicated in a single scanner.tsx file. Now there is also better handling of scanner launch, redirects after scanning based on intent (rescanning, adding pages, etc). (More will be done to simplify the scan-review page now that we have a new plan for the error message and prompt to scan more/rescan.) docs and tests updated as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant