Skip to content

Add iframe/webview bridge package and runnable Expo demo - #1

Open
sirpy wants to merge 2 commits into
mainfrom
feat/bridge-webview-iframe
Open

Add iframe/webview bridge package and runnable Expo demo#1
sirpy wants to merge 2 commits into
mainfrom
feat/bridge-webview-iframe

Conversation

@sirpy

@sirpy sirpy commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a new @goodwidget/bridge package with a unified iframe/webview EIP-1193 transport, provider injection (window.ethereum + window.goodWidget.provider), EIP-6963 announce/discovery, host router helpers, and an EmbeddedWidget React wrapper
  • update @goodwidget/core host/provider resolution to auto-attempt embedded bridge handshake, detect bridge providers first, and prefer bridge over explicit provider when both are present
  • upgrade examples/docs with runnable integration patterns: new React-web iframe tab, HTML iframe instructions, and a live Expo webview-bridge screen driven by a new single helper createWebViewBridgeConfig({ provider, sendToWebView })

Test plan

  • pnpm install --no-frozen-lockfile
  • pnpm -w run build
  • Expo demo dependencies installed (react-native-webview, @goodwidget/bridge) and route wired (/webview-bridge)
  • Run pnpm run android in examples/expo and validate live WebView bridge interactions on device/emulator

Made with Cursor

sirpy added 2 commits March 25, 2026 20:36
Introduce a unified @goodwidget/bridge package with iframe/webview transport, EIP-6963-compatible injection, and host helpers, then wire core provider detection to prefer bridge providers for embedded apps. Upgrade examples and docs to include runnable iframe/webview integration patterns and a live Expo WebView bridge screen.
Include the outstanding README formatting tweaks, detect.ts formatting changes, and Expo local settings update so the branch matches the current working tree.
@sirpy

sirpy commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@L03TJ3 This is important for our apps directory. can you promote it as a bounty?

goodbounties-nanoclaw-agent Bot added a commit that referenced this pull request Aug 31, 2026
…ility + cover scorecard label fixes

Fix #4 investigation: the G$ Volume chart's secondaryYAxis mechanism (in
LineAreaChart, present since #179) already computes each axis's scale
independently from only its own series' values, so a large magnitude gap
between one-time deposits and streamed G$ doesn't flatten the streamed line.
Confirmed this against a fixture shaped after real production data pulled
from the live AntSeed Worker (sparse deposit spikes up to ~40x the streamed
band) — both lines render clearly distinguishable on their own axes. No
LineAreaChart or dashboard code change was needed; the deliverable is the
new "RealisticVolume" QA fixture plus a Playwright assertion so this stays
covered going forward instead of relying on the smooth demo/live ramp.

Also retrofits the live-state spec with text assertions for fixes #1-#3's
renamed scorecard labels and sub-line, which had been verified visually but
not covered by the Playwright spec, and refreshes all baseline screenshots
to reflect the new label copy.

Co-Authored-By: Claude <noreply@anthropic.com>

On-Behalf-Of: BountyCoder[onecli] (yaskkeryodtdijpv)
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