-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet Switcher v2 #6318
Wallet Switcher v2 #6318
Conversation
…dropdown component
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, i played with it a lot and it looks solid but I think I found one issue. When I unpinned all wallets, then repinned them, the draggable functionality seemed to break.
src/components/drag-and-drop/features/sort/hooks/useDraggableSort.ts
Outdated
Show resolved
Hide resolved
hey, @maxbbb I tested this again, but I think I'm seeing more issues dragging now than before. I logged the last commit. Let me know if you think this issue is on my end. Pinning 3 wallets also seems to lock up dragging. https://www.loom.com/share/14ab2236f96942c48de0300d94f5f7e1 |
I've been testing on real device so I will test on simulator to see if any issue is more obvious there. However, I think what's happening in your video is expected behavior. There is a 150ms delay where you have to press on the item before the drag can become active. There has to be some delay here, otherwise you wouldn't be able to scroll the scrollview. This value could be adjusted to be slightly lower if it doesn't feel right, but I tried to match the perceived behavior of moving apps around your home screen on iOS. From the video it looks like you're clicking then immediately dragging before that 150ms window, but if that's not what's happening though let me know. |
@maxbbb I think you're correct. The behavior feels much better on simulator when I'm more patient. I tested on a physical device and the haptic feedback makes the draggable window feel very clear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fabulous, ✅
Fixes APP-2081
Spec: https://www.notion.so/135b001b85b4808cae11f62380e8fc5c
What changed (plus any additional context for devs)
DraggableScrollView
and theuseDraggableScroll
hook that handles auto scrolling when dragging items at the visible edge of the scroll.DraggableGrid
to fix bug related to offsets drifting when interacting too quickly with different draggable items. This fix needs to also be applied to theDraggableScrollView
but it would currently break auto scrollingChangeWalletSheet
,WalletList
, andAddressRow
PinnedWalletsGrid
for the grid of up to 6 pinned wallets.pinnedWalletsStore
DropdownMenu
component to be usable for non checkmark type itemsFeatureHintTooltip
for general feature hints, API loosely based on Radix Tooltip component.Review Notes
ChangeWalletSheet
related to removing, editing, etc. a wallet did not change.Known Issues
I cannot reproduce consistently, but a couple times when removing a wallet, the others would get stuck in a state of "balance loading" for the balance label. This is likely not a newly introduced bug, but I have not tested for this in prod.(fixed)Potential follow up improvements
AddressRow
layout transitions can be smoothly animatedThe(implemented)DndProvider
currently does some custom handling of the pan gesture starting, which it should not. This is the source of some issues where pressing on the item gives haptic feedback indicating its ready to drag but it cannot be dragged because the gesture actually failed.Screen recordings / screenshots
RPReplay_Final1734630484.MP4
What to test