GeezerVison is showing github.com — fix: reconcile main's round-9 features after the rebase · pingdotgg/t3code@b8ab101
File treeExpand file treeCollapse file tree Open diff view settings mobile/src/features/threads
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/NewTaskDraftScreen.tsx +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -70,6 +70,7 @@ import { | 70 | 70 | type DraftComposerFileAttachment, | 71 | 71 | } from "../../lib/composerImages"; | 72 | 72 | import { useScaledTextRole } from "../settings/appearance/useScaledTextRole"; | | 73 | +import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider"; | 73 | 74 | import { | 74 | 75 | clearComposerDraftContent, | 75 | 76 | flushComposerDrafts, | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadComposer.tsx +19-12Lines changed: 19 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,6 @@ import { | 23 | 23 | Platform, | 24 | 24 | Pressable, | 25 | 25 | StyleSheet, | 26 | | - useColorScheme, | 27 | 26 | View, | 28 | 27 | type ViewStyle, | 29 | 28 | } from "react-native"; | @@ -36,6 +35,7 @@ import Animated, { | 36 | 35 | LinearTransition, | 37 | 36 | } from "react-native-reanimated"; | 38 | 37 | import { useThemeColor } from "../../lib/useThemeColor"; | | 38 | +import { themeColorWithAlpha } from "../../lib/mobileTheme"; | 39 | 39 | import { armAgentAwarenessLiveActivityForLocalWork } from "../agent-awareness/remoteRegistration"; | 40 | 40 | import { scopedThreadKey } from "../../lib/scopedEntities"; | 41 | 41 |
| @@ -61,6 +61,7 @@ import type { | 61 | 61 | } from "../../lib/composerImages"; | 62 | 62 | import { buildModelOptions, groupByProvider } from "../../lib/modelOptions"; | 63 | 63 | import { useScaledTextRole } from "../settings/appearance/useScaledTextRole"; | | 64 | +import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider"; | 64 | 65 | import type { RemoteClientConnectionState } from "../../lib/connection"; | 65 | 66 | import { | 66 | 67 | insertRankedSearchResult, | @@ -151,11 +152,14 @@ export function ComposerSurface(props: { | 151 | 152 | /** Existing thread composers morph between pill and card layouts. */ | 152 | 153 | readonly animateLayout?: boolean; | 153 | 154 | }) { | | 155 | + const cardColor = useThemeColor("--color-card-translucent"); | | 156 | + const borderColor = useThemeColor("--color-border"); | | 157 | + const shadowColor = useThemeColor("--color-primary-shadow"); | 154 | 158 | // Drop shadow lives on a wrapper: `overflow: "hidden"` on the surface itself | 155 | 159 | // (needed to clip content to the pill shape) would clip the shadow on iOS. | 156 | 160 | const shadowStyle: ViewStyle = { | 157 | 161 | borderRadius: props.style.borderRadius, | 158 | | - shadowColor: "#000000", | | 162 | + shadowColor, | 159 | 163 | shadowOpacity: props.isDarkMode ? 0.35 : 0.12, | 160 | 164 | shadowRadius: 14, | 161 | 165 | shadowOffset: { width: 0, height: 6 }, | @@ -170,9 +174,9 @@ export function ComposerSurface(props: { | 170 | 174 | <GlassSurface | 171 | 175 | chrome="none" | 172 | 176 | fallbackStyle={{ | 173 | | - backgroundColor: props.isDarkMode ? "rgba(44,44,46,0.96)" : "rgba(255,255,255,0.96)", | | 177 | + backgroundColor: cardColor, | 174 | 178 | borderWidth: 1, | 175 | | - borderColor: props.isDarkMode ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.06)", | | 179 | + borderColor, | 176 | 180 | }} | 177 | 181 | glassEffectStyle="regular" | 178 | 182 | // The composer is a passive material containing interactive controls. | @@ -242,6 +246,7 @@ const ComposerConnectionStatusPill = memo(function ComposerConnectionStatusPill( | 242 | 246 | readonly status: ComposerStatusPillState; | 243 | 247 | }) { | 244 | 248 | const isReconnecting = props.status.kind !== "unavailable"; | | 249 | + const indicatorColor = useThemeColor("--color-icon-muted"); | 245 | 250 |
| 246 | 251 | return ( | 247 | 252 | <Animated.View | @@ -253,10 +258,10 @@ const ComposerConnectionStatusPill = memo(function ComposerConnectionStatusPill( | 253 | 258 | <Pressable | 254 | 259 | accessibilityRole="button" | 255 | 260 | onPress={props.onPress} | 256 | | - className="max-w-full flex-row items-center gap-2 rounded-full bg-white/90 px-3 py-2 shadow-sm active:opacity-70 dark:bg-neutral-900/90" | | 261 | + className="max-w-full flex-row items-center gap-2 rounded-full bg-card px-3 py-2 shadow-sm active:opacity-70" | 257 | 262 | > | 258 | 263 | {isReconnecting ? ( | 259 | | - <ActivityIndicator size="small" color="#8e8e93" /> | | 264 | + <ActivityIndicator size="small" color={indicatorColor} /> | 260 | 265 | ) : ( | 261 | 266 | <View className="h-2 w-2 rounded-full bg-red-500" /> | 262 | 267 | )} | @@ -273,7 +278,8 @@ const ComposerConnectionStatusPill = memo(function ComposerConnectionStatusPill( | 273 | 278 |
| 274 | 279 | export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposerProps) { | 275 | 280 | const navigation = useNavigation(); | 276 | | - const isDarkMode = useColorScheme() === "dark"; | | 281 | + const { themeAppearance } = useAppearancePreferences(); | | 282 | + const isDarkMode = themeAppearance === "dark"; | 277 | 283 | const foregroundColor = useThemeColor("--color-foreground"); | 278 | 284 | const bodyText = useScaledTextRole("body"); | 279 | 285 | const fallbackInputRef = useRef<ComposerEditorHandle>(null); | @@ -341,8 +347,11 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer | 341 | 347 | environmentLabel: props.environmentLabel, | 342 | 348 | threadSyncPhase: props.threadSyncPhase, | 343 | 349 | }); | 344 | | - const toolbarFadeOpaque = isDarkMode ? "rgba(0,0,0,0.95)" : "rgba(255,255,255,0.95)"; | 345 | | - const toolbarFadeTransparent = isDarkMode ? "rgba(0,0,0,0)" : "rgba(255,255,255,0)"; | | 350 | + const toolbarSurface = String(useThemeColor("--color-card")); | | 351 | + const backdropSurface = String(useThemeColor("--color-screen")); | | 352 | + const toolbarFadeOpaque = themeColorWithAlpha(toolbarSurface, 0.95); | | 353 | + const toolbarFadeTransparent = themeColorWithAlpha(toolbarSurface, 0); | | 354 | + const backdropGradient = `linear-gradient(to bottom, ${themeColorWithAlpha(backdropSurface, 0)} 0%, ${themeColorWithAlpha(backdropSurface, 0.6)} 55%, ${themeColorWithAlpha(backdropSurface, 0.9)} 100%)`; | 346 | 355 | const selectedProviderStatus = useMemo(() => { | 347 | 356 | if (!props.serverConfig) return null; | 348 | 357 | return ( | @@ -649,9 +658,7 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer | 649 | 658 | style={[ | 650 | 659 | StyleSheet.absoluteFill, | 651 | 660 | { | 652 | | - experimental_backgroundImage: isDarkMode | 653 | | - ? "linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.9) 100%)" | 654 | | - : "linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.9) 100%)", | | 661 | + experimental_backgroundImage: backdropGradient, | 655 | 662 | }, | 656 | 663 | ]} | 657 | 664 | /> | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/ThreadDetailScreen.tsx +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,6 @@ import { | 32 | 32 | AppState, | 33 | 33 | Keyboard, | 34 | 34 | Platform, | 35 | | - useColorScheme, | 36 | 35 | useWindowDimensions, | 37 | 36 | View, | 38 | 37 | type GestureResponderEvent, | @@ -53,6 +52,7 @@ import Animated, { | 53 | 52 | import { useSafeAreaInsets } from "react-native-safe-area-context"; | 54 | 53 |
| 55 | 54 | import { ControlPill } from "../../components/ControlPill"; | | 55 | +import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider"; | 56 | 56 | import type { ComposerEditorHandle } from "../../components/ComposerEditor"; | 57 | 57 | import type { StatusTone } from "../../components/StatusPill"; | 58 | 58 | import type { DraftComposerAttachment } from "../../lib/composerImages"; | @@ -592,7 +592,8 @@ export const ThreadDetailScreen = memo(function ThreadDetailScreen(props: Thread | 592 | 592 | }, [freeze, scrollMessageToEnd]); | 593 | 593 |
| 594 | 594 | const showScrollToEndButton = contentPresentationKind === "ready" && !endFollowEnabled; | 595 | | - const isDarkMode = useColorScheme() === "dark"; | | 595 | + const { themeAppearance } = useAppearancePreferences(); | | 596 | + const isDarkMode = themeAppearance === "dark"; | 596 | 597 |
| 597 | 598 | const handleFeedTouchStart = useCallback((event: GestureResponderEvent) => { | 598 | 599 | feedTouchStartRef.current = { | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/GitActionsControl.tsx +24-12Lines changed: 24 additions & 12 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -436,12 +436,18 @@ function GitActionProgressButtonContent({ | 436 | 436 | )} | 437 | 437 | > | 438 | 438 | <div className="min-h-0 overflow-hidden"> | 439 | | - <p | 440 | | - className="truncate pt-0.5 text-left text-[11px] font-normal text-muted-foreground" | 441 | | - title={progress.output ?? undefined} | 442 | | - > | 443 | | - {progress.output} | 444 | | - </p> | | 439 | + <Tooltip> | | 440 | + <TooltipTrigger | | 441 | + render={ | | 442 | + <p className="truncate pt-0.5 text-left text-[11px] font-normal text-muted-foreground" /> | | 443 | + } | | 444 | + > | | 445 | + {progress.output} | | 446 | + </TooltipTrigger> | | 447 | + <TooltipPopup side="bottom" className="max-w-96 break-words"> | | 448 | + {progress.output} | | 449 | + </TooltipPopup> | | 450 | + </Tooltip> | 445 | 451 | </div> | 446 | 452 | </div> | 447 | 453 | </div> | @@ -466,12 +472,18 @@ function GitActionSuccessButtonContent({ success }: { success: InlineGitActionSu | 466 | 472 | )} | 467 | 473 | > | 468 | 474 | <div className="min-h-0 overflow-hidden"> | 469 | | - <p | 470 | | - className="truncate pt-0.5 text-left text-[11px] font-normal text-muted-foreground" | 471 | | - title={success.description ?? undefined} | 472 | | - > | 473 | | - {success.description} | 474 | | - </p> | | 475 | + <Tooltip> | | 476 | + <TooltipTrigger | | 477 | + render={ | | 478 | + <p className="truncate pt-0.5 text-left text-[11px] font-normal text-muted-foreground" /> | | 479 | + } | | 480 | + > | | 481 | + {success.description} | | 482 | + </TooltipTrigger> | | 483 | + <TooltipPopup side="bottom" className="max-w-96 break-words"> | | 484 | + {success.description} | | 485 | + </TooltipPopup> | | 486 | + </Tooltip> | 475 | 487 | </div> | 476 | 488 | </div> | 477 | 489 | </div> | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/MessagesTimeline.test.tsx +2-8Lines changed: 2 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -127,7 +127,6 @@ function matchMedia() { | 127 | 127 | } | 128 | 128 |
| 129 | 129 | let MessagesTimeline: typeof import("./MessagesTimeline").MessagesTimeline; | 130 | | -let toolCallExpandedBodyClassName: typeof import("./MessagesTimeline").toolCallExpandedBodyClassName; | 131 | 130 |
| 132 | 131 | beforeAll(async () => { | 133 | 132 | const classList = { | @@ -161,7 +160,7 @@ beforeAll(async () => { | 161 | 160 | }, | 162 | 161 | }); | 163 | 162 |
| 164 | | - ({ MessagesTimeline, toolCallExpandedBodyClassName } = await import("./MessagesTimeline")); | | 163 | + ({ MessagesTimeline } = await import("./MessagesTimeline")); | 165 | 164 | }, 30_000); | 166 | 165 |
| 167 | 166 | const ACTIVE_THREAD_ENVIRONMENT_ID = EnvironmentId.make("environment-local"); | @@ -232,11 +231,6 @@ function buildAssistantTimelineEntry(text: string) { | 232 | 231 | } | 233 | 232 |
| 234 | 233 | describe("MessagesTimeline", () => { | 235 | | - it("sizes expanded tool details with the configured code font size", () => { | 236 | | - expect(toolCallExpandedBodyClassName).toContain("var(--font-size-code"); | 237 | | - expect(toolCallExpandedBodyClassName).not.toContain("text-[11px]"); | 238 | | - }); | 239 | | - | 240 | 234 | it("preserves arbitrary XML-like tags and comparisons in rendered user messages", async () => { | 241 | 235 | const { MessagesTimeline } = await import("./MessagesTimeline"); | 242 | 236 | const markup = renderToStaticMarkup( | @@ -712,7 +706,7 @@ describe("MessagesTimeline", () => { | 712 | 706 | />, | 713 | 707 | ); | 714 | 708 |
| 715 | | - expect(markup).toContain("Steered the active turn"); | | 709 | + expect(markup).toContain("data-base-ui-tooltip-trigger"); | 716 | 710 | expect(markup).toContain("lucide-redo-2"); | 717 | 711 | expect(markup).toContain('data-user-message-intent="steer"'); | 718 | 712 | expect(markup).toContain("items-center justify-end gap-1"); | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/MessagesTimeline.tsx +19-13Lines changed: 19 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1227,20 +1227,26 @@ function UserMessageIntentMarker({ | 1227 | 1227 | }; | 1228 | 1228 | const IntentIcon = presentation.icon; | 1229 | 1229 | return ( | 1230 | | - <div | 1231 | | - className="me-1 flex items-center justify-end gap-1 text-xs leading-none text-muted-foreground" | 1232 | | - data-user-message-intent={intent} | 1233 | | - title={ | 1234 | | - intent === "queued_turn" | | 1230 | + <Tooltip> | | 1231 | + <TooltipTrigger | | 1232 | + render={ | | 1233 | + <div | | 1234 | + className="me-1 flex items-center justify-end gap-1 text-xs leading-none text-muted-foreground" | | 1235 | + data-user-message-intent={intent} | | 1236 | + /> | | 1237 | + } | | 1238 | + > | | 1239 | + {IntentIcon ? <IntentIcon aria-hidden="true" className="size-3" /> : null} | | 1240 | + {presentation.label} | | 1241 | + </TooltipTrigger> | | 1242 | + <TooltipPopup side="top"> | | 1243 | + {intent === "queued_turn" | 1235 | 1244 | ? "Queued behind the active turn" | 1236 | 1245 | : intent === "promoted_queued_to_steer" | 1237 | 1246 | ? "Originally queued, then promoted to steer the active turn" | 1238 | | - : "Steered the active turn" | 1239 | | - } | 1240 | | - > | 1241 | | - {IntentIcon ? <IntentIcon aria-hidden="true" className="size-3" /> : null} | 1242 | | - {presentation.label} | 1243 | | - </div> | | 1247 | + : "Steered the active turn"} | | 1248 | + </TooltipPopup> | | 1249 | + </Tooltip> | 1244 | 1250 | ); | 1245 | 1251 | } | 1246 | 1252 |
| @@ -2500,7 +2506,7 @@ function T3CodeToolLogo({ className }: { className?: string }) { | 2500 | 2506 | "flex size-4 shrink-0 items-center justify-center overflow-hidden rounded-[4px] bg-background ring-1 ring-border/65", | 2501 | 2507 | className, | 2502 | 2508 | )} | 2503 | | - title="T3 Code MCP tool" | | 2509 | + aria-label="T3 Code MCP tool" | 2504 | 2510 | > | 2505 | 2511 | <img alt="" aria-hidden="true" className="size-4 object-cover" src={logoUrl} /> | 2506 | 2512 | </span> | @@ -2613,7 +2619,7 @@ function buildToolCallExpandedBody( | 2613 | 2619 | return blocks.length > 0 ? blocks.join("\n\n") : null; | 2614 | 2620 | } | 2615 | 2621 |
| 2616 | | -export const toolCallExpandedBodyClassName = | | 2622 | +const toolCallExpandedBodyClassName = | 2617 | 2623 | "max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-secondary-label text-[length:var(--font-size-code,0.6875rem)] leading-relaxed select-text"; | 2618 | 2624 |
| 2619 | 2625 | function workEntryIconName(workEntry: TimelineWorkEntry): WorkEntryIconName { | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/QueuedRunsControl.tsx +9-3Lines changed: 9 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,6 +18,7 @@ import { useThreadProjection } from "../../state/entities"; | 18 | 18 | import { useAtomCommand } from "../../state/use-atom-command"; | 19 | 19 | import type { ChatMessage } from "../../types"; | 20 | 20 | import { Button } from "../ui/button"; | | 21 | +import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip"; | 21 | 22 |
| 22 | 23 | export function QueuedRunsControl(props: { | 23 | 24 | readonly environmentId: EnvironmentId; | @@ -201,9 +202,14 @@ export function QueuedRunsControl(props: { | 201 | 202 | </> | 202 | 203 | ) : ( | 203 | 204 | <> | 204 | | - <span className="min-w-0 flex-1 truncate text-xs" title={item.text}> | 205 | | - {item.text} | 206 | | - </span> | | 205 | + <Tooltip> | | 206 | + <TooltipTrigger render={<span className="min-w-0 flex-1 truncate text-xs" />}> | | 207 | + {item.text} | | 208 | + </TooltipTrigger> | | 209 | + <TooltipPopup side="top" className="max-w-96 break-words"> | | 210 | + {item.text} | | 211 | + </TooltipPopup> | | 212 | + </Tooltip> | 207 | 213 | <Button | 208 | 214 | size="icon-xs" | 209 | 215 | variant="ghost" | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/chat/TimelineSystemDivider.tsx +16-9Lines changed: 16 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,7 @@ import type { ReactNode } from "react"; | 2 | 2 | import type { LucideIcon } from "lucide-react"; | 3 | 3 |
| 4 | 4 | import { cn } from "~/lib/utils"; | | 5 | +import { Tooltip, TooltipPopup, TooltipTrigger } from "~/components/ui/tooltip"; | 5 | 6 |
| 6 | 7 | export function TimelineSystemDivider(props: { | 7 | 8 | readonly label: string; | @@ -35,15 +36,21 @@ export function TimelineSystemDivider(props: { | 35 | 36 | > | 36 | 37 | <span aria-hidden="true" className="h-px flex-1 bg-border/70" /> | 37 | 38 | {props.onAction ? ( | 38 | | - <button | 39 | | - type="button" | 40 | | - aria-label={props.actionLabel} | 41 | | - onClick={props.onAction} | 42 | | - className="flex min-w-0 items-center gap-1.5 rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-muted" | 43 | | - title={props.actionLabel} | 44 | | - > | 45 | | - {content} | 46 | | - </button> | | 39 | + <Tooltip> | | 40 | + <TooltipTrigger | | 41 | + render={ | | 42 | + <button | | 43 | + type="button" | | 44 | + aria-label={props.actionLabel} | | 45 | + onClick={props.onAction} | | 46 | + className="flex min-w-0 items-center gap-1.5 rounded-full border border-border/70 bg-background px-2.5 py-1 transition-colors hover:bg-muted" | | 47 | + /> | | 48 | + } | | 49 | + > | | 50 | + {content} | | 51 | + </TooltipTrigger> | | 52 | + <TooltipPopup side="top">{props.actionLabel}</TooltipPopup> | | 53 | + </Tooltip> | 47 | 54 | ) : ( | 48 | 55 | <span className="flex min-w-0 items-center gap-1.5 rounded-full px-2 py-1">{content}</span> | 49 | 56 | )} | |
Collapse file Copy file name to clipboardExpand all lines: apps/web/src/components/settings/SettingsSidebarNav.tsx +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,7 @@ import { | 13 | 13 | import { | 14 | 14 | ArchiveIcon, | 15 | 15 | ArrowLeftIcon, | | 16 | + BlocksIcon, | 16 | 17 | BotIcon, | 17 | 18 | CalendarClockIcon, | 18 | 19 | FlaskConicalIcon, | @@ -73,6 +74,7 @@ const SETTINGS_SECTION_ICONS: Readonly< | 73 | 74 | "/settings/appearance": PaletteIcon, | 74 | 75 | "/settings/keybindings": KeyboardIcon, | 75 | 76 | "/settings/providers": BotIcon, | | 77 | + "/settings/integrations": BlocksIcon, | 76 | 78 | "/settings/scheduled-tasks": CalendarClockIcon, | 77 | 79 | "/settings/source-control": GitBranchIcon, | 78 | 80 | "/settings/connections": Link2Icon, | |
|