From 9bafd33cb383db46c1b052ca6bd3734665f5736d Mon Sep 17 00:00:00 2001 From: suraj-markup Date: Tue, 3 Mar 2026 04:41:04 +0530 Subject: [PATCH] feat: add Tailscale setup guide and hide test notifications in prod - Add Tailscale as the recommended connection method in the setup guide with step-by-step instructions - Add alternative sections for Local Wi-Fi and ngrok - Wrap test notification buttons in __DEV__ so they only show during development and are stripped from production builds - Update placeholder and hint text to show Tailscale IP format first Co-Authored-By: Claude Opus 4.6 --- .../mobile/src/screens/SettingsScreen.tsx | 69 ++++++++++++------- 1 file changed, 43 insertions(+), 26 deletions(-) diff --git a/packages/mobile/src/screens/SettingsScreen.tsx b/packages/mobile/src/screens/SettingsScreen.tsx index 730eb402e..4fb1d0f24 100644 --- a/packages/mobile/src/screens/SettingsScreen.tsx +++ b/packages/mobile/src/screens/SettingsScreen.tsx @@ -188,6 +188,7 @@ export default function SettingsScreen({ navigation }: Props) { Backend URL + Tailscale (recommended): use your Mac's Tailscale IP (100.x.x.x).{"\n"} Local network: enter your Mac's LAN IP.{"\n"} ngrok: paste the https:// tunnel URL for port 3000. @@ -196,7 +197,7 @@ export default function SettingsScreen({ navigation }: Props) { style={styles.input} value={input} onChangeText={setInput} - placeholder="http://192.168.x.x:3000 or https://abc.ngrok-free.app" + placeholder="http://100.x.x.x:3000 or http://192.168.x.x:3000" placeholderTextColor="#8b949e" autoCapitalize="none" autoCorrect={false} @@ -237,33 +238,37 @@ export default function SettingsScreen({ navigation }: Props) { /> - - Test Notifications - Fire a test notification to verify permissions are working. Tap the notification to navigate to the session. - - Test "Agent needs input" (respond) - - - Test "PR ready to merge" (merge) - - - Test "Session needs review" (review) - - + {__DEV__ && ( + + Test Notifications + Fire a test notification to verify permissions are working. Tap the notification to navigate to the session. + + Test "Agent needs input" (respond) + + + Test "PR ready to merge" (merge) + + + Test "Session needs review" (review) + + + )} - Setup Guide - - - - - + Setup Guide — Tailscale (Recommended) + + + + + + Alternative: Local Wi-Fi + + + + Alternative: ngrok + + + @@ -321,6 +326,18 @@ const styles = StyleSheet.create({ textTransform: "uppercase", marginBottom: 12, }, + sectionDivider: { + color: "#8b949e", + fontSize: 11, + fontWeight: "700", + letterSpacing: 0.8, + textTransform: "uppercase", + marginTop: 12, + marginBottom: 12, + paddingTop: 12, + borderTopWidth: 1, + borderTopColor: "#30363d", + }, hint: { color: "#8b949e", fontSize: 13,