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

Improve UX when saving newer files on disk #90660

Merged
merged 1 commit into from
May 29, 2024

Conversation

adamscott
Copy link
Member

@adamscott adamscott commented Apr 14, 2024

Makes sure that people really understand the actions available when trying to save a file that is newer on disk than in the editor.

Before After
Capture d’écran du 2024-04-14 07-17-26 Capture d’écran du 2024-04-14 07-49-48

Took inspiration from these prompts:

Capture d’écran du 2024-04-14 06-37-08

Capture d’écran du 2024-04-14 06-38-24

Capture d’écran du 2024-04-14 06-41-24

Special thanks to Therron Keen on Twitter for flagging this issue.

@adamscott adamscott added this to the 4.3 milestone Apr 14, 2024
@adamscott adamscott requested a review from a team as a code owner April 14, 2024 11:36
@adamscott adamscott added cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Apr 14, 2024
@adamscott adamscott changed the title Fix actions ambiguity when saving newer files on disk Improve UX when saving newer files on disk Apr 14, 2024
@JoNax97
Copy link
Contributor

JoNax97 commented Apr 14, 2024

Are we sure we're not changing the meaning of each button here?

In the old dialog, the center button keeps the changes from disk, and the right button discards them.

But with the new dialog, the wording used makes it look like both options will discard the changes from disk.

@adamscott
Copy link
Member Author

adamscott commented Apr 14, 2024

@JoNax97 I just checked out LibreOffice example in English (instead of French).

Capture d’écran du 2024-04-14 11-01-08

So, how about this?

image

@JoNax97
Copy link
Contributor

JoNax97 commented Apr 14, 2024

I think it's more confusing than it needs to be. I will try to explain the way I reason about the wording, let me know if I'm unclear.

The dialog's subject is the external changes on disk.

But then the buttons introduce the new concept of "local changes" and the user has to reason backwards to understand what will happen to the main subject of the dialog, the changes on disk.

I'd propose something like:

The following files have been changed externally and differ from the local changes made by Godot.
<list of files here>

What do you want to do? 

Keep local changes | Keep external changes | Cancel

@ajreckof
Copy link
Member

image

This is clearly better then what was proposed at the start as it explicit what is discarded is the local changes.

I think it's more confusing than it needs to be. I will try to explain the way I reason about the wording, let me know if I'm unclear.

The dialog's subject is the external changes on disk.

But then the buttons introduce the new concept of "local changes" and the user has to reason backwards to understand what will happen to the main subject of the dialog, the changes on disk.

I'd propose something like:

The following files have been changed externally and differ from the local changes made by Godot.
<list of files here>

What do you want to do? 

Keep local changes | Keep external changes | Cancel

I prefer adam last propositions of buttons but I feel this is really good : "The following files have been changed externally and differ from the local changes made by Godot."

@adamscott
Copy link
Member Author

@JoNax97 The thing is that dialog actually saves/overwrites the content of the newer files. So, your buttons proposition don't reflect that.

@ajreckof
Copy link
Member

Apparently there was a PR that was lost to the limbo #57062 and a proposal associated godotengine/godot-proposals#3456 😂 I think the PR could be closed in favor of this one but maybe there are interesting discussion there.

@fire fire requested a review from a team April 15, 2024 22:32
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

The discussion stalled but I think this is already a good intermediate step to improve the UX of this dialog. We can iterate further if someone comes up with a better design.

@akien-mga akien-mga merged commit 4d906f4 into godotengine:master May 29, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release enhancement topic:editor usability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants