Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web,mobile): subagent cards show which account each subagent runs on #24898

Mergedvitalyiegorov(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/24898/headmerged by maria-rcks View on GitHub

Showing 7 changed files with 80 additions and 21 deletions (loading 4).

x
0 of 7 viewed, 7 left
4 additions and 3 deletionsapps/mobile/src/components/ProviderIcon.tsxModified
View file
@@ -10,6 +10,7 @@
import { resolveOfficialAcpRegistryIconUrl } from "@t3tools/contracts";
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
import { AppText as Text } from "./ui/AppText";
+import { cn } from "../lib/cn";
import { getProviderClient } from "@t3tools/client-runtime/provider-clients";
​
type ProviderIconProps = {
@@ -158,7 +159,7 @@
readonly displayName: string;
readonly accentColor?: string;
readonly showBadge?: boolean;
- readonly surfaceColor: string;
+ readonly surfaceColor?: string;
}) {
const accentColor = normalizeProviderAccentColor(props.accentColor);
return (
@@ -173,14 +174,14 @@
style={{ position: "absolute", right: -3, bottom: -3, width: 32, alignItems: "flex-end" }}
<View
- className={accentColor ? undefined : "bg-card"}
+ className={cn(!accentColor && "bg-card", !props.surfaceColor && "border-screen")}
style={{
height: 12,
minWidth: 12,
paddingHorizontal: 2,
borderRadius: 999,