Skip to content

Wire GovernanceWidget runtime to GoodDaoHouses#77

Draft
L03TJ3 with Copilot wants to merge 4 commits into
mainfrom
copilot/plan-wire-governancewidget-to-gooddaohouses
Draft

Wire GovernanceWidget runtime to GoodDaoHouses#77
L03TJ3 with Copilot wants to merge 4 commits into
mainfrom
copilot/plan-wire-governancewidget-to-gooddaohouses

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Implements the reviewed GovernanceWidget plan by adding a real app-level runtime boundary for GoodDaoHouses membership, onboarding, dashboard, and Alignment voting states. The widget remains mockable for Storybook/Playwright while keeping contract and SDK logic out of presentational cards.

  • Runtime adapter + SDK layer

    • Added governance contract ABIs, Celo constants, address resolution, viem client helpers, member mappers, GoodID verification, and transferAndCall registration helpers.
    • Added useGovernanceAdapter with mockable adapter-factory contract.
  • App-level GovernanceWidget

    • Composes header, dashboard, onboarding, pending Alignment, restake, unsupported-chain, friendly error, active-member footer, and placeholder vote detail routes.
    • Preserves existing card/onboarding visuals; only adds runtime props/callbacks where needed.
  • Governance flows

    • Loads membership/identity/chain state through the adapter.
    • Routes non-members into onboarding.
    • Gates House of Alignment selection through disabled house options.
    • Shows already-voted and empty-recipient states instead of ballot edit/update affordances.
  • QA coverage

    • Added deterministic Storybook runtime fixtures for disconnected, loading, onboarding, pending, active, voting, already-voted, closed/executed, empty recipients, mocked pool, unsupported-chain, restake, and friendly error states.
    • Added Playwright runtime smoke coverage and screenshot evidence for those states.
<GovernanceWidget
  provider={provider}
  adapterFactory={mockGovernanceAdapterFactory}
  defaultTheme="dark"
/>

Copilot AI linked an issue Jul 8, 2026 that may be closed by this pull request
7 tasks
Copilot AI and others added 3 commits July 8, 2026 19:18
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Co-authored-by: L03TJ3 <6606028+L03TJ3@users.noreply.github.com>
Copilot AI changed the title [WIP] Wire GovernanceWidget functionality to GoodDaoHouses Wire GovernanceWidget runtime to GoodDaoHouses Jul 8, 2026
Copilot finished work on behalf of L03TJ3 July 8, 2026 19:27
Copilot AI requested a review from L03TJ3 July 8, 2026 19:27
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] Wire GovernanceWidget functionality to GoodDaoHouses

2 participants