π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
feat(ensu): restore advanced endpoint settings and native inline math
Prateek Sunal8f74aa217f54
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.ktindex 54c8cc1535..368be6540f 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt@@ -35,6 +35,7 @@ import io.ente.ensu.domain.state.AppStateimport io.ente.ensu.domain.store.AppStoreimport io.ente.ensu.modelsettings.ModelSettingsScreenimport io.ente.ensu.settings.LogViewerScreen+import io.ente.ensu.settings.DeveloperSettingsScreenimport io.ente.ensu.settings.SettingsScreenimport io.ente.ensu.settings.SystemPromptSettingsScreenimport kotlinx.coroutines.flow.Flow@@ -44,6 +45,7 @@ internal fun HomeNavigation(appState: AppState,store: AppStore,logRepository: io.ente.ensu.data.logging.FileLogRepository,+ authService: io.ente.ensu.data.auth.EnsuAuthService,currentEndpointFlow: Flow<String>,advancedSettingsDataStore: AdvancedSettingsDataStore,appVersion: String,@@ -95,6 +97,9 @@ internal fun HomeNavigation(HomeRoute.SystemPromptSettings -> {SimpleTopBar(title = "System Prompt") { navController.popBackStack() }}+ HomeRoute.EndpointSettings -> {+ SimpleTopBar(title = "Endpoint") { navController.popBackStack() }+ }HomeRoute.Settings -> {SimpleTopBar(title = "Settings") { navController.popBackStack() }}@@ -157,6 +162,7 @@ internal fun HomeNavigation(onOpenLogs = { navController.navigate(HomeRoute.Logs) },onOpenModelSettings = { navController.navigate(HomeRoute.ModelSettings) },onOpenSystemPromptSettings = { navController.navigate(HomeRoute.SystemPromptSettings) },+ onOpenEndpointSettings = { navController.navigate(HomeRoute.EndpointSettings) },onUnlockAdvanced = {store.unlockAdvancedSettings()advancedSettingsDataStore.persistUnlockAdvancedSettings()@@ -222,6 +228,20 @@ internal fun HomeNavigation(})}+ composable(+ route = HomeRoute.EndpointSettings,+ enterTransition = { forwardEnter() },+ exitTransition = { forwardExit() },+ popEnterTransition = { backEnter() },+ popExitTransition = { backExit() }+ ) {+ DeveloperSettingsScreen(+ authService = authService,+ currentEndpointFlow = currentEndpointFlow,+ onOpenModelSettings = { navController.navigate(HomeRoute.ModelSettings) },+ onSaved = { navController.popBackStack() }+ )+ }}}}@@ -233,6 +253,7 @@ internal object HomeRoute {const val Logs = "logs"const val ModelSettings = "model-settings"const val SystemPromptSettings = "system-prompt-settings"+ const val EndpointSettings = "endpoint-settings"}internal fun AnimatedContentTransitionScope<NavBackStackEntry>.forwardEnter() =diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.ktindex 334073256f..f49c3cc30b 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeView.kt@@ -256,6 +256,7 @@ fun HomeView(appState = appState,store = store,logRepository = logRepository,+ authService = authService,currentEndpointFlow = currentEndpointFlow,advancedSettingsDataStore = advancedSettingsDataStore,appVersion = appVersion,diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.ktindex 1aab7938ef..34a52e0e07 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/settings/SettingsScreen.kt@@ -53,6 +53,7 @@ fun SettingsScreen(onOpenLogs: () -> Unit,onOpenModelSettings: () -> Unit,onOpenSystemPromptSettings: () -> Unit,+ onOpenEndpointSettings: () -> Unit,onUnlockAdvanced: () -> Unit,onSignOut: () -> Unit,onSignIn: () -> Unit,@@ -226,6 +227,15 @@ fun SettingsScreen())}+ item(key = "advanced-endpoint") {+ SettingsRow(+ SettingsItem(+ title = "Endpoint",+ iconRes = HugeIcons.Settings01Icon,+ onClick = onOpenEndpointSettings+ )+ )+ }}if (isCustomEndpoint) {