Skip to content

Let users choose the default food entry tab - #5

Merged
SilverCrocus merged 2 commits into
mainfrom
feature/default-food-tab
Nov 19, 2026
Merged

SilverCrocus merged 2 commits into
mainfrom
feature/default-food-tab

Conversation

@SilverCrocus

@SilverCrocus SilverCrocus commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Closes #3.

Add Default food entry tab under More → Display. Tapping + opens the selected tab. Changing tabs while logging leaves the saved preference in place. New installs and existing preferences default to Search. Recipe editing still opens on Search.

Both PRs include the same Rust 1.100 compatibility fix. The compiler flags an unreachable error branch generated by Dioxus when parsing a string in a URL. The warning allowance is scoped to the route definition.

Verification

  • Reproduced on the original build. Selected Quick Add, closed the logger and tapped + again. The logger returned to Search.
  • On the Android 17 emulator, selected each of the five tabs in More and confirmed that + opened it. Set Quick Add, switched to Library while logging, then reopened the logger and restarted the app. Quick Add remained the default.
  • Added tests for reading older preferences and saving and restoring each tab. Workspace tests, Clippy, formatting and the WebAssembly build check passed.

Android emulator showing the Quick Add preference and the logger opened with the plus button

This change can merge in either order with #6, which fixes the Quick Add footer. Both changes were also installed and exercised together on the emulator.

@SilverCrocus
SilverCrocus merged commit 7373391 into main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to choose the default entry category

1 participant