11import { useAtomSet , useAtomValue } from "@effect/atom-react" ;
2+ import { useNavigation } from "@react-navigation/native" ;
23import type { SidebarProjectGroupingMode } from "@t3tools/contracts" ;
34import { AsyncResult } from "effect/unstable/reactivity" ;
4- import { Pressable , ScrollView , View } from "react-native" ;
5+ import { Platform , Pressable , ScrollView , View } from "react-native" ;
56import { useSafeAreaInsets } from "react-native-safe-area-context" ;
67
8+ import { AndroidScreenHeader } from "../../components/AndroidScreenHeader" ;
79import { AppText as Text } from "../../components/AppText" ;
810import { SymbolView } from "../../components/AppSymbol" ;
911import { useThemeColor } from "../../lib/useThemeColor" ;
12+ import { NativeStackScreenOptions } from "../../native/StackHeader" ;
1013import {
1114 mobileProjectGroupingModePatch ,
1215 resolveMobileProjectGroupingSettings ,
@@ -22,21 +25,22 @@ const GROUPING_OPTIONS: ReadonlyArray<{
2225 {
2326 mode : "repository" ,
2427 label : "Group by repository" ,
25- description : "Matching repositories share a group while every workspace remains selectable ." ,
28+ description : "Matching repositories appear as one project ." ,
2629 } ,
2730 {
2831 mode : "repository_path" ,
2932 label : "Group by repository path" ,
30- description : "Monorepo subprojects get their own groups while matching paths stay together ." ,
33+ description : "Keep monorepo paths separate ." ,
3134 } ,
3235 {
3336 mode : "separate" ,
3437 label : "Keep separate" ,
35- description : "Every physical workspace appears as its own project." ,
38+ description : "Show every workspace as its own project." ,
3639 } ,
3740] ;
3841
3942export function SettingsProjectGroupingRouteScreen ( ) {
43+ const navigation = useNavigation ( ) ;
4044 const insets = useSafeAreaInsets ( ) ;
4145 const checkmarkColor = useThemeColor ( "--color-icon" ) ;
4246 const preferencesResult = useAtomValue ( mobilePreferencesAtom ) ;
@@ -48,6 +52,12 @@ export function SettingsProjectGroupingRouteScreen() {
4852
4953 return (
5054 < View collapsable = { false } className = "flex-1 bg-sheet" >
55+ { Platform . OS === "android" ? (
56+ < >
57+ < NativeStackScreenOptions options = { { headerShown : false } } />
58+ < AndroidScreenHeader title = "Project Grouping" onBack = { ( ) => navigation . goBack ( ) } />
59+ </ >
60+ ) : null }
5161 < ScrollView
5262 contentInsetAdjustmentBehavior = "automatic"
5363 showsVerticalScrollIndicator = { false }
0 commit comments