Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions components/dashboard/src/settings/Plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,7 @@ export default function () {
</Tooltip>
{typeof accountStatement?.remainingHours === "number" &&
typeof currentPlan.hoursPerMonth === "number" ? (
<progress
value={currentPlan.hoursPerMonth - accountStatement.remainingHours}
max={currentPlan.hoursPerMonth}
/>
<progress value={accountStatement.remainingHours} max={currentPlan.hoursPerMonth} />
Copy link
Contributor

@gtsiolis gtsiolis May 3, 2022

Choose a reason for hiding this comment

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

suggestion: I was thinking we could a) make this more useful for the upcoming usage-based pricing, b) keep the existing approach, c) add some clarity to the copy, d) avoid the negative aspects that could be attached with the draining hours progress, e) improve accessibility on this area with removing the tooltip used here by making this look like the following:

BEFORE AFTER
usage-before usage-after

What do you think? Cc @jankeromnes since we've worked together in the initial implementation in #3550.

) : (
<progress value="0" max="100" />
)}
Expand Down