Skip to content

[Stashing] Adds a bit of explanatory text for restore button - #7363

Merged
outofambit merged 10 commits into
developmentfrom
i-get-what-youre-saying-but-what-does-it-mean
Apr 25, 2019
Merged

outofambit merged 10 commits into
developmentfrom
i-get-what-youre-saying-but-what-does-it-mean

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Apr 19, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #7303

This PR is effected by the outcome of #7273.

No uncommitted changes

Screen Shot 2019-04-24 at 12 51 46 PM

Some uncommitted changes

Screen Shot 2019-04-24 at 12 51 03 PM

cc/ @billygriffin, @ampinsk, @niik for design thoughts.

@iAmWillShepherd iAmWillShepherd added this to the 1.7.0 milestone Apr 19, 2019
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

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).

@billygriffin

Copy link
Copy Markdown
Contributor

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.

@tierninho

Copy link
Copy Markdown
Contributor

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."

@outofambit outofambit added the epic:stashing Tracking label for work related to the stashing flow label Apr 23, 2019
@outofambit

Copy link
Copy Markdown
Contributor

cross-posting this from the original issue for visibility :)

@ampinsk and I would like to keep the layout of the original design (regardless of button order) as long as we use the text "Restore will move your stashed files to the Changes list."

@outofambit outofambit added ready-for-review Pull Requests that are ready to be reviewed by the maintainers time-sensitive Pull Requests where reviews need to happen in a timely manner labels Apr 24, 2019
@tierninho

Copy link
Copy Markdown
Contributor

Tested this and ready to go 🚢

@tierninho
tierninho self-requested a review April 24, 2019 21:15
tierninho
tierninho previously approved these changes Apr 24, 2019
nerdneha
nerdneha previously approved these changes Apr 24, 2019

@nerdneha nerdneha left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@billygriffin
billygriffin requested a review from niik April 24, 2019 22:42
@niik niik self-assigned this Apr 25, 2019

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just one tiny request

Comment thread app/styles/ui/_stash-diff-viewer.scss Resolved
@outofambit
outofambit merged commit c035ac6 into development Apr 25, 2019
@outofambit
outofambit deleted the i-get-what-youre-saying-but-what-does-it-mean branch April 25, 2019 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

epic:stashing Tracking label for work related to the stashing flow ready-for-review Pull Requests that are ready to be reviewed by the maintainers time-sensitive Pull Requests where reviews need to happen in a timely manner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Stashing] Add info verbiage next to restore button in stash diff UI

6 participants