Skip to content

feat(home): add nav bar settings sheet with drag-to-reorder#767

Merged
bmc08gt merged 3 commits into
code/cashfrom
feat/add-navbar-reorder-beta
May 25, 2026
Merged

feat(home): add nav bar settings sheet with drag-to-reorder#767
bmc08gt merged 3 commits into
code/cashfrom
feat/add-navbar-reorder-beta

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 23, 2026

Summary

  • Add configurable nav bar button order and give-button label, persisted via feature flag
  • Extract shared NavigationBar composable and LongPressDraggable utility from scanner into core, enabling reuse in both the home screen and a new Labs settings sheet
  • Add WrapContentSheet navigation type so bottom sheets can size to their content instead of always filling max height

Details

Navigation layer — new WrapContentSheet interface in ui/navigation. Sheets implementing this marker skip fillMaxHeight and the ScrimOverlay, allowing content-sized bottom sheets.

Core models — NavBarButton, GiveButtonLabel, and NavBarConfig define the button order and label preferences with serialization for storage in feature flags. The existing inline navigation bar in ScannerNavigationBar is replaced
with the shared NavigationBar composable.

Labs settings — a new "Home Screen" section in Labs opens a NavBarSettingsScreen bottom sheet where users can drag-to-reorder nav buttons and toggle the give-button label between options via a segmented control. Changes persist
immediately through the NavBar feature flag.

bmc08gt and others added 3 commits May 23, 2026 19:55
Add WrapContentSheet interface, IsWrapContentSheet metadata key, and
conditional fillMaxHeight/ScrimOverlay handling for wrap-content sheets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract NavBarButton, GiveButtonLabel, NavBarConfig models and shared
NavigationBar composable from scanner. Add LongPressDraggable utility
and NavBar feature flag. Refactor ScannerNavigationBar to use shared
NavigationBar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add NavBarSettingsScreen and content with drag-to-reorder support.
Register NavBarSettings route, add string resources, wire entry in
Labs "Home Screen" section, and register screen in AppScreenContent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bmc08gt bmc08gt self-assigned this May 23, 2026
@github-actions github-actions Bot added type: feature New functionality area: ui Compose UI, theme, components, resources area: scanner QR/Kikcode scanning, camera labels May 23, 2026
@bmc08gt bmc08gt changed the title feat(lab): add nav bar settings sheet with drag-to-reorder feat(home): add nav bar settings sheet with drag-to-reorder May 23, 2026
@bmc08gt bmc08gt merged commit 807b939 into code/cash May 25, 2026
3 checks passed
@bmc08gt bmc08gt deleted the feat/add-navbar-reorder-beta branch May 25, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: scanner QR/Kikcode scanning, camera area: ui Compose UI, theme, components, resources type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant