-
Notifications
You must be signed in to change notification settings - Fork 365
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
feat: [M3-8099] - Improve Linode Clone Power Off based on initial data #10508
feat: [M3-8099] - Improve Linode Clone Power Off based on initial data #10508
Conversation
@@ -197,21 +197,6 @@ describe('SelectLinodePanel (cards, mobile)', () => { | |||
).toHaveTextContent(defaultProps.linodes[0].label); | |||
}); | |||
|
|||
it('displays the heading, notices and error', () => { |
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 was a duplicate test the linter notified me of. See L99-L112.
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.
Nice and clean PR! Checks added underneath. I possibly did not test the right things?
- go to http://localhost:3000/linodes/create?type=Clone%20Linode, Change the screen to mobile view. Confirm that each linode's status is now displaying on the cards. ✅
- Select a powered on linode. Confirm that the selected card shows a Power Off button, and that clicking it powers off the linode and fires an analytics event. (❌ (maybe intentional?) it does work for both v1 and v2 flows on mobile, but on desktop the event does not fire in v2)
- Go to http://localhost:3000/linodes/create?type=Backups. (Turn the MSW on if you don't have any backups.) Change the screen to mobile view and confirm that status displays on the cards, but selecting a card of a powered on linode will not display the Power Off button. ✅
- Change the screen back to desktop view and select your powered on linode. Click the Power Off button and confirm in the browser console that is also an analytics event fired when the button is clicked in the table view. ❌ is that for Backups?? I don't see a power button at all in the backups flow)
- Observe the notice copy has switched the order of the bullets and bolded text to encourage users to read it.
- Turn on the Linode Create v2 flag in the dev tools and confirm all the above changes are also present for the new version of the create flow. ❌ see comment in bullet 2
Coverage Report: ❌ |
@abailly-akamai Thanks for the review:
This was a mistake - thank you for catching! The Power Off button has been tagged in v2 flow in a1e0053. Screen.Recording.2024-05-23.at.8.12.08.AM.mov
My bad, sorry - my testing instructions were unclear because I went back and added the bullet about Backups after the fact and put it out of order. You were observing the intended behavior - no Power Off option (or analytics) for Backups, yes Power Off option (and analytics) for Clone. This should be the case for v1 and v2 flows. I've corrected the testing instructions. |
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.
@abailly-akamai How does this alignment look? |
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 great @mjac0bs thx for the fixes - ship it 🚢 |
Description 📝
We'd like to increase the percentage of users powering down their linodes before cloning to reduce the chance of data corruption. We'd also like to capture more analytics data to find out how many users are clicking the new "Power Off" button.
Changes 🔄
Target release date 🗓️
6/10
Preview 📷
How to test 🧪
Prerequisites
(How to setup test environment)
Reproduction steps
(How to reproduce the issue, if applicable)
Verification steps
(How to verify changes)
As an Author I have considered 🤔
Check all that apply