Skip to content

Add compare CTA button to banner (NDDB) - #5034

Merged
shiftkey merged 33 commits into
masterfrom
i-wanna-compare
Jul 3, 2018
Merged

shiftkey merged 33 commits into
masterfrom
i-wanna-compare

Conversation

@iAmWillShepherd

@iAmWillShepherd iAmWillShepherd commented Jun 26, 2018 •

Copy link
Copy Markdown
Contributor

🌵 🌵 🌵 Make sure to merge #5041 first 🌵 🌵 🌵

Fixes #4808

  • Add Compare button
  • Wire-up button so that clicking it initiates a compare
  • Track how often a compare is initiated from banner
  • Track how often a merge is initiated from the compare view after getting to it from the CTA
  • Make it look pretty (@donokuda: @ampinsk will own this ✨)

2018-06-29 13 30 58

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 27, 2018
@shiftkey

Copy link
Copy Markdown
Member

@iAmWillShepherd I can see from the GIF that we don't seem to display the selected branch in the compare branch selector - is that something you want to tackle as part of this PR, or track as a separate issue?

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

@shiftkey I'll fix that in this issue.

@iAmWillShepherd iAmWillShepherd removed the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 29, 2018
@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 29, 2018
@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🥇

* from the diverged branch notification compare CTA button
*/
readonly divergingBranchBannerInfluencedCompare: number
readonly divergingBranchBannerInfluencedMerge: number

This comment was marked as spam.

@shiftkey shiftkey self-assigned this Jul 3, 2018

@shiftkey shiftkey 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.

Code looks good, had a play around with it and was able to dismiss some notifications. Just needs some docs on some new public APIs.

readonly dispatcher: Dispatcher
readonly currentBranch: Branch
readonly formState: ICompareBranch
readonly onMerged: () => void

This comment was marked as spam.

*/
readonly focusedBranch: Branch | null
readonly selectedCommit: Commit | null
readonly hasConsumedNotification: boolean

This comment was marked as spam.

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🥇

readonly formState: ICompareBranch

/**
* Function to execute after a merge has been performed

This comment was marked as spam.

Comment thread app/src/ui/history/compare.tsx Outdated
readonly selectedCommit: Commit | null

/**
* Flag that keeps track of whether the user has

This comment was marked as spam.

@shiftkey

shiftkey commented Jul 3, 2018

Copy link
Copy Markdown
Member

🍎

@iAmWillShepherd

Copy link
Copy Markdown
Contributor Author

🔢

@shiftkey
shiftkey merged commit f84c7bc into master Jul 3, 2018
@shiftkey
shiftkey deleted the i-wanna-compare branch July 25, 2018 14:37
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 23, 2018
@desktop desktop unlocked this conversation Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants