release: v2.11.2 — auto-focus event title (#10) #50

Merged
makiolaj merged 1 commits from release/v2.11.2 into main 2026-06-28 10:55:24 +00:00
Owner

Release v2.11.2 implementing issue #10: optionally auto-focus the title field on a new event.

Changes

  • Opening the new-event form now puts the cursor in the title field and raises the keyboard, so you can type the name without an extra tap.
  • On by default (most events get a title); a new Focus title on new event switch in Settings → New event form turns it off.
  • Create-only: editing an existing event or opening a prefilled/imported .ics never grabs focus (guarded by !isEditing && title blank).
  • Plumbed through SettingsPrefs (autofocusEventTitle, default true) → Settings VM/state (the switch) and EventEdit VM/state (the form, via a FocusRequester requested once per open).
  • Strings (en + de); unit test for the pref default/round-trip.
  • Bumped to 2.11.2 (versionCode 21102); CHANGELOG + fastlane/.../changelogs/21102.txt.

Verification (on-device, Pixel 10 stock, debug build)

  • Opened the new-event form via its intent: cursor in the Add title field, keyboard up (mInputShown=true), confirmed by screenshot.
  • SettingsPrefsTest passes; Kotlin compiles clean.

Closes #10.

Release v2.11.2 implementing issue #10: optionally auto-focus the title field on a new event. ## Changes - Opening the **new-event** form now puts the cursor in the title field and raises the keyboard, so you can type the name without an extra tap. - **On by default** (most events get a title); a new **Focus title on new event** switch in *Settings → New event form* turns it off. - **Create-only**: editing an existing event or opening a prefilled/imported .ics never grabs focus (guarded by `!isEditing && title blank`). - Plumbed through SettingsPrefs (`autofocusEventTitle`, default true) → Settings VM/state (the switch) and EventEdit VM/state (the form, via a FocusRequester requested once per open). - Strings (en + de); unit test for the pref default/round-trip. - Bumped to **2.11.2** (versionCode 21102); CHANGELOG + `fastlane/.../changelogs/21102.txt`. ## Verification (on-device, Pixel 10 stock, debug build) - Opened the new-event form via its intent: cursor in the **Add title** field, keyboard up (`mInputShown=true`), confirmed by screenshot. - `SettingsPrefsTest` passes; Kotlin compiles clean. Closes #10.
makiolaj added 1 commit 2026-06-28 10:48:10 +00:00
feat(event-form): auto-focus the title on a new event, optionally (#10)
All checks were successful
Translations / check (pull_request) Successful in 5s
CI / ci (pull_request) Successful in 7m11s
de1fe31223
Opening the new-event form now puts the cursor in the title field and raises the
keyboard, so the user can type the name straight away instead of tapping the
field first (issue #10). On by default — most events get a title — with a new
"Focus title on new event" switch in Settings → New event form to turn it off.

Only the create form auto-focuses: editing an existing event and opening a
prefilled/imported form never grab focus (guarded by !isEditing && title blank).

- SettingsPrefs: autofocusEventTitle (booleanPreferencesKey), default true.
- Plumbed through SettingsViewModel/UiState (settings switch) and
  EventEditViewModel/UiState (read by the form).
- EventEditScreen: a FocusRequester on the title InlineField, requested once per
  open from a LaunchedEffect when the guard holds.
- Strings (en + de), unit test for the new pref default/round-trip.

Bumps to 2.11.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
makiolaj scheduled this pull request to auto merge when all checks succeed 2026-06-28 10:50:29 +00:00
makiolaj merged commit 2d0d707a7d into main 2026-06-28 10:55:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: makiolaj/calendula#50