Add confirmation dialog before creating a new project on Planet#5909
Open
anshukaushik4700 wants to merge 2 commits intosugarlabs:masterfrom
Open
Add confirmation dialog before creating a new project on Planet#5909anshukaushik4700 wants to merge 2 commits intosugarlabs:masterfrom
anshukaushik4700 wants to merge 2 commits intosugarlabs:masterfrom
Conversation
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
Contributor
|
✅ All Jest tests passed! This PR is ready to merge. |
7se7en72025
approved these changes
Feb 26, 2026
Contributor
7se7en72025
left a comment
There was a problem hiding this comment.
LGTM @walterbender .
Confirmed locally that the new confirmation dialog correctly intercepts the reset action, providing a clear warning that prevents accidental data loss in the Planet view.
Contributor
Author
|
Hello @walterbender @omsuneri @vanshika2720, I’d appreciate it if you could review this PR at your convenience. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a confirmation dialog before resetting the current project when the "New Project" option is selected on Planet.
Previously, clicking "New Project" would immediately clear the workspace without any warning. This could result in accidental data loss if the user had unsaved work.
Previous Behavior
Current Behavior
Video
Music.Blocks.-.Google.Chrome.2026-02-26.03-39-36.mp4
Changes Made
Why This Change Is Important
This improves user experience and prevents accidental data loss, especially for younger users who may click options unintentionally.
Fixes #5908