Skip to content

Integrate AI Credits widget into GoodWallet #55

Description

@blueogin

Summary

Add @goodwidget/ai-credits-widget to GoodWallet so authenticated users can open AI Credits from the home dashboard / More drawer. Host it through the GoodWidget integration boundary merged in #54 (typed registry, authenticated bottom-sheet route, restricted EIP-1193 provider).

AI Credits should remain widget-owned for configuration, buy/credits UI, transaction state, success, and errors. GoodWallet only supplies the host surface: package install, registry entry, route/dashboard wiring, provider policy, and tests.

Context

Package status

The package is not published to npm yet. Integrate and verify against a local tarball:

# in GoodDollar/GoodWidget
pnpm --filter @goodwidget/ai-credits-widget pack

Create the plan

Create an execution plan in a new sub-issue and leave this feature request unchanged. Do not implement it until instructed.

  • Title: [DRAFT][PLAN] Prepare GoodWallet for GoodWidget integration
  • Type: Task
  • Start the description with the sub-issue title.
  • Link the sub-issue to this feature request.
  • Start from the exact reference paths and the limited PR Setup support and ci/cd handling updating and integrating verified production released widgets #51 diff above.
  • Separate reusable Wallet foundation work from a later widget-specific dependency, registry, route, icon, and test change.
  • Include only required behavior, execution steps, acceptance criteria, and a human-reviewer checklist.
  • Do not plan changes in the GoodWidget repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions