feat: configurable back button position for single mail view (#299) #307

Closed
guettlibot wants to merge 0 commits from issue-299-fix into main
guettlibot commented 2026-05-27 20:57:19 +00:00 (Migrated from codeberg.org)

Summary

  • Adds a Single mail view button position preference (bottom/top) to the Preferences screen
  • Default is bottom: the thread detail screen shows a BottomAppBar with an arrow-back button and hides the AppBar's leading back button
  • Choosing top restores the standard AppBar back button and removes the bottom bar — matching the pattern from issue #298 for the mailbox view
  • Preference is stored in the user_preferences table (new mail_view_button_position column, DB schema v35)

Test plan

  • UserPreferencesScreen shows the new "Single mail view button position" section with Bottom/Top options
  • Default preference selects Bottom for both sections
  • Tapping Top in the mail view section persists via the repository
  • ThreadDetailScreen shows BottomAppBar with back button when preference is bottom (default)
  • ThreadDetailScreen hides BottomAppBar when preference is top
  • Migration test verifies mail_view_button_position column is added for both fresh install (v35) and upgrade from v1/v22
  • All widget and unit tests pass (task analyze && task test)

🤖 Generated with Claude Code

## Summary - Adds a **Single mail view button position** preference (bottom/top) to the Preferences screen - Default is **bottom**: the thread detail screen shows a `BottomAppBar` with an arrow-back button and hides the AppBar's leading back button - Choosing **top** restores the standard AppBar back button and removes the bottom bar — matching the pattern from issue #298 for the mailbox view - Preference is stored in the `user_preferences` table (new `mail_view_button_position` column, DB schema v35) ## Test plan - [ ] `UserPreferencesScreen` shows the new "Single mail view button position" section with Bottom/Top options - [ ] Default preference selects Bottom for both sections - [ ] Tapping Top in the mail view section persists via the repository - [ ] `ThreadDetailScreen` shows `BottomAppBar` with back button when preference is bottom (default) - [ ] `ThreadDetailScreen` hides `BottomAppBar` when preference is top - [ ] Migration test verifies `mail_view_button_position` column is added for both fresh install (v35) and upgrade from v1/v22 - [ ] All widget and unit tests pass (`task analyze && task test`) 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.