Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add confirmation prompt to workspace update action#557

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 3 commits intomainfromadd-update-confirmation-prompt
Jul 22, 2025

Conversation

blink-so[bot]
Copy link
Contributor

This PR adds a confirmation prompt to the workspace update action to prevent accidental updates that could result in data loss.

Changes:

  • Changed fromshowInformationMessage toshowWarningMessage to better indicate the destructive nature
  • Added explicit warning text: "Updating will restart your workspace and stop any running processes that may result in loss of unsaved data"
  • Added "Cancel" button to provide clear opt-out option

Testing:

  • Linting passes
  • Build completes successfully
  • One unrelated test failure in SSH support (pre-existing)

Fixes the issue where users accidentally trigger workspace updates without understanding the consequences.

Adds a warning dialog with explicit consent before updating workspace.Includes warning text about workspace restart and potential data loss.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
useCustom:true,
modal:true,
detail:`Update${this.workspace.owner_name}/${this.workspace.name} to the latest version?`,
detail:`Update${this.workspace.owner_name}/${this.workspace.name} to the latest version?\n\nUpdating will restart your workspace and stop any running processes that may result in loss of unsaved work.`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

To me "that" implies the stopping of processes results in the loss of work, but really the restart is what does it. "And" might be a bit better, although "and" could also be interpreted this way so idk.

But this does match the wording used in coder/coder more: "Updating will restart your workspace which stops any running processes and may result in the loss of unsaved work."

blink-so[bot] reacted with thumbs up emoji
Use 'which stops' instead of 'and stop' to clarify that the restartcauses the process stopping and potential data loss.Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
@code-ashercode-asher merged commit2d7dac8 intomainJul 22, 2025
2 checks passed
@code-ashercode-asher deleted the add-update-confirmation-prompt branchJuly 22, 2025 16:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@matifalimatifalimatifali left review comments

@code-ashercode-ashercode-asher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@matifali@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp