From ec34a6f4c46173bc6e4759aa68f5a3e6ef943638 Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Mon, 27 Jul 2026 00:19:54 -0700 Subject: [PATCH] Restyle the sweep view to match the app's design language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The results view used ad-hoc chrome: colored left-border card stripes, uppercase micro-headers, and raw-div lists. Restyled to the same patterns as the settings pages: section headers with tinted icon chips and a title/hint stack, standard Card surfaces with the app's title tracking and 13px muted body copy, hover-revealed card actions, the settings scroll-fade container, and the progress list inside a Card with row dividers. Cards drop the accent stripe — the section a card sits in already says what kind it is. Co-Authored-By: Claude Fable 5 --- .../reviewSweep/ReviewSweepView.tsx | 123 +++++++++++------- 1 file changed, 73 insertions(+), 50 deletions(-) diff --git a/apps/web/src/components/reviewSweep/ReviewSweepView.tsx b/apps/web/src/components/reviewSweep/ReviewSweepView.tsx index 5c0b52bebd..7787d9d1bf 100644 --- a/apps/web/src/components/reviewSweep/ReviewSweepView.tsx +++ b/apps/web/src/components/reviewSweep/ReviewSweepView.tsx @@ -96,48 +96,54 @@ const BUCKET_ORDER: readonly SweepBucket[] = [ const BUCKET_META: Record< SweepBucket, - { title: string; hint: string; accent: string; icon: typeof ArchiveIcon } + { + title: string; + hint: string; + /** Tinted icon chip beside the section title. */ + iconChip: string; + icon: typeof ArchiveIcon; + } > = { mergeReady: { title: "Merge ready", hint: "Open PRs with green CI, approvals, and clean merges.", - accent: "border-s-violet-500/70", + iconChip: "bg-violet-500/12 text-violet-400", icon: GitMergeIcon, }, settle: { title: "Ready to settle", hint: "Work concluded — one click clears each from your active list.", - accent: "border-s-emerald-500/70", + iconChip: "bg-emerald-500/12 text-emerald-400", icon: ArchiveIcon, }, title: { title: "Title fixes", hint: "Still in progress, but the name no longer matches the work.", - accent: "border-s-sky-500/70", + iconChip: "bg-sky-500/12 text-sky-400", icon: PencilLineIcon, }, attention: { title: "Needs your attention", hint: "Waiting on you — review, input, or a decision.", - accent: "border-s-amber-500/70", + iconChip: "bg-amber-500/12 text-amber-400", icon: CircleAlertIcon, }, inFlight: { title: "In flight", hint: "Agents are still working; nothing to do yet.", - accent: "border-s-border", + iconChip: "bg-muted text-muted-foreground", icon: LoaderIcon, }, failed: { title: "Review failed", hint: "The reviewer couldn't process these — retry or open them directly.", - accent: "border-s-red-500/70", + iconChip: "bg-red-500/12 text-red-400", icon: CircleAlertIcon, }, reviewing: { title: "Still reviewing", hint: "", - accent: "border-s-border", + iconChip: "bg-muted text-muted-foreground", icon: LoaderIcon, }, }; @@ -259,7 +265,6 @@ function SweepItemCard({ const key = scopedThreadKey(item.ref); const [applying, setApplying] = useState(false); const result = item.result; - const meta = BUCKET_META[bucket]; const primaryAction = bucket === "mergeReady" ? ( @@ -324,20 +329,27 @@ function SweepItemCard({ const nextStep = item.status === "error" ? null : (result?.nextStep ?? nextStepFallback); return ( - -
- - {item.threadTitle} - - {bucket === "settle" && item.settleApplied ? ( - Settled - ) : null} - {bucket === "mergeReady" ? : null} -
+ +
+
+
+ + {item.threadTitle} + + {bucket === "settle" && item.settleApplied ? ( + + Settled + + ) : null} + {bucket === "mergeReady" ? : null} +
+ +
+
{result?.summary ? (
- - {item.status === "error" ? ( -

{item.errorMessage}

+

+ {item.errorMessage} +

) : item.mergeStatus === "conflicted" || item.mergeStatus === "failed" ? ( -

{item.mergeDetail}

+

+ {item.mergeDetail} +

) : nextStep ? ( -

{nextStep}

+

{nextStep}

) : null} {bucket === "title" && result?.suggestedTitle ? ( @@ -396,7 +410,7 @@ function SweepItemCard({

) : null} - {primaryAction ?
{primaryAction}
: null} + {primaryAction ?
{primaryAction}
: null} ); } @@ -438,7 +452,7 @@ function SweepProgressList({ }, [items]); return ( -
+ {ordered.map((item) => { const project = projectsByKey.get( scopedProjectKey(scopeProjectRef(item.ref.environmentId, item.projectId)), @@ -485,7 +499,7 @@ function SweepProgressList({
); })} -
+
); } @@ -819,7 +833,7 @@ export function ReviewSweepView() {
-
+
{phase === "idle" ? ( ) : running ? ( @@ -858,9 +872,9 @@ export function ReviewSweepView() { ) : ( -
+
{truncatedCount > 0 ? ( -

+

Reviewed the {visibleItems.length} most recent threads; {truncatedCount} more were skipped this run.

@@ -875,25 +889,34 @@ export function ReviewSweepView() { ).length : 0; return ( -
-
-

- - {meta.title} - - · {bucketItems.length} - -

- {meta.hint ? ( - - {meta.hint} - - ) : null} +
+
+ + + +
+

+ {meta.title} + + {bucketItems.length} + +

+ {meta.hint ? ( +

+ {meta.hint} +

+ ) : null} +
{bucket === "mergeReady" && mergeableCount > 0 ? ( ) : null}
-
+
{bucketItems.map((item) => { const projectKey = scopedProjectKey( scopeProjectRef(item.ref.environmentId, item.projectId),