Repository navigation
[Stashing] Adds a bit of explanatory text for restore button - #7363
Conversation
|
We could also ditch the explanatory text in the header and have it appear on hover as a tool tip. It's less discoverable, but we wouldn't have to worry about how it's placed in the UI. I think it's a fine tradeoff considering the messaging is intended to clarify what the Restore button does (or cannot do in the case of uncommitted changes being present). |
|
I would defer to @ampinsk's original design unless it's significantly more difficult to implement. I don't think we should just compromise for ease of implementation unless the hurdle is really high or presents other problems. |
|
This is awkward sounding ""This will pop this stash as changed files." Also, not sure what button is being referenced as it is just floating there and rather vague. Suggest: "Restore to move your stashed files to the Changes list." |
|
cross-posting this from the original issue for visibility :)
|
|
Tested this and ready to go 🚢 |
There was a problem hiding this comment.
Approving based on the user-facing changes only (not the code). Loving these changes so far! Also lol at that branch name.
I'm 👍 with us merging this as a really good iteration and I do think there's room for further improvement that I'd like to talk about and then attempt in a future PR:
When I read the helper text for the scenario where we have uncommitted changes
Unable to restore stash when changes are present on your branch.
I feel a little helpless and think "well what are my options right now?" aka "what do you want me to do about it?" It's not our obligation to help them further than the command line but I think we can do better and at least give them a suggestion. As fodder for thinking, here are a few things the user COULD do (that we don't have to necessarily prescribe):
a) commit my existing changes and then restore my stash
b) discard this stash and say goodbye to them forever
c) manually stash on the command line
d) copy and paste my changes to a notepad and then discard and then create the changes again
e) discard my changes and restore my stash
Fixes #7303
This PR is effected by the outcome of #7273.No uncommitted changes
Some uncommitted changes
cc/ @billygriffin, @ampinsk, @niik for design thoughts.