-
Couldn't load subscription status.
- Fork 51
Move Windows speed-up prompt from onboarding to main window load and update its trigger logic #1921
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
base: trunk
Are you sure you want to change the base?
Move Windows speed-up prompt from onboarding to main window load and update its trigger logic #1921
Conversation
…update trigger logic
601b318 to
71f3380
Compare
📊 Performance Test ResultsComparing 0c65467 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
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.
LGTM and worked as described
I wonder if we should add a third option or a checkbox to "don't ask me again"
We don't have metrics for this, as far as I know, and I imagine most users would be willing to add that permission, but for the ones that don't want to, it can be annoying to get asked on every update (every 2 weeks approx.)
What do you think?
|
Thank you for the review, Bernardo!
Yes, I think that's a good point. I will take a look at it. |
I have made the changes and added related unit tests as well. |
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.
Thanks for addressing the changes and adding unit tests!
LGTM 👍
Wasn't the main motive to let the user dismiss it, but only until the app is updated to a newer version? |
|
Adding to the previous comment: Studio doesn't check whether the real-time protection exclusion rule exists, so without the "Don't Ask me again" option, it would also display to users who already added the exclusion, correct? |
Related issues
Proposed Changes
The goal of this PR is to make the "Windows speed-up" prompt display on app start after each version update, unless the user has already confirmed the prompt.
PromptWindowsSpeedUpResultfrom'yes' | 'no'to→ this will ensure we can record on which app version the prompt has been triggered
promptWindowsSpeedUpResultformat to ensure the prompt won't trigger if the user already accepted itTesting Instructions
On Windows:
appdata-v1.jsonfile for editing (e.g. by runningnotepad "$env:APPDATA\Studio\appdata-v1.json"in PowerShell).Want to speed up site creation?prompt displays, clicking:Sounds good, do it for meoption should record the following in theappdata-v1.json:I'm to interestedoption should record the following in theappdata-v1.json:appdata-v1.jsonfile).a) if the
appdata-v1.jsonfile does not include thepromptWindowsSpeedUpResultrecord, the prompt should open automaticallyb) if the
appdata-v1.jsonfile includespromptWindowsSpeedUpResultin the old format and:"promptWindowsSpeedUpResult": 'no',, the prompt should open automatically"promptWindowsSpeedUpResult": 'yes',, the prompt should not openc) if the
appdata-v1.jsonfile includespromptWindowsSpeedUpResultin the new format and:responsevalue isnoand theappVersionis different from the current app version, the prompt should open automaticallyresponsevalue isnoand theappVersionis the same as the current app version, the prompt should not open automaticallyresponsevalue isyes, the prompt should not open regardless of theappVersionpromptWindowsSpeedUpResultvalue in theappdata-v1.json. ThedontAskAgaincheckbox should not render in this case.On macOS:
Pre-merge Checklist