-
Notifications
You must be signed in to change notification settings - Fork 364
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: [M3-7138] - Fix Create Volume Drawer static pricing copy and misplaced helper text #9683
fix: [M3-7138] - Fix Create Volume Drawer static pricing copy and misplaced helper text #9683
Conversation
{resize || isFromLinode ? ( | ||
'The size of the new volume in GB.' | ||
) : ( | ||
{resize || isFromLinode ? null : ( |
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.
This change was also made in the big Volumes refactor PR.
I don't see reason why we'd want to keep this text; it was not displaying in the correct place in the drawers.
I also updated the name to priceDisplayText
because legacyHelperText
felt misleading. We still want the price to display, even after DC pricing changes, as long as a region is selected.
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.
Agreed. I must have missed this one when working on volumes.
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.
Great catch! Looking good
Tested copy and display on the linode storage tab and volume creation with and without the flag.
{resize || isFromLinode ? ( | ||
'The size of the new volume in GB.' | ||
) : ( | ||
{resize || isFromLinode ? null : ( |
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.
Agreed. I must have missed this one when working on volumes.
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.
Looks good! Thanks for breaking out this fix into its own PR!
Description 📝
This PR cleans up some copy for static Volume pricing ($0.10/GB per month) that was previously missed when creating a volume from a Linode's Storage tab. It also corrects a bug with the size field helper text related to when it should display.
These issues were found/fixed in #9601, but due to that PR's size and amount of refactoring, should be fixed in their own PR.
Preview 📷
How to test 🧪
Check out this PR.
http://localhost:3000/linodes/{id}/storage
and click the Create Volume button.http://localhost:3000/linodes/{id}/storage
.The Create Volume Drawer relies on
getDynamicVolumePrice
, which already has a unit test. (yarn test getDynamicVolumePrice
)