Skip to content

feat: embrowse web flow on account.vana.org#55

Open
tnunamak wants to merge 1 commit intomainfrom
feat/embrowse-web
Open

feat: embrowse web flow on account.vana.org#55
tnunamak wants to merge 1 commit intomainfrom
feat/embrowse-web

Conversation

@tnunamak
Copy link
Member

Summary

  • Add browser-based data scraping (Embrowse) to the connect flow on account.vana.org
  • Embrowse opens as a popup using a Plaid Link/Stripe Elements-style postMessage protocol
  • ?web=1 query param opts into web flow instead of desktop deep link handoff
  • /dashboard route shows connected data sources and granted apps from the Personal Server
  • Mock embrowse HTML included for testing until Kahtaf's real Embrowse is ready

New files

  • connect/src/app/_lib/embrowse-protocol.ts — postMessage protocol (parent↔child)
  • connect/src/app/_lib/use-embrowse.ts — React hook for popup lifecycle
  • connect/src/app/(handoff)/dashboard/ — dashboard page (P1: connected data + apps)
  • connect/public/mock-embrowse.html — mock scraper for demo/testing

Test plan

  • Navigate to /connect?sessionId=test&web=1 — should show embrowse flow after auth
  • Click "Connect now" — popup opens with mock embrowse
  • Click "Simulate scrape" in popup — data POSTs to PS, popup closes, success state shown
  • "Manage account" link navigates to /dashboard
  • /dashboard?serverUrl=http://localhost:8080 shows data scopes and grants from PS
  • Without ?web=1, existing desktop deep link flow unchanged

Related

🤖 Generated with Claude Code

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]>
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
connect Error Error Mar 17, 2026 6:10am

Request Review

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