@devries-cameron20 / t3code Mirror · read-only / commits / 605c2bb734
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 19:00 UTC

fix(mobile): show the correct build channel in Android's Threads page header (#4861)

Alex committed Jul 30, 2026 at 15:30 UTC 605c2bb734bbebed0b19fc1ff6b514f41bd3659b
1 file changed +7 -2
apps/mobile/src/features/home/HomeHeader.tsx
+7 -2
@@ -1,5 +1,6 @@
1 import type { EnvironmentId, SidebarThreadSortOrder } from "@t3tools/contracts";
2 import type { MenuAction } from "@react-native-menu/menu";
3 +import Constants from "expo-constants";
4 import { NativeHeaderToolbar, NativeStackScreenOptions } from "../../native/StackHeader";
5 import { useCallback, useMemo, useRef } from "react";
6 import { Platform, Pressable, Text as RNText, TextInput, View } from "react-native";
@@ -9,6 +10,8 @@ import { useSafeAreaInsets } from "react-native-safe-area-context";
10 import { ControlPillMenu } from "../../components/ControlPill";
11 import { SymbolView } from "../../components/AppSymbol";
12 import { T3Wordmark } from "../../components/T3Wordmark";
13 +import { HOME_HORIZONTAL_INSET } from "../../lib/layoutMetrics";
14 +import { resolveMobileStageLabel } from "../../lib/mobileBranding";
15 import { useThemeColor } from "../../lib/useThemeColor";
16 import { useThreadListV2Enabled } from "../threads/use-thread-list-v2-enabled";
17 import { useHardwareKeyboardCommand } from "../keyboard/hardwareKeyboardCommands";
@@ -64,6 +67,7 @@ function AndroidHomeHeader(props: HomeHeaderProps) {
67 const insets = useSafeAreaInsets();
68 const iconColor = useThemeColor("--color-icon");
69 const mutedColor = useThemeColor("--color-foreground-muted");
70 + const stageLabel = resolveMobileStageLabel(Constants.expoConfig?.extra?.appVariant);
71 // Thread List v2 lays the list out in fixed creation order, so the
72 // sort/group filter controls would be silently ignored — hide them and
73 // key the "customized" icon state off the environment filter alone.
@@ -195,8 +199,9 @@ function AndroidHomeHeader(props: HomeHeaderProps) {
199 <>
200 <NativeStackScreenOptions options={{ headerShown: false }} />
201 <View
198 - className="border-b border-header-border bg-header px-4 pb-3"
202 + className="border-b border-header-border bg-header pb-3"
203 style={{
204 + paddingHorizontal: HOME_HORIZONTAL_INSET,
205 paddingTop: Math.max(insets.top, 12),
206 }}
207 >
@@ -210,7 +215,7 @@ function AndroidHomeHeader(props: HomeHeaderProps) {
215 </RNText>
216 <View className="rounded-full bg-subtle px-2 py-0.75">
217 <RNText className="text-[11px] font-t3-bold tracking-[1.1px] text-foreground-muted uppercase">
213 - Alpha
218 + {stageLabel}
219 </RNText>
220 </View>
221 </View>