Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update "View Details and Vote" Button Text Based on User Permissions #3109

Open
3 tasks
bosko-m opened this issue Feb 28, 2025 · 0 comments
Open
3 tasks

Update "View Details and Vote" Button Text Based on User Permissions #3109

bosko-m opened this issue Feb 28, 2025 · 0 comments
Assignees

Comments

@bosko-m
Copy link
Contributor

bosko-m commented Feb 28, 2025

What

On the Governance Action list page, the "View Details and Vote" button is always displayed, even when a user does not have permission to vote. To improve clarity, the button text should change to "View Details" if the user is not allowed to vote.

Why

  • Prevents confusion for users who do not have voting permissions.
  • Improves user experience by ensuring clear and accurate UI labels.
  • Aligns button behavior with user roles and permissions.
  • Reduces potential frustration from users clicking a button expecting to vote but being unable to.

How

  • Identify the logic that controls button text rendering on the Governance Action list page.
  • Implement a condition that checks whether the user has voting permissions:
    • If the user can vote → display "View Details and Vote".
    • If the user cannot vote → display "View Details".
  • Ensure that button behavior remains unchanged aside from the text update.
  • Validate the change through UI tests to confirm correct behavior.

Acceptance Criteria

  • The button displays "View Details" if the user is not allowed to vote.
  • The button displays "View Details and Vote" if the user has voting permissions.
  • Button functionality remains unchanged apart from the text update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Status: To do
Development

No branches or pull requests

2 participants