-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix: ensure campaign goal progress percentage is an integer and does not exceed 100 #7740
Conversation
Honest question: Why can’t the progress percentage exceed 100%? IMHO, it would be nice to see that my campaign was a success and reached 200% of my original goal. |
@pauloiankoski that's a great question and something I contemplated myself. My thought process was that this is a high level goal progress widget that visually shows the percentage of your goal progress in relative terms to the UI (circle progress bar). Since that UI for the progress goes up to 100% (a single circle) I feel that we should only be presenting that max percentage amount. In other terms, the percentage we display is a label for the visual progress bar. This is consistent with our other goal progress bars in GiveWP. However, if the UI had a way to show progress past 100% (like extra circle rings or something), then I would agree it would be valuable to display that extra progress. There is also going to be a more full fledged reporting tab in the future that should be able to display more in-depth details about the fundraising stats. cc: @jdghinson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
@jonwaldstein Actually I did a design for this scenario, we just didn't surface it in our scope conversations. Cc: @pauloiankoski |
@jdghinson ah good to know! that's pretty consistent with my reasoning to have some kind of way to show progress past 100. However, I would still raise the question if a circle bar is even appropriate for showing values over 100 as the UI is always going to show a max of a 100 due to the nature of a circle. |
@jonwaldstein There's no UI that will well represent over 100% unless the max is infinite, which doesn't match our use case because there will always be a target goal. That's why in the design, you have the actual goal progress being represented with the percentage and number, and also a supporting text, that makes it clear that you've exceeded your target goal. |
@jdghinson Thanks for your insight. I do believe there are other forms of UI that could show progress past 100%, for example: a bar graph. However, I understand the nuance and think this is a great UX discussion to have offline from here 😄. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed manual QA tests.
Resolves GIVE-2174
Description
This updates the goal progress percentage calculation so we can goal progress is an integer and does not exceed 100.
Affects
The goal progress widget
Visuals
Testing Instructions
Zip: https://github.com/impress-org/givewp/actions/runs/13374370469
Pre-review Checklist
@unreleased
tags included in DocBlocks