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

UX: make it clear "discard changes" on a file will affect all lanes #4137

Open
daniilS opened this issue Jun 20, 2024 · 4 comments
Open

UX: make it clear "discard changes" on a file will affect all lanes #4137

daniilS opened this issue Jun 20, 2024 · 4 comments
Labels
bug Something isn't working UX something related to the user's experience

Comments

@daniilS
Copy link
Contributor

daniilS commented Jun 20, 2024

Version

0.12.5

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

"Discard changes" is accessed from the context menu inside one particular lane, but will discard any changes to the file in all lanes - this doesn't feel like obvious behaviour to me, and since discarding already gives a modal to confirm, I think it would be good to add a check if the selected file also has changes in any other lanes, and point it out in the modal if yes.

How to reproduce

No response

Expected behavior

No response

Relevant log output

No response

@daniilS daniilS added the bug Something isn't working label Jun 20, 2024
@Byron Byron added the UX something related to the user's experience label Jun 20, 2024
@Byron
Copy link
Collaborator

Byron commented Jun 20, 2024

Thanks for reporting, I also see how this behaviour can be confusing without pointing it out specifically.

Just in case anything got lost, one should be able to undo the discard as (roughly) indicated in the screenshot (it's the clock symbol in the bottom-left, right next to settings).

Screenshot 2024-06-20 at 22 02 15

@daniilS
Copy link
Contributor Author

daniilS commented Jun 21, 2024

Nothing was lost, don't worry - think I actually found this while testing for #4136 😂
But yes I'm a big fan of the undo button!

@mtsgrd
Copy link
Contributor

mtsgrd commented Jun 25, 2024

Would you mind if we instead make it discard only changes that belong to the particular branch?

@daniilS
Copy link
Contributor Author

daniilS commented Jun 25, 2024

@mtsgrd I think that would work well! I assumed there was some reason for the current behaviour hence my suggestion for the warning, but personally I can only think of use cases for discarding only changes in the current lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UX something related to the user's experience
Projects
None yet
Development

No branches or pull requests

3 participants