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.
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.
Agreed. I must have missed this one when working on volumes.
abailly-akamai
left a comment
There was a problem hiding this comment.
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.
Agreed. I must have missed this one when working on volumes.
bnussman-akamai
left a comment
There was a problem hiding this comment.
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}/storageand 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)