Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
feat: UX/product pass — model guidance, pinned skill host, new feedback reward, Vellum default
Jalebiec6ef62d4096
diff --git a/app/src/main/java/com/gotcha/data/SettingsRepository.kt b/app/src/main/java/com/gotcha/data/SettingsRepository.ktindex 28771c4..44e2ae6 100644--- a/app/src/main/java/com/gotcha/data/SettingsRepository.kt+++ b/app/src/main/java/com/gotcha/data/SettingsRepository.kt@@ -93,7 +93,7 @@ data class Settings(* build that drops a skin degrades to the default instead of throwing on a* value it no longer knows.*/- val skinId: String = "deepspace",+ val skinId: String = "vellum",val disabledSkills: Set<String> = emptySet(),/*** Ids of connectors the user switched off. Credentials survive (re-enabling@@ -282,13 +282,16 @@ data class Settings(* whole reason this exists. It runs once: [SettingsRepository] writes the* result, and every later load reads that instead.*+ * A legacy light/dark choice keeps the matching Deep Space skin; an install+ * that never chose a theme lands on the Vellum default.+ ** @param legacyThemeMode the old `theme_mode` value, or null if never set.*/internal fun migrateSkinId(legacyThemeMode: String?): String =- if (legacyThemeMode == LEGACY_THEME_MODE_LIGHT) {- SKIN_DEEP_SPACE_LIGHT- } else {- SKIN_DEEP_SPACE_DARK+ when (legacyThemeMode) {+ LEGACY_THEME_MODE_LIGHT -> SKIN_DEEP_SPACE_LIGHT+ LEGACY_THEME_MODE_DARK -> SKIN_DEEP_SPACE_DARK+ else -> SKIN_VELLUM}/** The preference file [SettingsRepository] encrypts into. */@@ -314,7 +317,9 @@ fun settingsChangeNotifier(context: Context): SharedPreferences =internal const val SKIN_DEEP_SPACE_DARK = "deepspace"internal const val SKIN_DEEP_SPACE_LIGHT = "deepspace_light"+internal const val SKIN_VELLUM = "vellum"private const val LEGACY_THEME_MODE_LIGHT = "LIGHT"+private const val LEGACY_THEME_MODE_DARK = "DARK"interface SettingsStore {fun load(): Settingsdiff --git a/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt b/app/src/main/java/com/gotcha/ui/AiConfigScreen.ktindex c9645b3..d988f43 100644--- a/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt+++ b/app/src/main/java/com/gotcha/ui/AiConfigScreen.kt@@ -147,6 +147,18 @@ fun AiConfigScreen(}SettingsScaffold(title = SettingsPage.AI_CONFIG.title, onBack = onBack, overlay = overlay) {+ // ---- Provider / model guidance ----+ Text(+ "Recommended setup:\n" ++ "• Use the SAMOSA AI provider for the best LLM performance — it " ++ "includes a built-in TTS that handles mixed-language text.\n" ++ "• For high-quality single-language speech (e.g. English primarily), " ++ "SAMOSA AI's TTS is the recommendation.\n" ++ "• SAMOSA AI's STT is the recommended speech-to-text engine.",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )+// ---- LLM provider selector ----ExposedDropdownMenuBox(expanded = providerExpanded,diff --git a/app/src/main/java/com/gotcha/ui/FeedbackSheet.kt b/app/src/main/java/com/gotcha/ui/FeedbackSheet.ktindex d566a71..0d36b52 100644--- a/app/src/main/java/com/gotcha/ui/FeedbackSheet.kt+++ b/app/src/main/java/com/gotcha/ui/FeedbackSheet.kt@@ -44,8 +44,8 @@ fun FeedbackSheet(text = {Column {Text(- text = "If you provide successful feedback, after approval you may be eligible " +- "for 2x the current free Samosa AI credits.",+ text = "If you provide successful feedback, after validation you may be " ++ "eligible for 100 credits per feedback, up to 500 credits per day.",style = MaterialTheme.typography.bodySmall,color = MaterialTheme.colorScheme.primary,modifier = Modifier.padding(bottom = 8.dp)diff --git a/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt b/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.ktindex 2bf692b..7e71da7 100644--- a/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt+++ b/app/src/main/java/com/gotcha/ui/PersonalInfoScreen.kt@@ -96,6 +96,13 @@ fun PersonalInfoScreen("assistant at the start of every conversation so it doesn't have to ask.",style = MaterialTheme.typography.bodySmall)+ Text(+ "For more personalized results, keep this profile up to date — or just " ++ "ask Gotcha to add things like your personal website, GitHub link, " ++ "or CV (PDF), and it will record them here for you.",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )OutlinedTextField(value = userName,onValueChange = { userName = it },diff --git a/app/src/main/java/com/gotcha/ui/SkillsScreen.kt b/app/src/main/java/com/gotcha/ui/SkillsScreen.ktindex 22a9392..fe9fec9 100644--- a/app/src/main/java/com/gotcha/ui/SkillsScreen.kt+++ b/app/src/main/java/com/gotcha/ui/SkillsScreen.kt@@ -55,7 +55,11 @@ fun SkillsScreen() {val initial = remember { load() }var disabledSkills by remember { mutableStateOf(initial.disabledSkills) }- var communitySkillHosts by remember { mutableStateOf(initial.communitySkillHosts) }+ // The Samosa AI host is built in and cannot be removed; re-add it in case an+ // older version let it slip out of the saved set.+ var communitySkillHosts by remember {+ mutableStateOf(initial.communitySkillHosts + BuildConfig.SAMOSA_SKILL_HOST)+ }var communitySkillUrl by remember { mutableStateOf("") }var communitySkillPasteJson by remember { mutableStateOf("") }var communityImportBusy by remember { mutableStateOf(false) }@@ -74,7 +78,8 @@ fun SkillsScreen(/** This page's fields, copied onto [base]. */fun applySkills(base: Settings) = base.copy(disabledSkills = disabledSkills,- communitySkillHosts = communitySkillHosts+ // The Samosa AI host is pinned; saving always keeps it in the allowlist.+ communitySkillHosts = communitySkillHosts + BuildConfig.SAMOSA_SKILL_HOST)SettingsScaffold(title = SettingsPage.SKILLS.title, onBack = onBack, overlay = overlay) {@@ -340,6 +345,7 @@ fun SkillsScreen("Default: ${BuildConfig.SAMOSA_SKILL_HOST}.",style = MaterialTheme.typography.bodySmall)+ val pinnedHost = BuildConfig.SAMOSA_SKILL_HOSTcommunitySkillHosts.forEach { host ->Row(modifier = Modifier.fillMaxWidth(),@@ -347,10 +353,18 @@ fun SkillsScreen(verticalAlignment = Alignment.CenterVertically) {Text(host, modifier = Modifier.weight(1f))- TextButton(onClick = {- communitySkillHosts = communitySkillHosts - host- onSave { applySkills(it) }- }) { Text("Remove") }+ if (host.equals(pinnedHost, ignoreCase = true)) {+ Text(+ "Built-in",+ style = MaterialTheme.typography.labelSmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )+ } else {+ TextButton(onClick = {+ communitySkillHosts = communitySkillHosts - host+ onSave { applySkills(it) }+ }) { Text("Remove") }+ }}}var newHost by remember { mutableStateOf("") }diff --git a/app/src/main/java/com/gotcha/ui/SpeechScreen.kt b/app/src/main/java/com/gotcha/ui/SpeechScreen.ktindex 2cae1e9..fec5926 100644--- a/app/src/main/java/com/gotcha/ui/SpeechScreen.kt+++ b/app/src/main/java/com/gotcha/ui/SpeechScreen.kt@@ -157,6 +157,14 @@ fun SpeechScreen(}SettingsScaffold(title = SettingsPage.SPEECH.title, onBack = onBack, overlay = overlay) {+ // ---- Voice / speech recommendations ----+ Text(+ "For high-quality single-language speech (e.g. English primarily), " ++ "SAMOSA AI's TTS is the recommendation. SAMOSA AI's STT is the " ++ "recommended transcription engine.",+ style = MaterialTheme.typography.bodySmall,+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )val samosaAudioSelected = ttsProvider == AudioProvider.SAMOSA_AI ||sttProvider == AudioProvider.SAMOSA_AIif (samosaAudioSelected) {diff --git a/app/src/main/java/com/gotcha/ui/theme/Skin.kt b/app/src/main/java/com/gotcha/ui/theme/Skin.ktindex 6af751d..aa631e8 100644--- a/app/src/main/java/com/gotcha/ui/theme/Skin.kt+++ b/app/src/main/java/com/gotcha/ui/theme/Skin.kt@@ -379,7 +379,7 @@ object Skins {val all = listOf(Aura, Vellum, Orchid, Nocturne, DeepSpaceDark, DeepSpaceLight)- const val DEFAULT_ID = "deepspace"+ const val DEFAULT_ID = "vellum"fun byId(id: String): Skin = all.firstOrNull { it.id == id } ?: DeepSpaceDark}diff --git a/app/src/test/java/com/gotcha/data/SkinMigrationTest.kt b/app/src/test/java/com/gotcha/data/SkinMigrationTest.ktindex f02a089..f64196f 100644--- a/app/src/test/java/com/gotcha/data/SkinMigrationTest.kt+++ b/app/src/test/java/com/gotcha/data/SkinMigrationTest.kt@@ -21,21 +21,20 @@ class SkinMigrationTest {}/**- * SYSTEM was the default, and the overwhelming majority of installs are on- * it. Dark is the honest landing place: it is what the app looked like for- * most of them, and it is the skin the picker calls the original.+ * SYSTEM was the default, so the overwhelming majority of installs are on+ * it and never chose a theme. Vellum is the new default landing place.*/@Test- fun `someone who never changed it lands on the original`() {- assertEquals(SKIN_DEEP_SPACE_DARK, migrateSkinId("SYSTEM"))- assertEquals(SKIN_DEEP_SPACE_DARK, migrateSkinId(null))+ fun `someone who never chose a theme lands on the Vellum default`() {+ assertEquals(SKIN_VELLUM, migrateSkinId("SYSTEM"))+ assertEquals(SKIN_VELLUM, migrateSkinId(null))}/** A value from a build that no longer exists must not throw. */@Test- fun `an unrecognised legacy value falls back rather than failing`() {- assertEquals(SKIN_DEEP_SPACE_DARK, migrateSkinId("AUTO_BATTERY"))- assertEquals(SKIN_DEEP_SPACE_DARK, migrateSkinId(""))+ fun `an unrecognised legacy value falls back to Vellum rather than failing`() {+ assertEquals(SKIN_VELLUM, migrateSkinId("AUTO_BATTERY"))+ assertEquals(SKIN_VELLUM, migrateSkinId(""))}/** The ids it produces have to be ids the picker actually knows. */diff --git a/app/src/test/java/com/gotcha/ui/theme/OverlaySkinTest.kt b/app/src/test/java/com/gotcha/ui/theme/OverlaySkinTest.ktindex c14daa6..eb1a159 100644--- a/app/src/test/java/com/gotcha/ui/theme/OverlaySkinTest.kt+++ b/app/src/test/java/com/gotcha/ui/theme/OverlaySkinTest.kt@@ -68,8 +68,9 @@ class OverlaySkinTest {@Testfun `an unknown skin falls back rather than throwing`() {+ // byId degrades unknown ids to the original opaque Deep Space skin.val fallback = overlaySkin(context, "a-skin-from-a-future-build")- assertEquals(overlaySkin(context, Skins.DEFAULT_ID).accent, fallback.accent)+ assertEquals(overlaySkin(context, Skins.DeepSpaceDark.id).accent, fallback.accent)}/**