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

show modal with impacted proposals when changing voting duration #148

Merged
merged 9 commits into from
Dec 11, 2024

Conversation

petersalomonsen
Copy link
Collaborator

@petersalomonsen petersalomonsen commented Dec 1, 2024

  • Removes the current list of affected proposals, that is updated as you type
  • Adds a when clicking the "Submit request" button ( and only if there are proposals that will be affected by the voting duration change )
  • Shows expired proposals that become active when extending duration days
  • Shows pending proposals that will follow the new voting duration ( without expiring or becoming active )
voting--duration-popup-with-changes.mp4

resolves #145

@petersalomonsen
Copy link
Collaborator Author

@ori-near @FREZZZBE See the video above. Regarding the list of impacted proposals. Do you think it should show all pending proposals, or just the ones that will move from pending->expired or expired->pending? Right now it only shows those that will change expired/pending state, while there is still a count ( in the first bullet ) of how many proposals that will follow the new policy without changing state.

@petersalomonsen
Copy link
Collaborator Author

@race-of-sloths include

@race-of-sloths
Copy link

race-of-sloths commented Dec 2, 2024

@petersalomonsen Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
Do you want to apply for monthly streak? Get 8+ score for a single PR this month and receive boost for race-of-sloths!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@Megha-Dev-19 5

Your contribution is much appreciated with a final score of 5!
You have received 69 (50 base + 15 weekly bonus + 5% lifetime bonus) Sloth points for this contribution

@Megha-Dev-19 received 25 Sloth Points for reviewing and scoring this pull request.

Another weekly streak completed, well done @petersalomonsen! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

@petersalomonsen petersalomonsen marked this pull request as ready for review December 2, 2024 21:32
Copy link
Collaborator

@Megha-Dev-19 Megha-Dev-19 left a comment

Choose a reason for hiding this comment

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

LGTM

box-shadow: none;
`;

return { Modal, ModalBackdrop, ModalContent, ModalDialog, ModalHeader };
Copy link
Collaborator

Choose a reason for hiding this comment

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

just FYI, we also have this library

@Megha-Dev-19
Copy link
Collaborator

@race-of-sloths score 5

@ori-near
Copy link

ori-near commented Dec 4, 2024

@ori-near @FREZZZBE See the video above. Regarding the list of impacted proposals. Do you think it should show all pending proposals, or just the ones that will move from pending->expired or expired->pending? Right now it only shows those that will change expired/pending state, while there is still a count ( in the first bullet ) of how many proposals that will follow the new policy without changing state.

Thank you @petersalomonsen ... we're getting super close, just have a couple of formatting fixes. Can you please bold "Pending Requests" and "Expired Requests" and also remove "Impacted Requests" bullet and create a Summary of Changes header in a separate line under underneath. Also would be great if we can add the warning icon.

See reference:

Screenshot 2024-12-03 at 17 25 36

@petersalomonsen
Copy link
Collaborator Author

@ori-near @FREZZZBE See the video above. Regarding the list of impacted proposals. Do you think it should show all pending proposals, or just the ones that will move from pending->expired or expired->pending? Right now it only shows those that will change expired/pending state, while there is still a count ( in the first bullet ) of how many proposals that will follow the new policy without changing state.

Thank you @petersalomonsen ... we're getting super close, just have a couple of formatting fixes. Can you please bold "Pending Requests" and "Expired Requests" and also remove "Impacted Requests" bullet and create a Summary of Changes header in a separate line under underneath. Also would be great if we can add the warning icon.

See reference:

Screenshot 2024-12-03 at 17 25 36

I've made the adjustments @ori-near @FREZZZBE Now it looks like this:

image

I also notice that the table has a different look and feel in your reference image. Should I look into that as part of this PR, or should we follow up that separately and create a standard table style across the portal?

@ori-near ori-near merged commit 6872aee into main Dec 11, 2024
20 checks passed
@ori-near ori-near deleted the feat/change-voting-duration-modal branch December 11, 2024 17:18
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.

[Task] Show affected proposals in a popup when changing voting duration
4 participants