Skip to content
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

Deleting site leaves local files #303

Closed
TRILOS opened this issue Jun 25, 2024 · 6 comments
Closed

Deleting site leaves local files #303

TRILOS opened this issue Jun 25, 2024 · 6 comments
Assignees

Comments

@TRILOS
Copy link

TRILOS commented Jun 25, 2024

Quick summary

When deleting a site in Studio 1.4, the local files are not being deleted.

Steps to reproduce

  1. Delete site
  2. Check local filesystem

What you expected to happen

The complete directory is being deleted.

What actually happened

Nothing

Impact

All

Available workarounds?

No but the app is still usable

Platform

Windows

Logs or notes

Studio 1.4 on Windows 10

@danielbachhuber
Copy link
Contributor

@wojtekn @sejas Given the common misunderstanding here, what do you think about having the checkbox default to checked?

@TRILOS
Copy link
Author

TRILOS commented Jun 26, 2024

del test 1

Sorry, actually I did not recognize the checkbox.
So you´re on the right way, Daniel, but what I´d think from UI perspective, an option for an action should be placed before the action, at least no somewhere at the poolside...

@mrfoxtalbot mrfoxtalbot moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Jun 27, 2024
@wojtekn
Copy link
Contributor

wojtekn commented Jul 3, 2024

Given the common misunderstanding here, what do you think about having the checkbox default to checked?

@danielbachhuber If users mistakenly miss the option, I would prefer that their files stay on the filesystem and are not deleted. Losing the files without noticing seems to be a worse outcome.

So you´re on the right way, Daniel, but what I´d think from UI perspective, an option for an action should be placed before the action, at least no somewhere at the poolside...

It seems to be native Windows UI, and not really a Studio or Electron thing.

@danielbachhuber
Copy link
Contributor

@wojtekn I think the expectation when I "Delete site" is that the site is deleted. What do Local and DevKinsta do?

@wojtekn
Copy link
Contributor

wojtekn commented Jul 4, 2024

@danielbachhuber Local asks the user if they want to move files to trash and preselects the option for the user. They also don't use native system dialog and implement a custom dialog:

Screenshot 2024-07-04 at 13 25 14

DevKinsta doesn't ask about that at all and removes the files. They use custom dialog too:

Screenshot 2024-07-04 at 15 11 59

It seems that Studio is on the lowest part of the YOLO-ness scale here. I think we can select the checkbox by default. After all, the site is being moved to the thrash, so users can still revert the process if they change their minds.

@danielbachhuber
Copy link
Contributor

@wojtekn Thanks for looking into it! I agree; I think checking the box by default is a reasonable implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants