Skip to content

feat: build vote delegation UI#98

Open
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/vote-delegation-ui
Open

feat: build vote delegation UI#98
newmattock wants to merge 3 commits into
Invoice-Liquidity-Network:mainfrom
newmattock:feat/vote-delegation-ui

Conversation

@newmattock
Copy link
Copy Markdown

Fixes #55

Summary

  • add a governance vote delegation panel with connected/disconnected states, current delegation status, delegate and undelegate actions, and controlled voting weight
  • support Stellar G-address validation plus federation address resolution before submitting a delegate target
  • add cycle detection copy for addresses that delegate back to the connected wallet
  • add simulated governance delegation helpers and a small transaction wrapper consistent with the existing mocked governance contract layer
  • cover delegation status, federation resolution, cycle warning, delegate, and undelegate paths with focused tests
  • include the current governance Vetoed status build fix and Vitest @ alias fix

Validation

  • npm test -- src/components/tests/VoteDelegationPanel.test.tsx --reporter verbose
  • npx eslint src/components/VoteDelegationPanel.tsx src/components/tests/VoteDelegationPanel.test.tsx src/hooks/useTransaction.ts src/utils/governance.ts app/governance/page.tsx vitest.config.ts
  • npm run build
  • git diff --check
  • local smoke: HEAD /governance returned HTTP 200 on port 3019
  • in-app browser smoke: /governance exposed the Vote delegation panel

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.

Implement vote delegation UI

1 participant