Skip to content

fix(treasury): clarify voting ineligibility for new delegators#441

Merged
thebeyondr merged 6 commits intomainfrom
fix/voting-ineligibility-ux
Dec 15, 2025
Merged

fix(treasury): clarify voting ineligibility for new delegators#441
thebeyondr merged 6 commits intomainfrom
fix/voting-ineligibility-ux

Conversation

@thebeyondr
Copy link
Collaborator

@thebeyondr thebeyondr commented Dec 12, 2025

Description

Clarifies voting ineligibility for new delegators by replacing disabled buttons with an informative UI explaining why the user cannot vote. Restructures the widget into clear "Results" and "Your vote" sections for better visual hierarchy.

Type of Change

  • fix: Bug fix

Related Issue

Closes #301

Changes Made

  • Show "Ineligible" status instead of disabled buttons when user had no stake at snapshot
  • Hide null address delegate (0x000...0000) from UI
  • Display snapshot date in ineligibility message
  • Link to LIP-89 for stake snapshot explanation
  • Restructure widget into "Results" and "Your vote" sections for clarity
  • Use thinner, read-only styled vote bars

Testing

  • Tested locally
  • Added/updated tests
  • All tests passing

Screenshots (if applicable)

image

Checklist

  • My commits are signed (verified)
  • My commit messages follow Conventional Commits format
  • My branch name follows the naming convention
  • I have requested a review from @ECWireless
  • My code follows the project's code style
  • I have commented my code where necessary
  • I have updated the documentation if needed

- Show Ineligible status instead of disabled buttons when user had no stake at snapshot
- Hide null address delegate from UI
- Display snapshot date in ineligibility message
- Link to LIP-89 for stake snapshot explanation
- Restructure widget into Results and Your vote sections
- Use thinner, read-only styled vote bars

Fixes #301
@vercel
Copy link
Contributor

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment Dec 15, 2025 7:08pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the treasury voting widget UX by clarifying voting ineligibility for new delegators who had no stake at the proposal snapshot time. Instead of showing disabled vote buttons (which don't explain why voting is unavailable), the widget now displays an informative banner explaining the eligibility requirements and linking to documentation about stake snapshots. The component is also restructured with clear "Results" and "Your vote" sections for better visual hierarchy.

Key Changes

  • Replaced disabled vote buttons with an informative ineligibility banner that explains snapshot-based voting requirements and links to LIP-89 documentation
  • Restructured widget into distinct "Results" and "Your vote" sections with uppercase section labels
  • Filtered out null address delegates (0x0...0) from the UI display

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ECWireless ECWireless moved this from Backlog to In Review in Explorer Revamp Dec 14, 2025
Copy link
Collaborator

@ECWireless ECWireless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically LGTM! Just left a couple nits. Your code comments were also super helpful

@github-project-automation github-project-automation bot moved this from In Review to Todo in Explorer Revamp Dec 14, 2025
… improve accessibility

- Introduced useMemo for calculating user vote status to optimize performance.

- Removed hardcoded zero address definition and imported it from 'viem'.

- Added 'rel="noopener noreferrer"' to external link for improved security.
@thebeyondr thebeyondr merged commit 9c7e0f1 into main Dec 15, 2025
6 checks passed
@thebeyondr thebeyondr deleted the fix/voting-ineligibility-ux branch December 15, 2025 19:09
@github-project-automation github-project-automation bot moved this from Todo to Done in Explorer Revamp Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Clarify Voting Ineligibility for New Delegators

3 participants