revert(web): restore previous composer banners #8733
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit into
main fromrefs/pull/8733/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- @@ -888,0 +916,21 @@916+ } else if (visibleGroupedEntries.length <= MAX_VISIBLE_WORK_LOG_ENTRIES) {917+ nextRows.push({918+ kind: "work",919+ id: timelineEntry.id,920+ createdAt: timelineEntry.createdAt,921+ groupedEntries: visibleGroupedEntries,922+ isExpandedToolGroupEntry: false,923+ isLastExpandedToolGroupEntry: false,924+ });925+ } else {926+ const groupId = workGroupId(timelineEntry.id, timelineEntry.entry);927+ const expanded = input.expandedWorkGroupIds?.has(groupId) ?? false;928+ // Agent-spawn CTA rows are always visible: a running fleet must929+ // never hide behind a "+N tool calls" toggle. Selection is by930+ // membership (spawn OR recent-tail), preserving the group's931+ // chronological order in both collapsed and expanded states932+ // (review finding: concatenating two filtered lists moved a933+ // mid-group spawn row above earlier tool rows).934+ const overflowCandidates = visibleGroupedEntries.filter(935+ (entry) => entry.agentSpawn === undefined,936+ );@@ -75,8 +83,8 @@7583 if (entries.length === 0) return;7684 event.preventDefault();7785 event.stopPropagation();78- const currentIndex = entries.findIndex((entry) => entry.id === highlightedEntry?.id);86+ const currentIndex = entries.findIndex((entry) => entry.id === highlightedId);7987 const offset = event.key === "ArrowDown" ? 1 : -1;8088 const normalizedIndex = currentIndex >= 0 ? currentIndex : offset === 1 ? -1 : 0;8189 const nextIndex = (normalizedIndex + offset + entries.length) % entries.length;8290 setHighlightedId(entries[nextIndex]?.id ?? null);@@ -189,17 +149,4 @@189- key={item.id}190- className={cn(191- "transition-[translate,opacity] duration-220 ease-in",192- exitingItemId === item.id193- ? "pointer-events-none translate-y-28 opacity-0"194- : "opacity-100",195- )}196- >197- <ComposerBannerStackAlert198- item={item}199- attached={false}200- exiting={exitingItemId === item.id}201- onDismissRequest={() => requestDismiss(item)}202- />203- </div>204- ))}205- </div>149+ <div className="min-h-0 overflow-hidden">150+ <div151+ className={cn(152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",
- @@ -193,13 +149,8 @@193- ? "pointer-events-none translate-y-28 opacity-0"194- : "opacity-100",195- )}196- >197- <ComposerBannerStackAlert198- item={item}199- attached={false}200- exiting={exitingItemId === item.id}201- onDismissRequest={() => requestDismiss(item)}202- />203- </div>204- ))}205- </div>149+ <div className="min-h-0 overflow-hidden">150+ <div151+ className={cn(152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",153+ "translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]",154+ "group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100",155+ "group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100",156+ )}@@ -6,13 +5,14 @@65 }: {76 planTitle: string | null;87 }) {98 return (10- <ComposerBanner.Row>11- <ComposerBanner.Icon />12- <ComposerBanner.Content>13- <span className="shrink-0 font-medium text-muted-foreground">Plan ready</span>9+ <div className="px-3 py-2 sm:px-4">10+ <div className="flex flex-wrap items-center gap-2">11+ <span className="text-xs font-medium text-muted-foreground">Plan ready</span>1412 {planTitle ? (15- <span className="min-w-0 flex-1 truncate text-foreground/85">{planTitle}</span>13+ <span className="min-w-0 flex-1 truncate text-xs text-foreground/85">{planTitle}</span>1614 ) : null}17- </ComposerBanner.Content>18- </ComposerBanner.Row>15+ </div>16+ {/* <div className="mt-2 text-xs text-muted-foreground">17+ Review the plan18+ </div> */}@@ -0,0 +1,13 @@1+import { LoaderCircleIcon } from "lucide-react";2+3+import { threadSyncLabel, type ThreadSyncPhase } from "../../threadSync";4+5+export function ThreadSyncStatusPill({ phase }: { readonly phase: ThreadSyncPhase }) {6+ const label = threadSyncLabel(phase);7+8+ return (9+ <div10+ aria-label={label}11+ className="chat-composer-drawer-surface chat-composer-drawer-attached chat-composer-drawer-slot pointer-events-none flex items-center gap-2 px-3 pt-2 pb-[calc(var(--chat-composer-attachment-overlap)_+_0.375rem)] text-foreground text-xs font-medium sm:px-4"12+ data-thread-sync-drawer="true"13+ role="status"@@ -75,8 +83,8 @@7583 if (entries.length === 0) return;7684 event.preventDefault();7785 event.stopPropagation();78- const currentIndex = entries.findIndex((entry) => entry.id === highlightedEntry?.id);86+ const currentIndex = entries.findIndex((entry) => entry.id === highlightedId);7987 const offset = event.key === "ArrowDown" ? 1 : -1;8088 const normalizedIndex = currentIndex >= 0 ? currentIndex : offset === 1 ? -1 : 0;8189 const nextIndex = (normalizedIndex + offset + entries.length) % entries.length;8290 setHighlightedId(entries[nextIndex]?.id ?? null);
- @@ -193,13 +149,8 @@193- ? "pointer-events-none translate-y-28 opacity-0"194- : "opacity-100",195- )}196- >197- <ComposerBannerStackAlert198- item={item}199- attached={false}200- exiting={exitingItemId === item.id}201- onDismissRequest={() => requestDismiss(item)}202- />203- </div>204- ))}205- </div>149+ <div className="min-h-0 overflow-hidden">150+ <div151+ className={cn(152+ "invisible pointer-events-none space-y-2 pb-2 opacity-0",153+ "translate-y-1 transform-gpu transition-[opacity,transform] duration-150 ease-out will-change-[opacity,transform]",154+ "group-hover/banner-stack:visible group-hover/banner-stack:pointer-events-auto group-hover/banner-stack:translate-y-0 group-hover/banner-stack:opacity-100",155+ "group-focus-within/banner-stack:visible group-focus-within/banner-stack:pointer-events-auto group-focus-within/banner-stack:translate-y-0 group-focus-within/banner-stack:opacity-100",156+ )}@@ -2293,10 +2291,8 @@22932291 label={updateFailed ? "Retry" : "Update"}22942292 />22952293 ),2296- ...(updateInProgress || (!updateFailed && !versionMismatchDismissKey)2294+ ...(updateInProgress || updateFailed || !versionMismatchDismissKey22972295 ? {}22982296 : {22992297 dismissLabel: "Dismiss update notice",23002298 onDismiss: () => {2301- if (updateFailed) {2302- dismissServerUpdateFailure(serverUpdateState);
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
bd359f5e-6743-45d7-84e9-e1bcae1f6ee6You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Comment `@coderabbitai help` to get the list of available commands.