Skip to content

style(region-selection): update selection UI to match new UI/UX in ContactList for swipe-to-reveal/dismiss#838

Merged
bmc08gt merged 2 commits into
code/cashfrom
refactor/swipe-action-row
Jun 3, 2026
Merged

style(region-selection): update selection UI to match new UI/UX in ContactList for swipe-to-reveal/dismiss#838
bmc08gt merged 2 commits into
code/cashfrom
refactor/swipe-action-row

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replace deprecated Material 1 SwipeToDismiss in RegionSelectionScreen with the modern AnchoredDraggableState-based swipe-to-reveal pattern from ContactListScreen
  • Extract shared SwipeActionRow component into ui:components with support for N actions — the rightmost action grows from circle to rounded rect on swipe and triggers on full dismiss; remaining actions are click-only fixed circles
  • Add stateKey parameter to tie swipe state to item identity, preventing dismissed state from carrying over to adjacent items after removal
  • Move dividers outside swipeable content in both ContactListScreen and RegionSelectionScreen so they remain static during swipe
  • ContactListScreen now uses Icons.Rounded.PersonRemove for its swipe action

bmc08gt added 2 commits June 3, 2026 13:38
…ntactList for swipe-to-reveal/dismiss

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
Rename SwipeToRevealItem to SwipeActionRow and move to ui:components
as a shared composable. Support N actions via SwipeAction, where the
rightmost action grows on full swipe and triggers automatically.
Add stateKey parameter to prevent swipe state carryover across list
item removals. Move dividers outside swipeable content so they remain
static during swipe.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 3, 2026
@github-actions github-actions Bot added the area: ui Compose UI, theme, components, resources label Jun 3, 2026
@bmc08gt bmc08gt merged commit 06c30bb into code/cash Jun 3, 2026
3 checks passed
@bmc08gt bmc08gt deleted the refactor/swipe-action-row branch June 3, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Compose UI, theme, components, resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant