Skip to content

[RBB] Ahead/Behind Toggle #3997

@nerdneha

Description

@nerdneha

This is part of #3956 and shows how your branch has diverged from your target branch (ex: master). This will help you understand what changes can be brought into your branch (behind) and what commits are unique to your branch (ahead).

User Flow to check functionality:

  • go to compare view with no toggle showing
  • click on compare tab, click into the "compare a branch..." input, and click on "master" and see:
    • the toggle appear in the compare view
    • Behind (x) selected by default where x is the # of commits your branch is behind "master" (old view showed commits ahead of master)
    • the commits that are missing from your branch that exist in the target branch
  • click on Ahead (y) in the toggle where y is the # of commits your branch is ahead of "master" and see:
    • the commits that exist only in your branch and not the target branch
  • press "x" in the branch input, select another target branch, and see:
    • the compare view where you can toggle behind/ahead
    • the respective commits listed

Changes:

  • create toggle
  • Behind (x) & Ahead (y) counts
  • Behind (x) is selected by default
  • default view shows the commits that your branch is behind (relative to the target branch)
  • clicking Ahead (y) shows commits
  • clicked Ahead (y) shows the commits that your branch is ahead (relative to the target branch)

Other pieces:

Before (shows "ahead" by default):
screen shot 2018-02-08 at 2 11 27 am

After:
image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions