Closed
Add packages/savings-sdk and packages/savings-widget#20
Conversation
Contributor
Author
|
@sirpy Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository and had to close this PR. The error I am seeing is: Once you or someone with the necessary access fixes the problem, please unassign and then reassign issue #0 to me and I'll retry. Thanks! |
12 tasks
Agent-Logs-Url: https://github.com/GoodDollar/GoodWidget/sessions/5b38099e-9feb-4645-a798-aa29f7673927 Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
…ision fix Agent-Logs-Url: https://github.com/GoodDollar/GoodWidget/sessions/5b38099e-9feb-4645-a798-aa29f7673927 Co-authored-by: sirpy <671095+sirpy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Build packages/savings-widget for SDK integration and UI mapping
Add packages/savings-sdk and packages/savings-widget
May 4, 2026
goodbounties-nanoclaw-agent Bot
pushed a commit
that referenced
this pull request
Jul 30, 2026
…e compaction - Add prominent "Claim SUP rewards" CTA opening claim.superfluid.org in a new tab, per Meri's change request. - Add useAirdropStatus hook that fetches the connected wallet's live status from the Superfluid airdrop worker endpoint on connect/load/address-change, with loading and error states. Adds an airdropStatusAdapter DI seam (mirrors the ai-credits-widget adapterFactory convention) so Storybook/ Playwright fixtures stay deterministic instead of hitting the live network. - Mobile compaction pass: FAQ restructured into one collapsible section wrapping per-question accordion toggles, ProgressBar gains hidePercentageOnMobile to drop the redundant percentage where the bar already communicates it, ActionCard description truncates to one line on mobile, CampaignHeader title sized down on small viewports. - Extend the Playwright spec with the new CTA/airdrop-status states and regenerate all baseline screenshots (scw-01..13) against the updated UI. Leaderboard split (606/614) and campaign-level SUP totals remain blocked on cms.superfluid.pro connection registration (task #20). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
goodbounties-nanoclaw-agent Bot
added a commit
that referenced
this pull request
Jul 30, 2026
…e compaction - Add prominent "Claim SUP rewards" CTA opening claim.superfluid.org in a new tab, per Meri's change request. - Add useAirdropStatus hook that fetches the connected wallet's live status from the Superfluid airdrop worker endpoint on connect/load/address-change, with loading and error states. Adds an airdropStatusAdapter DI seam (mirrors the ai-credits-widget adapterFactory convention) so Storybook/ Playwright fixtures stay deterministic instead of hitting the live network. - Mobile compaction pass: FAQ restructured into one collapsible section wrapping per-question accordion toggles, ProgressBar gains hidePercentageOnMobile to drop the redundant percentage where the bar already communicates it, ActionCard description truncates to one line on mobile, CampaignHeader title sized down on small viewports. - Extend the Playwright spec with the new CTA/airdrop-status states and regenerate all baseline screenshots (scw-01..13) against the updated UI. Leaderboard split (606/614) and campaign-level SUP totals remain blocked on cms.superfluid.pro connection registration (task #20). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the GoodDollar savings/staking widget from scratch in GoodWidget, reimagining the reference Lit webcomponent as a React mini-app using local
@goodwidget/uiprimitives and a new viem-based SDK package.packages/savings-sdk(@goodwidget/savings-sdk)Thin viem wrapper for the GoodDollar staking contract on Celo mainnet (
0x799a23dA264A157Db6F9c02BE62F82CE8d602A45, chain id 42220). Requires viem ≥2 as a peer.GooddollarSavingsSDK—getGlobalStats(),getUserStats(),stake(),unstake(),claimReward()(all with optionalonHashcallback)GlobalStats/UserStatstypesformatG$/parseG$formatting utilitiespackages/savings-widget(@goodwidget/savings-widget)SavingsWidget— root component; wrapsGoodWidgetProviderand accepts the standardprovider,config,themeOverrides,defaultThemepropsuseSavingsSDK— bridges the EIP-1193 provider fromuseWallet()into viemPublicClient+WalletClient; polls every 30 sSavingsInner— Stake/Unstake tab UI with amount input (MAX button, balance display, inline validation), unclaimed rewards + Claim row, staking stats card, and Toast feedback for every async state transitionSavingsWidgetElement/gw-savings— Shadow DOM custom element and auto-register entry pointsAll styled components use
createComponent()with uniquenamevalues, making every surface overridable viathemeOverrides. No directtamaguiimports in the widget layer — all primitives come through@goodwidget/ui.