Skip to content

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

Closed

Description

@iAmWillShepherd

Add a bit of explanatory text next to the Restore button to inform the user of what it means.

See #6987 (comment) for context.

There are 2 scenarios that need to be handled:

  1. No uncommitted changes
    • Discard and Restore buttons are both enabled
    • Restore button will have the following text next to it: "This will pop this stash as changed files."
  2. Uncommitted changes exist
    • Discard is enabled, Restore is disabled
    • Restore button has an ❗ icon with the text: "Unable to restore stash when changes are present on your branch."

Some things worth considering:

UI

☝️ This image uses the verb apply, but we will instead be going with pop; the info text in the image will not actually be used, it only serves as a visual aide.

Activity

  1. added this to the 1.7.0 milestone on Apr 17, 2019
  2. added
    epic:stashing
    on Apr 23, 2019
  3. outofambit commented on Apr 24, 2019

    @outofambit
    Contributor

    @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." #7363 (comment)

  4. self-assigned this
    on Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

epic:stashing

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions