Skip to content

Polish storybook interaction and presentation - #232

Closed
jdjioe5-cpu wants to merge 1 commit into
GoodDollar:mainfrom
jdjioe5-cpu:fix-issue-64
Closed

Polish storybook interaction and presentation#232
jdjioe5-cpu wants to merge 1 commit into
GoodDollar:mainfrom
jdjioe5-cpu:fix-issue-64

Conversation

@jdjioe5-cpu

Copy link
Copy Markdown

Resolves #64. Adds Theme controls to all stories.

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.

🟡 Changes recommended

It introduces a JSX compile error (duplicate prop) and some of the new theme controls are not actually wired through in mocked SuperfluidCampaign stories / deterministic GoodReserve stories.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR addresses #64 by expanding Storybook story interactivity, adding standardized Theme + “brand preset” controls and wiring those controls through to multiple widget showcase/QA stories.

Changes:

  • Introduces defaultTheme and brandPreset controls across several Storybook stories (QA + showcase).
  • Threads defaultTheme/themeOverrides through story helpers to support host-branding demonstrations.
  • Updates GoodReserveWidget stories to apply themeOverrides consistently across deterministic and interactive variants.
File summaries
File Description
examples/storybook/src/stories/superfluid-campaign-widget/SuperfluidCampaignWidgetQA.stories.tsx Adds Theme + brand preset controls and passes them into QA fixture stories.
examples/storybook/src/stories/helpers/superfluidCampaignWidgetStories.tsx Extends helper story props to carry theme settings through mocked/runtime shells.
examples/storybook/src/stories/helpers/aiCreditsWidgetStories.tsx Adds theme props to helper shells and forwards them into AiCreditsWidget instances.
examples/storybook/src/stories/governance-widget/GovernanceWidgetShowcase.stories.tsx Adds brand preset control and applies themeOverrides to showcase flows.
examples/storybook/src/stories/governance-widget/GovernanceWidgetQA.stories.tsx Adds Theme + brand preset controls to QA stories and forwards overrides into runtime fixtures.
examples/storybook/src/stories/goodreserve-widget/GoodReserveWidget.stories.tsx Adds Theme + brand preset controls and applies overrides to all reserve widget story states.
examples/storybook/src/stories/ai-credits-widget/AiCreditsWidgetShowcase.stories.tsx Adds Theme + brand preset controls and forwards overrides into showcase stories.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +168 to 171
<RuntimeStory defaultTheme={args.defaultTheme} themeOverrides={brandPresetOverrides(args.brandPreset)}
useInjectedProvider
defaultTheme="light"
state={createState('active_alignment', {
Comment on lines 38 to 45
const renderStory = (
mockState: Story['args']['mockState'],
mockState: any,
dataTestId: string,
defaultTheme?: 'light' | 'dark',
themeOverrides?: import('@goodwidget/core').GoodWidgetThemeOverrides
) => (
// <div data-testid={dataTestId} style={{ width: 390 }}>
<GoodReserveWidget provider={provider} mockState={mockState} defaultTheme={defaultTheme} />
// </div>
<GoodReserveWidget provider={provider} mockState={mockState} defaultTheme={defaultTheme} themeOverrides={themeOverrides} />
)
Comment on lines +33 to 37
defaultTheme?: 'light' | 'dark'
themeOverrides?: import('@goodwidget/core').GoodWidgetThemeOverrides
initialView?: SuperfluidCampaignView
leaderboardScenario?: MockLeaderboardScenario
programSupTotalsScenario?: MockProgramSupTotalsScenario
@L03TJ3

L03TJ3 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Your submission is not accepted and was already closed. the bounty is already resolved and having follow-up items
they go through our goodbounties flow. we don't accept pull-request when not assigned hte original issue

@L03TJ3 L03TJ3 closed this Sep 8, 2026
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.

[GoodBounty]: Polish storybook interaction and presentation

3 participants