diff --git a/packages/web/src/components/BottomSheet.tsx b/packages/web/src/components/BottomSheet.tsx index 5860efe49..c8952a21e 100644 --- a/packages/web/src/components/BottomSheet.tsx +++ b/packages/web/src/components/BottomSheet.tsx @@ -1,7 +1,7 @@ "use client"; import { useEffect, useRef } from "react"; -import { getAttentionLevel, isPRRateLimited, isPRUnenriched, type DashboardSession } from "@/lib/types"; +import { getAttentionLevel, isPRUnenriched, type DashboardSession } from "@/lib/types"; import { getSessionTitle } from "@/lib/format"; import { projectSessionPath } from "@/lib/routes"; @@ -24,12 +24,10 @@ function formatTagLabel(value: string): string { } function isTag( - value: - | { - label: string; - tone: "accent" | "neutral" | "mono"; - } - | null, + value: { + label: string; + tone: "accent" | "neutral" | "mono"; + } | null, ): value is { label: string; tone: "accent" | "neutral" | "mono" } { return value !== null; } @@ -76,7 +74,7 @@ export function BottomSheet({ if (!sheetRef.current) return; const focusable = sheetRef.current.querySelectorAll( - 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])' + 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', ); if (focusable.length === 0) return; @@ -122,13 +120,13 @@ export function BottomSheet({ const title = getSessionTitle(session); const attention = getAttentionLevel(session); - const summary = - session.summary && !session.summaryIsFallback ? session.summary : null; + const summary = session.summary && !session.summaryIsFallback ? session.summary : null; const hasLiveTerminateAction = attention !== "done" && attention !== "merge" && session.status !== "terminated"; const pr = session.pr; - const showLivePrData = Boolean(pr && !isPRRateLimited(pr) && !isPRUnenriched(pr)); - const showTerminalStatePills = attention === "done" || session.status === "terminated" || session.activity === "exited"; + const showLivePrData = Boolean(pr && !isPRUnenriched(pr)); + const showTerminalStatePills = + attention === "done" || session.status === "terminated" || session.activity === "exited"; const tags = [ { label: formatTagLabel(attention), tone: "accent" as const }, { label: formatTagLabel(session.status), tone: "neutral" as const }, @@ -141,11 +139,7 @@ export function BottomSheet({ return ( <> {/* Backdrop */} -