Skip to content

Enforce draft-plan gate for AI Credits Widget issue before implementation#35

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/add-ai-credits-widget
Closed

Enforce draft-plan gate for AI Credits Widget issue before implementation#35
Copilot wants to merge 1 commit into
mainfrom
copilot/add-ai-credits-widget

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown

This issue is a planning artifact ([DRAFT][PLAN]) for the AI Credits Widget, not an execution ticket. The required states/flows are already captured in the issue body; implementation should start only after draft removal per repository workflow.

  • Scope handled

    • Confirmed no widget/package code was introduced while the issue remains in draft state.
    • Kept parent/plan boundaries intact (no mutation of planning content).
  • Workflow correction applied

    • Added a blocking clarification comment on the issue requesting promotion from [DRAFT][PLAN] to an executable plan state before coding.
  • Net repository impact

    • No source, test, or config files changed.
    • PR branch remains code-identical; only issue-thread coordination was updated.
Thanks — I reviewed this assignment and noticed the issue is still marked as **[DRAFT][PLAN]**...
Please confirm when this plan is approved and promoted to a non-draft execution issue...

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/GoodWidget/GoodWidget/examples/storybook/node_modules/.bin/../storybook/bin/index.cjs dev -p 6006 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@github-project-automation github-project-automation Bot moved this to Prepare AI Task in GoodBounties May 19, 2026
Copilot AI linked an issue May 19, 2026 that may be closed by this pull request
10 tasks
Copilot AI changed the title [WIP] Add UI implementation for AI Credits Widget Enforce draft-plan gate for AI Credits Widget issue before implementation May 19, 2026
Copilot finished work on behalf of sirpy May 19, 2026 16:19
Copilot AI requested a review from sirpy May 19, 2026 16:19
@sirpy sirpy closed this May 20, 2026
@sirpy sirpy deleted the copilot/add-ai-credits-widget branch May 20, 2026 08:01
@L03TJ3 L03TJ3 removed this from GoodBounties May 22, 2026
Ryjen1 pushed a commit to Ryjen1/GoodWidget that referenced this pull request Jun 6, 2026
… typed seam

Replace the dynamic Function-based loader with a typed lazy import() of
@goodsdks/good-reserve (declared as an optionalDependency, since it is not yet
published). The seam in sdk.ts mirrors the real PR GoodDollar#35 public surface
(GoodReserveSDK / ReserveStats / ReserveTransactionResult), so every adapter
call site is type-checked against the actual contract instead of a loose shadow
type.

- Wire the onHash callback on buy/sell so swap_pending surfaces the submitted
  tx hash before the receipt resolves; read result.hash.
- Scale exitContribution from parts-per-million (/10_000) per the Mento
  convention, instead of the previous incorrect * 100.
- Re-validate the wallet's current chain via a live eth_chainId read before
  signing, rather than trusting the memoized chain flag.
- Guard the empty-input quote effect so it cannot clobber terminal swap states
  (success/error/pending) back to idle.
- Broaden mapReserveError to cover network/timeout/rejection and sanitized
  revert reasons, matching citizen-claim-widget's coverage.
- Add a deterministic fake SDK + EIP-1193 test provider and an injection seam,
  plus a LiveFakeSdk story and a Playwright test that drives the full real
  adapter flow (quote -> confirm -> buy -> success with tx hash) with no
  published SDK and no live RPC. The harness clears the injected fake on unmount.

All 17 widget Playwright tests pass; build and lint clean.
@Ryjen1 Ryjen1 mentioned this pull request Jun 6, 2026
17 tasks
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.

[PLAN] AI Credits Widget: buy developer AI credits with G$

3 participants