You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Historical credit section: backend-driven list with mandatory source filter (deposit | streamUpdate | streamRequest | streamCron) where streamCron is excluded by default until explicitly selected.
Behavior must align with existing AI credits widget journey and include loading/empty/error states for each data block.
Routing/action stubs are acceptable where parent issue explicitly allows TODO wiring.
Confirm backend contract/API updates required for historical-credit source filtering and default streamCron exclusion; reconcile with latest local backend project changes before implementation.
Define component split:
Keep AI-credit-management-specific blocks in packages/ai-credits-widget.
Promote only broadly reusable primitives (if any) to packages/ui.
Prepare Storybook stories (custodial/non-custodial) for each major section/state and Playwright smoke flows/screenshots under tests/widgets/ai-credits-widget/.
Validate implementation plan against acceptance criteria and request human review before removing [DRAFT].
[PLAN] AI Credits management widget for issue #61
Parent issue: #61
Required states, flows, and behaviors
Buy/Add creditbutton (onclick TODO route to add-credit widget).Update flowaction.deposit | streamUpdate | streamRequest | streamCron) wherestreamCronis excluded by default until explicitly selected.Execution plan
GoodDollar/GoodWidget:packages/ai-credits-widget/**(existing flow, adapter/runtime contract)packages/claim-widget/**(layout/flow patterns)packages/ui/**(tokens, reusable primitives)packages/core/**andpackages/embed/**(provider/embed boundaries)examples/storybook/src/stories/**and fixtures underexamples/storybook/src/fixtures/**tests/widgets/ai-credits-widget/**for smoke coverage shapeGoodDollar/GoodWalletGoodDollar/GoodProtocolUIstreamCronexclusion; reconcile with latest local backend project changes before implementation.packages/ai-credits-widget.packages/ui.tests/widgets/ai-credits-widget/.[DRAFT].acceptance criteria
[DRAFT][PLAN]) and linked to parent AI Credits Widget: Buy AI coding credits with G$ #61.streamCronis not shown by default.packages/ai-credits-widgetvspackages/ui).human-reviewer checklist
streamCrondefault exclusion are captured.