a5acd9e5736d

feat: update button states + fix literal version string (v2.9.23)

- Fix escaped ${'$'} so the available-version text renders the real number instead of the literal 'v${available?.version} is available' - Button now changes state: 'check for updates' -> 'checking' -> 'tap to install' - 'tap to install' navigates to the changelog (PeachNav.Update) - Continuity: recorded June's live confirmation that the built-in updater worked end-to-end on her device

time
2026-08-01 21:16 UTC · 2 months ago
machine
koh2
parent
5888cb598ccc
2 files VERSION+1 −1app/src/main/java/com/peachpasswords/ui/settings/SettingsCardBodies.kt+3 −3
VERSION+1 −1
@@ -1 +1 @@1-2.9.221+2.9.23

view file

app/src/main/java/com/peachpasswords/ui/settings/SettingsCardBodies.kt+3 −3
@@ -489,7 +489,7 @@489489             Text("Updates", color = fg, fontFamily = PeachType.Body, fontSize = 13.sp)490490             Text(491491                 when {492-                    available != null -> "v${'$'}{available?.version} is available"492+                    available != null -> "v${available?.version} is available"493493                     state.phase == UpdatePhase.Checking -> "Checking…"494494                     state.phase == UpdatePhase.UpToDate -> "You're on the latest version"495495                     state.phase == UpdatePhase.Failed -> "Couldn't reach the update server"@@ -503,9 +503,9 @@503503             )504504         }505505         if (available != null) {506-            SubtleButton("update", fg) { onNavigate(PeachNav.Update) }506+            SubtleButton("tap to install", fg) { onNavigate(PeachNav.Update) }507507         } else {508-            SubtleButton(if (state.phase == UpdatePhase.Checking) "checking" else "check now", fg) {508+            SubtleButton(if (state.phase == UpdatePhase.Checking) "checking" else "check for updates", fg) {509509                 vm.check()510510             }511511         }

view file