1- import { SearchIcon , UserCheckIcon } from "lucide-react" ;
1+ import { SearchIcon } from "lucide-react" ;
22import { PullRequestStackPopover } from "./PullRequestStackPopover" ;
33import { memo , type RefCallback } from "react" ;
44
@@ -14,6 +14,7 @@ import {
1414 PullRequestActorLabel ,
1515 PullRequestDiffStat ,
1616 PullRequestMetaLine ,
17+ PullRequestApprovalGlyph ,
1718 PullRequestStateGlyph ,
1819} from "./pullRequestPresentation" ;
1920
@@ -137,6 +138,26 @@ function PullRequestRowImpl({
137138 }
138139 />
139140 ) : null }
141+ { /* Only a verdict somebody has actually given: "review required" is the absence of
142+ one, and saying so on every unreviewed row would say nothing. */ }
143+ { entry . reviewDecision === "approved" ? (
144+ < PullRequestApprovalGlyph />
145+ ) : entry . reviewDecision === "changes-requested" ? (
146+ < span className = "min-w-0 truncate text-amber-600/90 dark:text-amber-400/80" >
147+ Changes requested
148+ </ span >
149+ ) : null }
150+ { entry . checksState === undefined ? null : (
151+ < PullRequestChecksPopover
152+ checksState = { entry . checksState }
153+ environmentId = { entry . environmentId }
154+ reference = { {
155+ projectId : entry . projectId ,
156+ repository : entry . repository ,
157+ number : entry . number ,
158+ } }
159+ />
160+ ) }
140161 < PullRequestDiffStat
141162 additions = { entry . additions }
142163 deletions = { entry . deletions }
@@ -195,35 +216,6 @@ function PullRequestRowImpl({
195216 labelClassName = "sr-only @xs/pr-row-meta:not-sr-only @xs/pr-row-meta:truncate"
196217 />
197218 { entry . labels . length > 0 ? < PullRequestRowLabels labels = { entry . labels } /> : null }
198- { /* Only a verdict somebody has actually given: "review required" is the absence of
199- one, and saying so on every unreviewed row would say nothing. */ }
200- { entry . reviewDecision === "approved" ? (
201- < Tooltip >
202- < TooltipTrigger render = { < span className = "inline-flex shrink-0" /> } >
203- < UserCheckIcon
204- aria-hidden
205- className = "size-3.5 text-emerald-600/90 dark:text-emerald-400/80"
206- />
207- < span className = "sr-only" > Approved</ span >
208- </ TooltipTrigger >
209- < TooltipPopup > Approved</ TooltipPopup >
210- </ Tooltip >
211- ) : entry . reviewDecision === "changes-requested" ? (
212- < span className = "min-w-0 truncate text-amber-600/90 dark:text-amber-400/80" >
213- Changes requested
214- </ span >
215- ) : null }
216- { entry . checksState === undefined ? null : (
217- < PullRequestChecksPopover
218- checksState = { entry . checksState }
219- environmentId = { entry . environmentId }
220- reference = { {
221- projectId : entry . projectId ,
222- repository : entry . repository ,
223- number : entry . number ,
224- } }
225- />
226- ) }
227219 </ PullRequestMetaLine >
228220 < span className = "col-start-2 row-start-2 flex items-center justify-self-end gap-3 whitespace-nowrap text-[11px] text-muted-foreground/70 tabular-nums" >
229221 < span className = "hidden @sm/pr-row:inline" >
0 commit comments