fix: v0.4.1.1 — saved notes leave Drafts; Enter adds row in price box
dev / Build debug APK (push) Successful in 47s
release / Build & attach release APK (push) Successful in 1m20s

Two editor regressions shipped in v0.4.1.0, both fixed here:

- Saving a note published it but left UiState.existing.isDraft = true,
  so the editor's dispose-time flushDraft() re-persisted the note as a
  draft and it reappeared under Drafts. The save path now adopts the
  published row into state (isDraft = false, current hashtags kept),
  letting persistDraftNow()'s already-published guard make that flush
  a no-op; saved notes stay on Home.
- Enter on a shopping-list Price field had no keyboard handler, so the
  bare ImeAction.Next fell through to system focus traversal and — the
  price being the row's last field inside the LazyColumn — wrapped the
  cursor back to the Title. The field now wires
  KeyboardActions(onNext = onAddAfter) like the Product field: Enter
  adds a fresh row with the cursor in its Product box.

Version lockstep per §11.1: versionCode 37, versionName 0.4.1.1,
APP_VERSION, README intro + current-release line + smoke-test
regression steps, PREVIOUS_HISTORY.md section, ReleaseNotes.RECENT
(v0.3.8.1 drops off the 5-entry tail), Dev Plan §10 row.

assembleDebug + assembleRelease both green (CONTRIBUTING step 4).
This commit is contained in:
Incido Developer committed 2026-09-23 06:14:36 +12:00
1 parent d9043db857
commit 1d97376aef
8 files changed
+76 -45

No files matched your search

@@ -25,6 +25,23 @@ object ReleaseNotes {
* Append a new entry on top each release.
*/
val RECENT: List<ReleaseNote> = listOf(
ReleaseNote(
version = "0.4.1.1",
date = "2026-09-23",
bullets = listOf(
"Saved notes stay put: in v0.4.1.0 every note you " +
"saved ended up in Drafts instead of Home \u2014 " +
"the editor still believed it was a draft and " +
"quietly re-saved it as one when you left the " +
"screen. Saving now publishes properly: the note " +
"goes to Home and leaves Drafts for good.",
"Enter behaves in the price box: in a shopping list, " +
"Enter in a row's Price field used to jump the " +
"cursor back to the note title \u2014 it now works " +
"like Enter in the product field: a fresh row " +
"appears below, cursor ready in its Product box.",
),
),
ReleaseNote(
version = "0.4.1.0",
date = "2026-09-23",
@@ -75,27 +92,6 @@ object ReleaseNotes {
"an archive at any time.",
),
),
ReleaseNote(
version = "0.3.8.1",
date = "2026-09-17",
bullets = listOf(
"Read this first \u2014 reinstall required. This build is signed " +
"with a new CI key (the previous key lived in the old build " +
"runner's cache and wasn't carried over), so Android refuses " +
"to install it over an existing Incido: it reports a " +
"signature conflict.",
"Export a backup BEFORE uninstalling: Settings \u2192 Backup " +
"\u2192 Export, plus Settings \u2192 Security \u2192 Export " +
"encryption key if you use encryption. Incido doesn't use " +
"Android's automatic backup, so uninstalling deletes your " +
"notes. Then install this APK and restore from that backup.",
"Nothing else changed: v0.3.8.1 is a re-release of v0.3.8.0 " +
"with the same task lists, shopping lists with the running " +
"total, and add-tag suggestions fix. The rebuild exists " +
"because the release pipeline had been failing to publish " +
"builds reliably; staying on v0.3.8.0 is perfectly fine.",
),
),
ReleaseNote(
version = "0.3.8.0",
date = "2026-09-16",
@@ -142,6 +138,6 @@ object ReleaseNotes {
"and pen-nib artwork.",
),
),
// v0.4.1.0 push drops v0.3.7.0 off the "5 most recent" tail.
// v0.4.1.1 push drops v0.3.8.1 off the "5 most recent" tail.
)
}
@@ -1209,6 +1209,14 @@ private fun ChecklistItemRow(
keyboardType = KeyboardType.Number,
imeAction = ImeAction.Next,
),
// v0.4.x FIX: Enter/Return on Price now behaves exactly
// like Enter on the product field — a fresh row appears
// below and the cursor lands directly in its Product
// field. (A bare ImeAction.Next with no handler fell
// through to system focus traversal, which — the price
// being the row's last field inside a LazyColumn —
// wrapped the cursor all the way back to the Title.)
keyboardActions = KeyboardActions(onNext = { onAddAfter() }),
formatUnfocused = { digits ->
if (digits.isEmpty()) "" else "$" + Note.amountFromPriceDigits(digits)
},
@@ -739,7 +739,25 @@ class NoteEditorViewModel(
}
}
}
_state.update { it.copy(isSaving = false, pendingAttachments = emptyList(), pendingAttachmentBytes = emptyMap()) }
_state.update {
it.copy(
// v0.4.x FIX: adopt the PUBLISHED row into the UI
// state. Without this the state still reported
// isDraft = true, and the flushDraft() fired by the
// editor's disposal immediately re-persisted the
// note as a draft — every confirmed note landed in
// Drafts. With the published row adopted, the
// already-published guard in persistDraftNow() turns
// that flush into a no-op.
existing = saved.copy(
isDraft = false,
hashtags = current.hashtags,
),
isSaving = false,
pendingAttachments = emptyList(),
pendingAttachmentBytes = emptyMap(),
)
}
onDone()
}
}
@@ -354,7 +354,7 @@ class SettingsViewModel(
/** The version string baked into backup payloads and shown on
* the About card. Mirrors `app/build.gradle.kts` `versionName`
* — if you bump one, bump both. */
const val APP_VERSION = "0.4.1.0"
const val APP_VERSION = "0.4.1.1"
val Factory: ViewModelProvider.Factory = viewModelFactory {
initializer {