From adc387c0bd4d16f9265657a65e927df577e42613 Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:42:01 -0700 Subject: [PATCH 1/3] fix: connect command theme toggle to shared theme provider --- app/(tabs)/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 0a28a0d..1cba981 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -13,6 +13,7 @@ import { ScreenContainer } from "@/components/screen-container"; import { HostInformation } from "@/components/host-information"; import { palette, statusLabel, type AssessmentStatus } from "@/constants/commander"; import { useLocalAssessment } from "@/hooks/use-local-assessment"; +import { useThemeContext } from "@/lib/theme-provider"; const statusColors: Record = { critical: { text: palette.red, fill: "#FCECEB" }, @@ -27,8 +28,8 @@ export default function CommandCenterScreen() { const checks = report?.checks ?? []; const summary = report?.summary; - const [themeMode, setThemeMode] = useState<"dark" | "modern">("dark"); - const modern = themeMode === "modern"; + const { colorScheme, setColorScheme } = useThemeContext(); + const modern = colorScheme === "light"; const [expandedFinding, setExpandedFinding] = useState(null); const [usbExpanded, setUsbExpanded] = useState(false); const [scopeOpen, setScopeOpen] = useState(false); @@ -52,7 +53,7 @@ export default function CommandCenterScreen() { DROID COMMANDER // FIELD CONSOLE Droid Commander - setThemeMode(modern ? "dark" : "modern")} style={[styles.themeToggle, modern && styles.themeToggleModern]}> + setColorScheme(modern ? "dark" : "light")} style={[styles.themeToggle, modern && styles.themeToggleModern]}> {modern ? "◐ MODERN" : "◑ TACTICAL"} @@ -64,7 +65,7 @@ export default function CommandCenterScreen() { A consent-first field instrument for learning how device posture can be measured and improved. - FIELD BUILD{"\n"}0.1 + TEST BUILD{"\n"}UI-FIX-01 From b24bf492c162829fae017fb6d7c266b73927dde1 Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:42:03 -0700 Subject: [PATCH 2/3] fix: coordinate native splash with launch overlay --- app/_layout.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/_layout.tsx b/app/_layout.tsx index 1cff7cb..60e466d 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -7,6 +7,9 @@ import { GestureHandlerRootView } from "react-native-gesture-handler"; import "react-native-reanimated"; import { Platform } from "react-native"; import * as SplashScreen from "expo-splash-screen"; + +// Keep the native splash visible until the in-app launch overlay has mounted. +void SplashScreen.preventAutoHideAsync().catch(() => {}); import "@/lib/_core/nativewind-pressable"; import { ThemeProvider } from "@/lib/theme-provider"; import { AnimatedLaunchScreen } from "@/components/animated-launch-screen"; @@ -35,13 +38,6 @@ export default function RootLayout() { const [insets, setInsets] = useState(initialInsets); const [frame, setFrame] = useState(initialFrame); - // Explicitly dismiss the native splash once the React root has mounted. - useEffect(() => { - void SplashScreen.hideAsync().catch(() => { - // Expo may already have dismissed the splash screen. - }); - }, []); - // Initialize Manus runtime for cookie injection from parent container. useEffect(() => { initManusRuntime(); From d796ea6df64c8137de698b936116c17da749d1d3 Mon Sep 17 00:00:00 2001 From: l2uler <335852737+CodePhrex@users.noreply.github.com> Date: Sun, 25 Oct 2026 16:42:05 -0700 Subject: [PATCH 3/3] fix: reveal animated launch after native splash --- components/animated-launch-screen.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/animated-launch-screen.tsx b/components/animated-launch-screen.tsx index ea3328d..1331c94 100644 --- a/components/animated-launch-screen.tsx +++ b/components/animated-launch-screen.tsx @@ -7,6 +7,7 @@ import { View, } from "react-native"; +import * as SplashScreen from "expo-splash-screen"; import { design } from "@/constants/design-system"; /** @@ -21,6 +22,9 @@ export function AnimatedLaunchScreen() { const progress = useRef(new Animated.Value(0)).current; useEffect(() => { + // Reveal this overlay only after it has mounted over the native splash. + void SplashScreen.hideAsync().catch(() => {}); + const pulse = Animated.loop( Animated.sequence([ Animated.timing(ring, {