Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 优化远程桌面授权页并采用 iOS 原生组件 (#4352)
Dash2402c8654764
diff --git a/apps/mobile/src/remote-desktop/PermissionGuide.tsx b/apps/mobile/src/remote-desktop/PermissionGuide.tsxindex 4cfdecba52..52b048de28 100644--- a/apps/mobile/src/remote-desktop/PermissionGuide.tsx+++ b/apps/mobile/src/remote-desktop/PermissionGuide.tsx@@ -1,19 +1,12 @@import { useEffect, useRef, useState } from "react";-import { AppState, Pressable, StyleSheet, View } from "react-native";+import { AppState } from "react-native";import { useTranslation } from "react-i18next";import {desktopPermissionReady,type RemoteDesktopPermissions,type RemoteDesktopRequest,} from "@cindy/device-link";-import { Text } from "@/components/AppText";-import {- spacing,- radius,- typeScale,- useThemedStyles,- type ThemeColors,-} from "@/theme";+import { PermissionGuideView } from "./PermissionGuideView";export function PermissionGuide({initial,@@ -25,7 +18,6 @@ export function PermissionGuide({reconnect(): void;}) {const { t } = useTranslation();- const styles = useThemedStyles(makeStyles);const [status, setStatus] = useState(initial);const [pending, setPending] = useState(false);const [notice, setNotice] = useState<string | null>(null);@@ -90,86 +82,45 @@ export function PermissionGuide({desktopPermissionReady(status.screenRecording) &&desktopPermissionReady(status.accessibility);return (- <View style={styles.panel}>- <Text style={styles.text}>- {t(- ready- ? "remoteDesktop.permissionsReady"- : "remoteDesktop.permissionsIntro",- )}- </Text>- {status &&- (["screenRecording", "accessibility"] as const).map((permission) => (- <View style={styles.row} key={permission}>- <Text style={styles.text}>{t(`remoteDesktop.${permission}`)}</Text>- <Text style={styles.caption}>- {t(- desktopPermissionReady(status[permission])- ? "remoteDesktop.permissionGranted"- : status[permission] === "unknown"- ? "remoteDesktop.permissionUnknown"- : "remoteDesktop.permissionMissing",- )}- </Text>- </View>- ))}- <View style={styles.actions}>- {status && !ready && (- <Pressable- accessibilityRole="button"- disabled={pending}- onPress={() => {- void guide();- }}- style={styles.button}- >- <Text style={styles.text}>- {t(- pending- ? "remoteDesktop.permissionChecking"- : "remoteDesktop.openGuideOnComputer",- )}- </Text>- </Pressable>- )}- <Pressable- accessibilityRole="button"- onPress={reconnect}- style={styles.button}- >- <Text style={styles.text}>- {t("remoteDesktop.reconnectAfterPermissions")}- </Text>- </Pressable>- </View>- {notice && (- <Text accessibilityRole="alert" style={styles.caption}>- {t(`remoteDesktop.${notice}`)}- </Text>+ <PermissionGuideView+ title={t("remoteDesktop.permissionsTitle")}+ intro={t(+ ready+ ? "remoteDesktop.permissionsReady"+ : "remoteDesktop.permissionsIntro",)}- </View>+ rows={+ status+ ? (["screenRecording", "accessibility"] as const).map(+ (permission) => ({+ label: t(`remoteDesktop.${permission}`),+ value: t(+ desktopPermissionReady(status[permission])+ ? "remoteDesktop.permissionGranted"+ : status[permission] === "unknown"+ ? "remoteDesktop.permissionUnknown"+ : "remoteDesktop.permissionMissing",+ ),+ }),+ )+ : []+ }+ guideLabel={+ status && !ready+ ? t(+ pending+ ? "remoteDesktop.permissionChecking"+ : "remoteDesktop.openGuideOnComputer",+ )+ : undefined+ }+ pending={pending}+ onGuide={() => {+ void guide();+ }}+ reconnectLabel={t("remoteDesktop.reconnectAfterPermissions")}+ onReconnect={reconnect}+ notice={notice ? t(`remoteDesktop.${notice}`) : undefined}+ />);}-const makeStyles = (colors: ThemeColors) =>- StyleSheet.create({- panel: {- padding: spacing.md,- gap: spacing.sm,- backgroundColor: colors.surface,- },- row: {- flexDirection: "row",- justifyContent: "space-between",- gap: spacing.sm,- },- actions: { flexDirection: "row", flexWrap: "wrap", gap: spacing.sm },- button: {- minHeight: 44,- justifyContent: "center",- paddingHorizontal: spacing.md,- borderRadius: radius.control,- backgroundColor: colors.surfaceElevated,- },- text: { fontSize: typeScale.body, color: colors.textPrimary },- caption: { fontSize: typeScale.caption, color: colors.textSecondary },- });diff --git a/apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx b/apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsxnew file mode 100644index 0000000000..d3f04fa4ef--- /dev/null+++ b/apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx@@ -0,0 +1,152 @@+import { Host } from "@expo/ui";+import {+ Button,+ Divider,+ LabeledContent,+ Text,+ VStack,+} from "@expo/ui/swift-ui";+import {+ accessibilityAddTraits,+ background,+ buttonBorderShape,+ buttonStyle,+ controlSize,+ disabled,+ fixedSize,+ font,+ foregroundStyle,+ frame,+ multilineTextAlignment,+ padding,+ shapes,+} from "@expo/ui/swift-ui/modifiers";+import { View } from "react-native";+import { Text as AppText } from "@/components/AppText";+import { radius, spacing, textStyles, useTheme } from "@/theme";+import { useLiquidGlassAvailable } from "@/session/useLiquidGlassAvailable";+import type { PermissionGuideViewProps } from "./PermissionGuideView";++export function PermissionGuideView(props: PermissionGuideViewProps) {+ const { colors, mode } = useTheme();+ const glass = useLiquidGlassAvailable();+ const primaryStyle = buttonStyle(+ glass ? "glassProminent" : "borderedProminent",+ );+ return (+ <View+ style={{+ padding: spacing.md,+ gap: spacing.md,+ backgroundColor: colors.surface,+ }}+ >+ <Host+ matchContents={{ vertical: true }}+ colorScheme={mode}+ seedColor={colors.cta}+ ignoreSafeArea="all"+ >+ <VStack+ alignment="leading"+ spacing={spacing.md}+ modifiers={[frame({ maxWidth: Infinity, alignment: "leading" })]}+ >+ <Text+ modifiers={[+ font({ textStyle: "title2", weight: "medium" }),+ foregroundStyle(colors.textPrimary),+ accessibilityAddTraits(["isHeader"]),+ ]}+ >+ {props.title}+ </Text>+ <Text+ modifiers={[+ font({ textStyle: "subheadline" }),+ foregroundStyle(colors.textSecondary),+ ]}+ >+ {props.intro}+ </Text>+ {props.rows.length > 0 && (+ <VStack+ spacing={spacing.md}+ modifiers={[+ padding({ all: spacing.md }),+ background(+ colors.surfaceElevated,+ shapes.roundedRectangle({ cornerRadius: radius.container }),+ ),+ ]}+ >+ {props.rows.map((row, index) => (+ <VStack key={row.label} spacing={spacing.md}>+ {index > 0 && <Divider />}+ <LabeledContent+ label={+ <Text modifiers={[foregroundStyle(colors.textPrimary)]}>+ {row.label}+ </Text>+ }+ >+ <Text modifiers={[foregroundStyle(colors.textSecondary)]}>+ {row.value}+ </Text>+ </LabeledContent>+ </VStack>+ ))}+ </VStack>+ )}+ {props.guideLabel && (+ <Button+ onPress={props.onGuide}+ modifiers={[+ primaryStyle,+ buttonBorderShape("capsule"),+ controlSize("large"),+ disabled(props.pending),+ ]}+ >+ <Text+ modifiers={[+ fixedSize({ horizontal: false, vertical: true }),+ multilineTextAlignment("center"),+ frame({ maxWidth: Infinity, minHeight: 24 }),+ ]}+ >+ {props.guideLabel}+ </Text>+ </Button>+ )}+ <Button+ onPress={props.onReconnect}+ modifiers={[+ props.guideLabel ? buttonStyle("plain") : primaryStyle,+ buttonBorderShape("capsule"),+ controlSize("large"),+ ]}+ >+ <Text+ modifiers={[+ fixedSize({ horizontal: false, vertical: true }),+ multilineTextAlignment("center"),+ frame({ maxWidth: Infinity, minHeight: 44 }),+ ]}+ >+ {props.reconnectLabel}+ </Text>+ </Button>+ </VStack>+ </Host>+ {props.notice && (+ <AppText+ accessibilityRole="alert"+ style={{ ...textStyles.caption, color: colors.textSecondary }}+ >+ {props.notice}+ </AppText>+ )}+ </View>+ );+}diff --git a/apps/mobile/src/remote-desktop/PermissionGuideView.tsx b/apps/mobile/src/remote-desktop/PermissionGuideView.tsxnew file mode 100644index 0000000000..f0635eb254--- /dev/null+++ b/apps/mobile/src/remote-desktop/PermissionGuideView.tsx@@ -0,0 +1,126 @@+import { Pressable, StyleSheet, View } from "react-native";+import { Text } from "@/components/AppText";+import {+ fontWeight,+ radius,+ spacing,+ textStyles,+ useThemedStyles,+ type ThemeColors,+} from "@/theme";++export interface PermissionGuideViewProps {+ title: string;+ intro: string;+ rows: { label: string; value: string }[];+ guideLabel?: string;+ pending: boolean;+ onGuide(): void;+ reconnectLabel: string;+ onReconnect(): void;+ notice?: string;+}++export function PermissionGuideView(props: PermissionGuideViewProps) {+ const styles = useThemedStyles(makeStyles);+ return (+ <View style={styles.panel}>+ <Text accessibilityRole="header" style={styles.title}>+ {props.title}+ </Text>+ <Text style={styles.caption}>{props.intro}</Text>+ {props.rows.length > 0 && (+ <View style={styles.group}>+ {props.rows.map((row) => (+ <View key={row.label} style={styles.row}>+ <Text style={styles.text}>{row.label}</Text>+ <Text style={styles.caption}>{row.value}</Text>+ </View>+ ))}+ </View>+ )}+ <View style={styles.actions}>+ {props.guideLabel && (+ <Pressable+ accessibilityRole="button"+ accessibilityState={{+ disabled: props.pending,+ busy: props.pending,+ }}+ disabled={props.pending}+ onPress={props.onGuide}+ style={[+ styles.button,+ styles.primary,+ props.pending && styles.pending,+ ]}+ >+ <Text style={styles.primaryText}>{props.guideLabel}</Text>+ </Pressable>+ )}+ <Pressable+ accessibilityRole="button"+ onPress={props.onReconnect}+ style={[styles.button, !props.guideLabel && styles.primary]}+ >+ <Text style={props.guideLabel ? styles.text : styles.primaryText}>+ {props.reconnectLabel}+ </Text>+ </Pressable>+ </View>+ {props.notice && (+ <Text accessibilityRole="alert" style={styles.caption}>+ {props.notice}+ </Text>+ )}+ </View>+ );+}++const makeStyles = (colors: ThemeColors) =>+ StyleSheet.create({+ panel: {+ padding: spacing.md,+ gap: spacing.md,+ backgroundColor: colors.surface,+ },+ title: {+ ...textStyles.title,+ fontWeight: fontWeight.medium,+ color: colors.textPrimary,+ },+ text: { ...textStyles.body, color: colors.textPrimary, flexShrink: 1 },+ caption: {+ ...textStyles.caption,+ color: colors.textSecondary,+ flexShrink: 1,+ },+ group: {+ padding: spacing.md,+ gap: spacing.lg,+ borderRadius: radius.container,+ backgroundColor: colors.surfaceElevated,+ },+ row: {+ flexDirection: "row",+ flexWrap: "wrap",+ justifyContent: "space-between",+ gap: spacing.sm,+ },+ actions: { gap: spacing.sm },+ button: {+ minHeight: 44,+ paddingHorizontal: spacing.md,+ paddingVertical: spacing.sm,+ alignItems: "center",+ justifyContent: "center",+ borderRadius: radius.pill,+ },+ primary: { backgroundColor: colors.cta },+ primaryText: {+ ...textStyles.body,+ color: colors.ctaText,+ textAlign: "center",+ },+ pending: { opacity: 0.5 },+ });diff --git a/apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx b/apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsxindex 1c9d267079..63f503e288 100644--- a/apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx+++ b/apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx@@ -1726,6 +1726,12 @@ export default function RemoteDesktopScreen() {style={[styles.connectionStatus,{ top: edgePadding.paddingTop + spacing.xs + 44 + spacing.lg },+ error === "permissionHint" && {+ bottom:+ (landscape ? insets.bottom : toolbarSize.height) ++ spacing.md,+ right: (landscape ? toolbarSize.width : 0) + spacing.md,+ },]}>{showConnectionStatus || showExitLockStatus ? (@@ -1764,12 +1770,14 @@ export default function RemoteDesktopScreen() {retry,)}{error === "permissionHint" && focused && (- <PermissionGuide- key={deviceId}- initial={caps?.permissions}- request={request}- reconnect={retry}- />+ <ScrollView style={{ flex: 1 }}>+ <PermissionGuide+ key={deviceId}+ initial={caps?.permissions}+ request={request}+ reconnect={retry}+ />+ </ScrollView>)}</View>)}diff --git a/docs/design-rules/design-inventory.md b/docs/design-rules/design-inventory.mdindex fd513fafcf..97cfdbd3d6 100644--- a/docs/design-rules/design-inventory.md+++ b/docs/design-rules/design-inventory.md@@ -9,7 +9,7 @@本区块由 `scripts/design-inventory.mjs` 生成,请勿手改。重新生成:`pnpm design:inventory`;校验:`pnpm check:design-inventory`。-计数快照日期:2026-09-11。生成命令:`pnpm design:inventory`。裸颜色匹配与 `scripts/hardcoded-color-audit.mjs` 共用 `scripts/shared/hardcoded-color-match.mjs`(HEX / RGB / HSL / OKLCH 等字面通道),两者在共享 matcher 内统一排除纯语义包装、注释及 PR 编号;数值颜色函数还需位于样式属性、CSS 声明/函数或任意值语境,普通文案字符串里的颜色函数文本不计入;字面 fallback 仍计入——语义 token 消费与注释引用不是迁移债务;裸圆角为粗粒度(`rounded*` class、`border-radius:` 与 React style 对象的 `borderRadius:`)。Token 计数为样式源里 `var(--token)` / `hsl(var(--token)` 的去重 ID 数;Mobile 的 ThemeColors / typeScale 等 RN 属性不计入此列,不能将 0 解释为未使用 Token。+计数快照日期:2026-09-12。生成命令:`pnpm design:inventory`。裸颜色匹配与 `scripts/hardcoded-color-audit.mjs` 共用 `scripts/shared/hardcoded-color-match.mjs`(HEX / RGB / HSL / OKLCH 等字面通道),两者在共享 matcher 内统一排除纯语义包装、注释及 PR 编号;数值颜色函数还需位于样式属性、CSS 声明/函数或任意值语境,普通文案字符串里的颜色函数文本不计入;字面 fallback 仍计入——语义 token 消费与注释引用不是迁移债务;裸圆角为粗粒度(`rounded*` class、`border-radius:` 与 React style 对象的 `borderRadius:`)。Token 计数为样式源里 `var(--token)` / `hsl(var(--token)` 的去重 ID 数;Mobile 的 ThemeColors / typeScale 等 RN 属性不计入此列,不能将 0 解释为未使用 Token。登记 surface 数:49。平台包含 Desktop 与 Mobile;静态入口发现不表示已迁移或已实机验证。@@ -61,7 +61,7 @@| `mobile.files` | mobile | 任务文件与预览 | app/files/[sessionId].tsx / app/files/preview/[sessionId].tsx | AppText, AuthContext, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, DeviceLinkContext, HtmlFileReader, ImageLightbox, MarkdownFileReader, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, PushNotificationsBridge, QuietSyncIndicator, StartupSplashOverlay, ThemeProvider, [sessionId], _layout, gestureHandler, mediaPlayerWebView, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/files/[sessionId].tsx, apps/mobile/app/files/preview/[sessionId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/session/HtmlFileReader.tsx, apps/mobile/src/session/ImageLightbox.tsx, apps/mobile/src/session/MarkdownFileReader.tsx, apps/mobile/src/session/mathWebViewHtml.ts, apps/mobile/src/session/mediaPlayerWebView.tsx, apps/mobile/src/session/mediaPlayerWebViewHtml.ts, apps/mobile/src/session/selectableMarkdownHtml.ts, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 0 | 202 | 36 || `mobile.home` | mobile | 主机与资源首页 | app/index.tsx / app/devices/index.tsx | AccountSwitcherSheet, AppText, AuthContext, AutomationTimerIcon, BlurBackdrop, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, ConversationSearchFilterSheet, DeviceLinkContext, HomeChromeDrawer, HomeChromeFrost, HomeGlassMenuPanel, HomeHeaderGlassButton, HomeNativeStackHeader, HomeProjectMachineLabel, HomeSearchBar, MobileAgentMark, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, MobileVendorIcon, NativePullDownMenu, NativeSwitch, PushNotificationsBridge, QuietSyncIndicator, RemoteAccessGuide, RenameSessionModal, SessionActionSheet, SessionOptionsExpoSheet, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, SwipeableSessionRow, ThemeProvider, _layout, gestureHandler, index, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/index.tsx, apps/mobile/app/index.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileAgentMark.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/MobileVendorIcon.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteAccessGuide.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/session/AccountSwitcherSheet.tsx, apps/mobile/src/session/AutomationTimerIcon.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/ConversationSearchFilterSheet.tsx, apps/mobile/src/session/HomeChromeDrawer.tsx, apps/mobile/src/session/HomeChromeFrost.tsx, apps/mobile/src/session/HomeGlassMenuPanel.tsx, apps/mobile/src/session/HomeHeaderGlassButton.tsx, apps/mobile/src/session/HomeProjectMachineLabel.tsx, apps/mobile/src/session/HomeSearchBar.tsx, apps/mobile/src/session/RenameSessionModal.tsx, apps/mobile/src/session/SessionActionSheet.tsx, apps/mobile/src/session/SessionOptionsExpoSheet.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/session/SwipeableSessionRow.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 0 | 170 | 53 || `mobile.overlay.connection-startup` | mobile | 根布局挂载的启动与连接反馈 | app/_layout.tsx → StartupSplashOverlay / ConnectionNoticeProvider;各页面 ConnectionBanner | AppText, AuthContext, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, ConnectionNoticeProvider, DeviceLinkContext, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, PushNotificationsBridge, QuietSyncIndicator, StartupSplashOverlay, ThemeProvider, _layout, gestureHandler, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 0 | 170 | 13 |-| `mobile.remote-desktop` | mobile | 远程桌面 | app/devices/desktop/[deviceId].tsx | AppText, AuthContext, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, DeviceLinkContext, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, NativePullDownMenu, NativeSwitch, PermissionGuide, PushNotificationsBridge, QuietSyncIndicator, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopIcons, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, StartupSplashOverlay, ThemeProvider, [deviceId], _layout, gestureHandler, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/desktop/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 2 | 170 | 42 |+| `mobile.remote-desktop` | mobile | 远程桌面 | app/devices/desktop/[deviceId].tsx | AppText, AuthContext, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, DeviceLinkContext, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, NativePullDownMenu, NativeSwitch, PermissionGuide, PermissionGuideView, PermissionGuideView.ios, PushNotificationsBridge, QuietSyncIndicator, RemoteDesktopActionButton, RemoteDesktopActionButton.ios, RemoteDesktopBackButton, RemoteDesktopBackButton.ios, RemoteDesktopChrome, RemoteDesktopClipboardButton, RemoteDesktopControls, RemoteDesktopDisplaySettings, RemoteDesktopIcons, RemoteDesktopNetworkStatus, RemoteDesktopPanelButton, RemoteDesktopPanelButton.ios, RemoteDesktopScreen, RemoteDesktopSecuritySettings, StartupSplashOverlay, ThemeProvider, [deviceId], _layout, gestureHandler, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/devices/desktop/[deviceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/remote-desktop/PermissionGuide.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.ios.tsx, apps/mobile/src/remote-desktop/PermissionGuideView.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopActionButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopBackButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopChrome.tsx, apps/mobile/src/remote-desktop/RemoteDesktopClipboardButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopControls.tsx, apps/mobile/src/remote-desktop/RemoteDesktopDisplaySettings.tsx, apps/mobile/src/remote-desktop/RemoteDesktopIcons.tsx, apps/mobile/src/remote-desktop/RemoteDesktopNetworkStatus.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.ios.tsx, apps/mobile/src/remote-desktop/RemoteDesktopPanelButton.tsx, apps/mobile/src/remote-desktop/RemoteDesktopScreen.tsx, apps/mobile/src/remote-desktop/RemoteDesktopSecuritySettings.tsx, apps/mobile/src/remote-desktop/viewerHtml.ts, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 2 | 170 | 44 || `mobile.resources` | mobile | 远程资源列表与详情 | app/resources/[collectionId].tsx / app/resources/[collectionId]/[resourceId].tsx | AppText, AuthContext, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, DeviceLinkContext, HomeNativeStackHeader, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, NativePullDownMenu, NativeSwitch, PushNotificationsBridge, QuietSyncIndicator, RemoteCompanionAvatar, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, [collectionId], [resourceId], _layout, gestureHandler, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/resources/[collectionId].tsx, apps/mobile/app/resources/[collectionId]/[resourceId].tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/RemoteCompanionAvatar.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 0 | 170 | 18 || `mobile.settings` | mobile | 设置(含调试与日志上传可见入口) | app/settings.tsx | AppText, AuthContext, BlurBackdrop, CenteredScreen, ConnectionBanner, ConnectionNoticeOverlay, DeviceLinkContext, HomeNativeStackHeader, MobileChoicePickerList, MobileLoginHandoffContext, MobileLoginHandoffStage, MobilePrimitives, NativePullDownMenu, NativeSwitch, PushNotificationsBridge, QuietSyncIndicator, SheetModal, SheetSurface, SimpleStackHeader, StartupSplashOverlay, ThemeProvider, _layout, gestureHandler, settings, useLocale | apps/mobile/app/_layout.tsx, apps/mobile/app/settings.tsx, apps/mobile/src/auth/AuthContext.tsx, apps/mobile/src/auth/MobileLoginHandoffContext.tsx, apps/mobile/src/components/AppText.tsx, apps/mobile/src/components/CenteredScreen.tsx, apps/mobile/src/components/ConnectionBanner.tsx, apps/mobile/src/components/ConnectionNoticeOverlay.tsx, apps/mobile/src/components/MobileLoginHandoffStage.tsx, apps/mobile/src/components/MobilePrimitives.tsx, apps/mobile/src/components/QuietSyncIndicator.tsx, apps/mobile/src/components/StartupSplashOverlay.tsx, apps/mobile/src/device-link/DeviceLinkContext.tsx, apps/mobile/src/i18n/useLocale.tsx, apps/mobile/src/notifications/PushNotificationsBridge.tsx, apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx, apps/mobile/src/platform/chrome/NativePullDownMenu.tsx, apps/mobile/src/platform/chrome/NativeSwitch.tsx, apps/mobile/src/platform/chrome/SimpleStackHeader.tsx, apps/mobile/src/platform/gestureHandler.tsx, apps/mobile/src/session/BlurBackdrop.tsx, apps/mobile/src/session/MobileChoicePickerList.tsx, apps/mobile/src/session/SheetModal.tsx, apps/mobile/src/session/SheetSurface.tsx, apps/mobile/src/theme/ThemeProvider.tsx, apps/mobile/src/theme/navigationTheme.ts, apps/mobile/src/theme/tokens.ts | 0 | 170 | 22 |