fix: v0.4.1.1 — saved notes leave Drafts; Enter adds row in price box
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:
1 parent
d9043db857
commit
1d97376aef
8 files changed
+76
-45
No files matched your search
+15
-18
@@ -28,24 +28,21 @@ android {
|
||||
applicationId = "org.incido.app"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
// v0.4.1.0: FEATURE release — colour filters + auto-saved
|
||||
// drafts, plus Trash & editor polish. The drawer gains a
|
||||
// five-swatch strip (Blue / Green / Amber / Red / Purple) under
|
||||
// Favorites: a swatch shows ONLY active notes of that colour
|
||||
// (untagged included, trashed never), search narrows within it,
|
||||
// re-tapping returns Home (NoteFilter.ByColor + observeByColor /
|
||||
// searchByColor on the shared decorate() / matchingNoteIds()
|
||||
// path). New notes autosave as drafts: Note.isDraft (indexed
|
||||
// ObjectBox property, carried in backups), a "drafts" route +
|
||||
// drawer row, and a debounced autosave with flush-on-exit;
|
||||
// untitled drafts title themselves by kind ("Shopping List —
|
||||
// (draft)"). Trash gains an Empty Trash button (deleteAllTrashed
|
||||
// cascade incl. attachments, confirmed by dialog); editor fields
|
||||
// are rebuilt as uniform-height underlined rows with centred
|
||||
// checkbox / +/- controls.
|
||||
// - versionCode monotonic +1 from v0.4.0.0 (35).
|
||||
versionCode = 36
|
||||
versionName = "0.4.1.0"
|
||||
// v0.4.1.1: EMERGENCY hotfix — two editor regressions shipped
|
||||
// in v0.4.1.0. (1) Saving a note landed it in Drafts: the save
|
||||
// path published the note but left UiState.existing.isDraft =
|
||||
// true, so the editor's dispose-time flushDraft() immediately
|
||||
// re-persisted it as a draft; the state now adopts the
|
||||
// published row (isDraft = false), letting persistDraftNow()'s
|
||||
// already-published guard make the flush a no-op. (2) Enter on
|
||||
// a shopping-list Price field fell through to system focus
|
||||
// traversal and wrapped the cursor back to the Title; it now
|
||||
// wires KeyboardActions(onNext = onAddAfter) like the Product
|
||||
// field — Enter adds a fresh row with the cursor in its
|
||||
// Product box.
|
||||
// - versionCode monotonic +1 from v0.4.1.0 (36).
|
||||
versionCode = 37
|
||||
versionName = "0.4.1.1"
|
||||
}
|
||||
|
||||
// --- Signing ---
|
||||
|
||||
Reference in new issue
Block a user