Skip to content

Commit c739edb

Browse files
committed
fix(web): refresh stale PR checks from the host
1 parent 504a9f6 commit c739edb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,6 +2712,7 @@ export function PullRequestDetailPanel({
27122712
fixCheckLabel={handoffLabels.fixCheck}
27132713
onFixFinding={startFixFinding}
27142714
onRefresh={refreshDetail}
2715+
onRefreshChecks={refreshFromHost}
27152716
/>
27162717
</div>
27172718
) : null}

‎apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ export function PullRequestSummaryTab({
468468
fixCheckLabel = "Fix",
469469
onFixFinding,
470470
onRefresh,
471+
onRefreshChecks = onRefresh,
471472
}: {
472473
environmentId: EnvironmentId;
473474
threadRef: ScopedThreadRef | null;
@@ -482,6 +483,7 @@ export function PullRequestSummaryTab({
482483
fixCheckLabel?: string;
483484
onFixFinding?: (finding: PullRequestFinding) => void;
484485
onRefresh: () => void;
486+
onRefreshChecks?: () => void;
485487
}) {
486488
// Keyed by the pull request, so opening another one starts at the end of its conversation
487489
// rather than wherever the last one had been read back to.
@@ -877,7 +879,7 @@ export function PullRequestSummaryTab({
877879
{checksStale ? (
878880
<div className="flex items-center gap-2 text-xs text-muted-foreground">
879881
<span>Check details are out of date.</span>
880-
<Button size="xs" variant="ghost" onClick={onRefresh}>
882+
<Button size="xs" variant="ghost" onClick={onRefreshChecks}>
881883
Refresh
882884
</Button>
883885
</div>

0 commit comments

Comments
 (0)