Open
Conversation
Add browser-based data scraping flow to the connect page: - Embrowse postMessage protocol (Plaid Link/Stripe Elements pattern) - Mock embrowse HTML for demo/testing - useEmbrowse hook for popup lifecycle management - ConnectEmbrowseState + ConnectCompleteState UI states - ?web=1 query param to opt into web flow (vs desktop deep link) - /dashboard route showing connected data sources and granted apps Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
f3d3fed to
1257a5c
Compare
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.
Summary
?web=1query param opts into web flow instead of desktop deep link handoff/dashboardroute shows connected data sources and granted apps from the Personal ServerNew files
connect/src/app/_lib/embrowse-protocol.ts— postMessage protocol (parent↔child)connect/src/app/_lib/use-embrowse.ts— React hook for popup lifecycleconnect/src/app/(handoff)/dashboard/— dashboard page (P1: connected data + apps)connect/public/mock-embrowse.html— mock scraper for demo/testingTest plan
/connect?sessionId=test&web=1— should show embrowse flow after auth/dashboard/dashboard?serverUrl=http://localhost:8080shows data scopes and grants from PS?web=1, existing desktop deep link flow unchangedRelated
🤖 Generated with Claude Code