From 1048770e93da827b48c77beebc80fcbdab081d7a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Tue, 9 Jun 2026 13:29:06 -0700 Subject: [PATCH] Remove queue badges and classification from ChecksPanel Remove the "Needs response" queue badge and associated hosted review classification logic from the checks sidebar panel. This simplifies the component by removing unused imports, local state variables, and complex memoized calculations. --- .../components/right-sidebar/ChecksPanel.tsx | 240 +++++++++--------- 1 file changed, 114 insertions(+), 126 deletions(-) diff --git a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx index 016976c41cd..2d6f58407cd 100644 --- a/src/renderer/src/components/right-sidebar/ChecksPanel.tsx +++ b/src/renderer/src/components/right-sidebar/ChecksPanel.tsx @@ -70,13 +70,8 @@ import type { import { getHostedReviewCacheKey, refreshHostedReviewCard } from '@/store/slices/hosted-review' import { toast } from 'sonner' import { useConfirmationDialog } from '@/components/confirmation-dialog' -import { - classifyHostedReview, - type HostedReviewClassificationOptions -} from '../../../../shared/hosted-review-queue' -import { hostedReviewSummaryFromGitHubPRInfo } from '../../../../shared/hosted-review-github' + import { type ChecksPanelReview, gitHubPRToChecksPanelReview } from './checks-panel-review' -import { hostedReviewSummaryFromGitLabInfo } from '../../../../shared/hosted-review-gitlab' import { checksPanelAsyncResultKey, checksPanelHostedReviewAsyncResultKey, @@ -165,7 +160,11 @@ export function ChecksPanelReviewHeader({ )} {(canCreate || canPushCreate) && ( @@ -2480,8 +2455,16 @@ export default function ChecksPanel(): React.JSX.Element { }} > {canPushCreate - ? translate("auto.components.right.sidebar.ChecksPanel.98f4c37b33", "Push & Create {{value0}}", { value0: emptyReviewShortLabel }) - : translate("auto.components.right.sidebar.ChecksPanel.889cdfba04", "Create {{value0}}", { value0: emptyReviewShortLabel })} + ? translate( + 'auto.components.right.sidebar.ChecksPanel.98f4c37b33', + 'Push & Create {{value0}}', + { value0: emptyReviewShortLabel } + ) + : translate( + 'auto.components.right.sidebar.ChecksPanel.889cdfba04', + 'Create {{value0}}', + { value0: emptyReviewShortLabel } + )} )} )} @@ -2540,7 +2525,7 @@ export default function ChecksPanel(): React.JSX.Element { />