Skip to content

feat: show individual approver weights in ApprovalBar tooltip (#394) - #549

Merged
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Peolite1:feature/issue-394-tooltip-weight
Aug 31, 2026
Merged

feat: show individual approver weights in ApprovalBar tooltip (#394)#549
thegreatfeez merged 1 commit into
Ac0rdP:mainfrom
Peolite1:feature/issue-394-tooltip-weight

Conversation

@Peolite1

Copy link
Copy Markdown
Contributor

Summary

This PR updates the ApprovalBar tooltip to show each approver's individual weight contribution alongside their truncated address (e.g., "GABC...1234 · weight 5"). Since owners in weighted governance can have varying voting weights, this change makes it clear exactly how much voting power each approval contributes toward the quorum.

To support this:

  • Added getApproverWeight to contract.ts to fetch individual weights safely.
  • Updated useContract.ts to query and attach the approver weights alongside the proposal's approverAddresses.
  • Passed the approverWeights down through ProposalCard and ProposalDetailPage to ApprovalBar.
  • Updated ApprovalBar to restore the dot layout and display both the address and weight in the native hover tooltip.

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor

Related Issue

Closes #394

Testing Checklist

  • Existing tests pass locally
  • New tests added to cover this change (where applicable)
  • Manually verified the change works as expected
  • Lint / type checks pass

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Peolite1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@Peolite1 is attempting to deploy a commit to the thegreatfeez's projects Team on Vercel.

A member of the Team first needs to authorize it.

@thegreatfeez
thegreatfeez merged commit 1fa0c8f into Ac0rdP:main Aug 31, 2026
1 check failed
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.

Update ApprovalBar's tooltip to show each approver's individual weight contribution alongside their address

2 participants