Skip to content

feat: add ecosystem widget and shared wallet shell - #313

Draft
L03TJ3 with Copilot wants to merge 6 commits into
mainfrom
copilot/feature-ecosystem-widget-wrapper-again
Draft

L03TJ3 with Copilot wants to merge 6 commits into
mainfrom
copilot/feature-ecosystem-widget-wrapper-again

Conversation

Copilot AI commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Part of #311. Adds the ecosystem React widget and web component, composing Citizen Claim, GoodReserve, Streaming, and AI Credits with one wallet-aware shell. Includes a shared AppKit session bridge, embedded-header adaptations, consolidated primitive stories, separate live-wallet showcases and mocked QA flows, and committed Playwright screenshots.

Acceptance criteria

  • Compose enabled widgets and expose a web component.
  • Reuse the host wallet; support explicit native mode and wallet-side disconnect guidance.
  • Lazy-load the selected widget; verify disabled widget code is not requested by a production consumer.
  • Unmount inactive widgets and document transaction/progress limitations.
  • Add Storybook and mocked Playwright coverage and screenshots.
  • Verify custom RPC configuration beyond the options currently exposed by each widget (AI Credits supports custom RPC URLs; the other widgets retain their existing RPC clients).
  • Review design fidelity against Penpot and test live injected, AppKit, and native wallets; capture a real switching recording.

Verification

  • Ecosystem package build/lint and shared AppKit bridge tests passed; both affected AppKit consumer app builds passed.
  • 12 ecosystem Playwright tests, 3 production-consumer tests, 8 tagged Storybook tests, and 6 primitive Playwright tests passed. These use simulated wallet state and do not submit transactions.
  • Screenshots: tests/widgets/ecosystem-widget/test-results/ and tests/design-system/test-results/. Only the light/dark primitive screens and the captured mocked widget states are represented; live-wallet and visual design review remain outstanding.
  • Standalone TypeScript checking encounters an existing Tamagui EnsureFlexed.tsx error; AI Credits web lint reports two pre-existing unused variables. Production builds also emit dependency and large-chunk warnings.
  • CodeQL: no JavaScript alerts.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 08:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot AI changed the title [WIP] Build ecosystem widget wrapper with shared wallet Ecosystem widget wrapper — blocked Nov 13, 2026
Copilot AI requested a review from L03TJ3 November 13, 2026 08:38
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
@L03TJ3

L03TJ3 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot please align pull-request title and description with what was done in the current changeset and commit

@L03TJ3 L03TJ3 changed the title Ecosystem widget wrapper — blocked feat(ui): add ecosystem shell primitives and stories Nov 13, 2026

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please align pull-request title and description with what was done in the current changeset and commit

Updated the PR title and description to reflect commit 1b584fe and distinguish the remaining work.

@L03TJ3

L03TJ3 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot if not added, please add. if added, please make sure they are run and output playwright screenshots and are committed.

We need playwright testing to be able to see how it currently produces and looks before deciding on if we move forward building the actual widget

Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please follow up in this PR by replacing the repeated generic wallet placeholders with recognizable widget-specific icons, using close approximations of GoodWallet's icons rather than adding ...

Implemented in 8e10c2f; 21 refreshed screenshots are committed. UI build and lint passed; 14 Storybook and 5 Playwright tests passed. Full Storybook type-check still reports unrelated existing errors in DataTable, GoodReserve, and Tamagui. Only the light mobile drawer could be visually inspected here; the other screenshots need human review.

@L03TJ3

L03TJ3 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot Okay, lets try and put it together as real widget.
you can go ahead and build/setup the package and the real widget that will be shipped.

When producing tests and playwright tests, including storybook stories. please follow the structure as the other widgets and stories.

  • separate QA and fixtures/mocked flows from a testable injected/wallet-connect story
  • Reduce the primitives stories. if we want to show the separate 'ecosystem widget components' show them as one display, one story of them
  • but maybe it can just be a single full widget story as primitive, with instructions around the building blocks. either this or previous point is fine with me

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Okay, lets try and put it together as real widget.
you can go ahead and build/setup the package and the real widget that will be shipped.
...

Before wiring the wallet, can you confirm two choices? EIP-1193 has no standard disconnect, so may the wrapper show Disconnect only when the host supplies disconnectOverride? Also, should hosts explicitly identify native-wallet mode, rather than treating every supplied provider as native? The existing core cannot distinguish those cases.

@L03TJ3

L03TJ3 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@copilot it should follow the same pattern as in other widgets. when the connected wallet does not support disconnect, we show a message (like for injected wallets) to guide a user to disconnect within their own/using their wallet.

native-mode: just make it a param or something, keep it simple for now

Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
@L03TJ3 L03TJ3 changed the title feat(ui): add ecosystem shell primitives and stories feat: add ecosystem widget and shared wallet shell Nov 13, 2026

Copilot AI commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

@copilot it should follow the same pattern as in other widgets. when the connected wallet does not support disconnect, we show a message (like for injected wallets) to guide a user to disconnect withi...

Implemented in 4344399: unsupported disconnect shows wallet guidance, and nativeMode suppresses connect/disconnect controls. The focused browser tests pass with simulated wallets; live-wallet and design review remain outstanding.

This branch was successfully deployed

4 active and 1 inactive deployments
preview-ai-credits — 43443993 Deployed Nov 15, 2026 by Copilot via preview #457
preview-gooddata — 43443993 Deployed Nov 15, 2026 by Copilot via gooddata-web-preview #200
preview-superfluid-campaign — 43443993 Deployed Nov 15, 2026 by Copilot via preview #303
preview-storybook — 43443993 Deployed Nov 15, 2026 by Copilot via preview #631
internal — 43443993 Deployed Nov 15, 2026 by Copilot via authorize-gooddata-web-preview #200
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.

[Feature] Ecosystem widget wrapper: one shell, shared wallet, only enabled widgets loaded

3 participants