Skip to content

Add governance homepage presentational components#49

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/plan-governance-homepage-components
Draft

Add governance homepage presentational components#49
Copilot wants to merge 2 commits into
mainfrom
copilot/plan-governance-homepage-components

Conversation

Copilot AI commented Jun 11, 2026

Copy link
Copy Markdown

Adds standalone governance homepage UI components for the planned Governance Widget. Scope stays presentational: mocked data, no wallet, contract, subgraph, or runtime integration.

  • Governance widget package

    • Added @goodwidget/governance-widget
    • Exports ImpactCard, BalanceCard, AlignmentVotingProposalCard, OptimisticVotingProposalCard, and FundingDistributionChart
    • Keeps governance-only helpers local to the package
  • Component coverage

    • Impact metrics with static and streaming amounts
    • Token/raw balance displays with growth or time-window metadata
    • Alignment vote cards with ranked options and capped visible rows
    • Optimistic vote cards with quorum summary, stacked vote bar, voter previews, and legends
    • Funding distribution donut chart with allocation legend and empty state
  • Demo and smoke coverage

    • Added Storybook stories under governance-widget
    • Added Playwright smoke specs and screenshot evidence under tests/widgets/governance-widget/

Example usage:

<ImpactCard
  title="Community impact this month"
  metrics={[
    { label: 'Distributed', amount: { value: 348000, token: 'G$' } },
    { label: 'Streaming now', amount: { value: 12800, token: 'G$', isStreaming: true } },
  ]}
  description="Track how governance funding turns into measurable activity."
  ctaLabel="View impact report"
/>

Copilot AI changed the title [WIP] Add governance homepage components Add governance homepage presentational components Jun 11, 2026
Copilot AI requested a review from L03TJ3 June 11, 2026 19:58
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] Governance homepage components [Feature]: Governance homepage components

2 participants