π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update overflow dialog and sign in flag
Prateek Sunal76fa35ab6e9b
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 a932d73df1..34edb81857 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@@ -140,6 +140,7 @@ fun HomeView(}val handleDeveloperTap: () -> Unit = handle@{+ if (!EnsuFeatureFlags.enableSignIn) return@handle// Don't allow switching endpoints for logged-in users.if (appState.auth.isLoggedIn) return@handle@@ -354,7 +355,13 @@ fun HomeView(},onStartDownload = { userInitiated ->store.startModelDownload(userInitiated = userInitiated)- }+ },+ onOverflowTrim = store::confirmOverflowTrim,+ onOverflowIncreaseContext = {+ store.cancelOverflowDialog()+ navController.navigate(HomeRoute.ModelSettings)+ },+ onOverflowCancel = store::cancelOverflowDialog)}composable(diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.ktindex 9a3e12a7b6..3ed1437d7f 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/utils/FeatureFlags.kt@@ -1,6 +1,6 @@package io.ente.ensu.utilsobject EnsuFeatureFlags {- const val enableSignIn = false+ const val enableSignIn = trueconst val enableImageUploads = true}diff --git a/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/state/ChatState.kt b/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/state/ChatState.ktindex 22c165d621..224cee0ed1 100644--- a/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/state/ChatState.kt+++ b/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/state/ChatState.kt@@ -27,5 +27,13 @@ data class ChatState(val transientAssistantParentId: String? = null,val isModelDownloaded: Boolean = false,val modelDownloadSizeBytes: Long? = null,- val hasRequestedModelDownload: Boolean = false+ val hasRequestedModelDownload: Boolean = false,+ val overflowDialog: OverflowDialogState? = null+)++data class OverflowDialogState(+ val inputTokens: Int,+ val inputBudget: Int,+ val contextLength: Int,+ val maxOutput: Int)diff --git a/mobile/native/darwin/Apps/ensu/ensu/FeatureFlags.swift b/mobile/native/darwin/Apps/ensu/ensu/FeatureFlags.swiftindex d4e96bff78..e0c80844fa 100644--- a/mobile/native/darwin/Apps/ensu/ensu/FeatureFlags.swift+++ b/mobile/native/darwin/Apps/ensu/ensu/FeatureFlags.swift@@ -2,7 +2,7 @@import Foundationenum EnsuFeatureFlags {- static let enableSignIn = false+ static let enableSignIn = truestatic let enableImageUploads = true}#endif