Skip to content

iterating on the NDDB prompt user experience #6875

Closed

Description

@shiftkey

Please describe the problem you think should be solved

We've had the "Notification of Diverging from Default Branch" in the app for a while, but some recent changes make me think there's a better way to surface this information.

This came up in #6862 because the user wanted a convenient way to update their fork from the upstream, and was under the impression this didn't exist in the app.

The pain points I'd like to call out:

  • seeing this prompt while you're comparing branches feels unintuitive - why is the app distracting the user from what they're trying to do?
  • the compare tab is a very narrow space, limiting what information we can show to the users
  • it's not easy to manually trigger this information, because of how we implemented it at the time

[Optional] Do you have any potential solutions in mind?

The blank slate improvements in #6445 have provided real-estate for showing contextual tasks, like pulling from the tracked branch:

Seeing this in action - suggesting a task to the user, and then hiding it after it's been completed - feels like a similar flow to what the NDDB prompt was trying to achieve.

How I'd iterate on this feature:

  • extract the logic for detecting and prompting the user from the compare tab and into a service that runs in the background - this gives us the ability to control when it runs, and doesn't tie it to user interactions
  • design an action UI to show when the user should merge their default branch (either from a feature branch or from the upstream of a fork) or dismiss the action (because it's not important)

We've had previous discussions about adding in additional actions (e.g. #6674) but because this action is only shown when something needs to be done I don't think it's as important to do here.

Activity

  1. added
    user-research
    and removed
    user-research
    on Feb 19, 2019
  2. j-f1 commented on Feb 19, 2019

    @j-f1
    Contributor

    I noticed this morning that making a change causes the suggestions to disappear, which makes it harder to open Atom. Maybe this blank slate should be a separate “home” screen so it’s always available? How about a new button next to the push/pull button that opens a dropdown with the available suggestions? It could even have a numeric badge for the more active suggestions (like merging the main branch or pushing to the remote).

  3. borpin commented on Feb 20, 2019

    @borpin

    This came up in #6862 because the user wanted a convenient way to update their fork from the upstream, and was under the impression this didn't exist in the app.

    I think that part of my issue is that I do not see these prompts. I suspect this is because the repositories were cloned with Desktop before the feature was introduced. However, I have added the upstream via the CLI.

    On Github I see:
    image

    On Desktop I do not see anything telling me there are updates
    image

    image

    image

    I added the upstream via the command line;

    $ cat .git/config
    [core]
            repositoryformatversion = 0
            filemode = false
            bare = false
            logallrefupdates = true
            symlinks = false
            ignorecase = true
    [submodule]
            active = .
    [remote "origin"]
            url = https://github.com/borpin/emoncms.git
            fetch = +refs/heads/*:refs/remotes/origin/*
    [branch "master"]
            remote = origin
            merge = refs/heads/master
    [remote "upstream"]
            url = https://github.com/emoncms/emoncms.git
            fetch = +refs/heads/*:refs/remotes/upstream/*
    

    On making it more intuitive, why not use the UI you use on the Pull button to indicate there are updates (a number and an arrow)

    image

    on the current repository button (with a mouse over tool tip) like you have in the dropdown for the current repository.
    image

    image

    At the same time, could you add the information that GitHub shows indicating what the upstream is?
    image

    The phrase Current Repository is almost redundant.

  4. billygriffin commented on Mar 6, 2019

    @billygriffin
    Contributor

    TL;DR, my suggestion is that we fix the current implementation to work as expected (#5293) prior to iterating, and that will set us up nicely to roll this into a different flow (like suggested next steps) once this is functioning as intended.

    I had a chat with @niik about this yesterday, and wanted to capture our discussion here for further consideration. We both think it would be an interesting use case to incorporate a nudge to update your current branch with the latest from the default branch into the "suggested next steps" flow as discussed here. However, I don't think we're there yet and I'd love to diagnose why it's not working as expected first. We've seen extremely low usage of this feature based on our metrics, and I think it's because the implementation as it exists today doesn't match what we intended. As @borpin points out above, it's not actually showing up anywhere with any level of consistency.

    My understanding is that the intended behavior is that when there are changes on the default branch (or upstream based on the logic to determine where the reference branch is), the user sees a blue notification dot next to "History" in that tab, as shown here:

    screen shot 2019-03-06 at 2 56 16 pm

    Then, when you click on the "History" tab, you should see the notification, as shown here:

    screen shot 2019-03-06 at 2 58 09 pm

    However, that's not actually what's occurring, and I rarely, if ever, see it in the course of my actual work despite being frequently behind the default branch. I think the reproduction steps are as follows to trigger the notification:

    1. Navigate to a branch that's is behind the default branch (in other words, the default branch has commits that your branch does not)
    2. Click the "History" tab
    3. Click into the "Select Branch to Compare" filter field and select any branch
    4. Click the "Changes" tab.
    5. Click the "History" tab.
    6. Now you should see the notification.

    There's also potentially a timing element to this where potentially a notification could be displayed after a merge occurs, so whatever we do here should also consider #5617. I was not able to reproduce #5573, but whatever occurs here should also check that. I'm closing both of those issues but expect that any iteration here should verify that this works as expected.

    My thinking is that we ought to get this working properly as it exists today, and then evaluate whether it makes more sense to be wrapped into the "suggested next steps" view. Either way we would need to update the logic to make it work as expected, so this feels like a good first step. I'm also going to label this a bug as it's pretty clear to me that it's not working as intended.

    The description of the inconsistency (that I just found after writing all this up - great 😄) is captured very nicely in #5293, which feels like a good place to do the initial work required here. And here was the original tracking issue for the feature: #4646

  5. borpin commented on Mar 7, 2019

    @borpin

    I just updated to 1.6.3 on Windows 10.

    On first start, pulling down the list of repositories, there were no notifications of any repo requiring update. Not sure exact sequence from there, but the arrow did appear eventually.

    Moving to a repo that shows there are updates available, I now see a prompt to pull the repository.
    image

    but nothing in the history tab (no blue dot). When I click on the 'select branch to compare..' I see this.

    image

  6. billygriffin commented on Mar 7, 2019

    @billygriffin
    Contributor

    @borpin Would you mind doing the repro steps I outlined in #6875 (comment) and verify you're able to trigger the notification, just as a sanity check?

  7. borpin commented on Mar 7, 2019

    @borpin

    @borpin Would you mind doing the repro steps I outlined in #6875 (comment) and verify you're able to trigger the notification, just as a sanity check?

    @billygriffin yes it does.

    BUT (and this is where my issue started), if I am on the master branch (say), and this repo is a local of a fork (origin) on GitHub, I'd like a notification that tells me I am behind the origin/master without having to dig around for it. I do at least know where to look (and how to do the update in Desktop rather than via CLI which is what I was doing), but there is still a 1-1 relationship that is important (to me anyway) to keep my local and fork in sync with the upstream.

    [edit] - no blue dot in the case I just outlined though - should there be?

    image

    I also think that having <origin>/<repo> in the top tab like it is in the dropdown would assist clarity.

    image

  8. billygriffin commented on Mar 7, 2019

    @billygriffin
    Contributor

    @borpin Thanks! I think that should be the inherited behavior of the NDDB notification if it's working as intended (which it's not today). We'll look at that as well, thanks.

  9. rafeca commented on Mar 18, 2020

    @rafeca
    Contributor

    I can try to fix this one if it's a priority.

    From an initial investigation it seems like there may be two small issues working together:

    1. The AheadBehindUpdater logic is only triggered after the user clicks on the "History" tab and on the "Select Branch" input. You can actually see how the commit differences are displayed for each branch as it gets calculated:

      demo

      Without the AheadBehindUpdater logic running, the UI cannot know if the current branch is behind the upstream branch and this is why the nudge doesn't appear until opening the branch list.

    2. After it's displayed, the NDDB prompt disappears after a few seconds or after performing some actions. This seems to happen because the same flag is used to show/display the blue nudge and to show/display the prompt (isDivergingBranchBannerVisible). While we want to hide the blue nudge just after the user clicks the "History" tab, we probably want to leave the prompt for quite longer (maybe until the user closes it?).

  10. linked a pull request that will close this issueInfer branch for NDDB more consistently #9328on Mar 25, 2020
  11. guidezpl commented on Jun 22, 2020

    @guidezpl
    Contributor

    Would love to see this fixed since it's my only pain point! I tried @billygriffin's repro steps with a fork and did not see the notification or blue nudge. Note, the branch (and its upstream counterpart) was not named master.

  12. shiftkey commented on Jun 22, 2020

    @shiftkey
    MemberAuthor

    Would love to see this fixed since it's my only pain point! I tried @billygriffin's repro steps with a fork and did not see the notification or blue nudge.

    @guidezpl I believe this has been unshipped based on #9804

  13. added a commit that references this issue on Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions