Merge Box Logic + Design

The goal of this doc: Map out existing states of the merge box, including logic and UI.

References


Overall components of merge box

Overview




Review Status Section 

Overview

Deals with 1) reviewer section of sidebar and 2) these two sections in the merge box: 
Generally, if a PR has no review requirements, then there won't be explainer text in the sidebar. This section references the >1 required reviewers project: https://github.com/github/github/pull/86098#issuecomment-371277212

Approving Review States


Here are the various states and how the sidebar and merge box relate to each other 👇 

States when there are unfulfilled review requirements: 




Status when review requirements are met:



Required reviews is closed or merged (when PR had reviews)



Requested changes



Partially approved (2 required, 1 approving is present)

That's a great overview and looks pretty complete to me. One additional case: Partially approved, 2 required, 1 approving review is present. Then the hint will show up in the sidebar too since the review policy is not fulfilled.