Repository navigation
Adds new component for displaying banner notifications (NDDB) - #4794
Conversation
Co-Authored-By: Don Okuda <[email protected]>
I need this for the banner and don't want to duplicate styles over Co-Authored-By: Don Okuda <[email protected]>
Co-Authored-By: Don Okuda <[email protected]>
Co-Authored-By: Don Okuda <[email protected]>
Co-Authored-By: Don Okuda <[email protected]>
Co-Authored-By: Don Okuda <[email protected]>
Co-Authored-By: Don Okuda <[email protected]>
|
I removed the refine styles item from the task list because that work can be tackled in a separate PR. |
|
|
||
| interface INewCommitsBannerProps { | ||
| /** | ||
| * The number of commits behind `branch` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| /** | ||
| * The base branch that is ahead | ||
| */ | ||
| readonly branch: Branch |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
@shiftkey, I've spoken with @desktop/design about removing the buttons from the banner (at least for now) so that we can get this merged into master by next week. I'm going to remove the button group for now, and will add each button one-by-one in separate PRs (#4808 and #4809 are tracking this work). We will be coming up with a small copy change and updating how this component looks (see comment for context), so I'm going to remove the We intend to keep this behind a feature-flag, so this shouldn't cause any churn for our users, so this is really just a way to get this work into |
We'll be removing this in a future ship
| } | ||
|
|
||
| /** | ||
| * Banner used to notify user that there branch is _commitsBehind_ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| interface INewCommitsBannerProps { | ||
| /** | ||
| * The number of commits behind `baseBranch` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
shiftkey
left a comment
There was a problem hiding this comment.
Just a couple of minor things to clean up
|
💯 |
Fixes #4768
@donokuda and I paired on this while prepping a prototype for user interviews. Note that the CTA buttons will be wired up in separate PRs as that work may require other components to be refactored.At the moment, I'm unsure if we should pass arefor theremote.nameandbranch.name. Since this component is not actually being used at the moment, I just usedrefand passed the stringorigin/masterto produce the screenshot below.☝️ Just passed the branch instead.
According to the design, the Compare button should be the primary button, but the order of the buttons differ from the design due to how theButtonGroupcomponent works. @desktop/design does that mean the mockup is incorrect?This PR now adds a banner notification without the CTA buttons. (see comment for more details).
Before

After

Todo:
xcommits behindref"