-
Notifications
You must be signed in to change notification settings - Fork 985
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
Implement Wallet - Account Switcher #18003
Conversation
Jenkins BuildsClick to see older builds (23)
|
just a heads up this pr will be merged shortly- not sure if it affects this pr but it moved the account switcher to a centralised location 👍 - #17946 |
5f45859
to
b4ec617
Compare
@smohamedjavid it's still marked as darft. is that by accident? if not, please let us know when it's ready to review 👍 |
7977bcb
to
ad9ce1e
Compare
@ulisesmac - I was adding tests and fixing bugs yesterday. So, marked it as a draft. |
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 good ⭐
ad9ce1e
to
ac9a6bb
Compare
82% of end-end tests have passed
Failed tests (4)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Expected to fail tests (4)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (37)Click to expandClass TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
|
src/status_im2/contexts/wallet/common/sheets/account_options/view.cljs
Outdated
Show resolved
Hide resolved
ac9a6bb
to
c0b627c
Compare
@smohamedjavid amazing work, thank you! |
c0b627c
to
5025a50
Compare
@qoqobolo - Thank you for testing this PR. |
Thanks @smohamedjavid! One question: On Android, when the height of the bottom sheet is max, the top margin differs from iOS and design, is this expected? video_2023-12-01_16-47-53.mp4Designs/iOS |
@qoqobolo - This is odd, as I could not see this issue on my end.
We didn't have any full-height bottom sheets before this PR. So, it's hard to test with other bottom sheets. Can you help with the device model you are using to test? We will try to debug. |
Sure, it's reproducible on Google Pixel 7a |
@qoqobolo - Thank you for sending the device modal. I tried it on Google Pixel 7a, and it's reproducible. I checked the existing max height calculation (window height less (-) OS's top (bar) safe area). It works as expected on iOS devices and for Android devices that don't have a punch-hole selfie camera. The sheet's max height behaves differently on devices with a punch-hole selfie camera than the devices without it. Please help me create a separate issue, as adjusting the bottom sheet max-height calculation should not affect existing sheets in the app. |
Will do!👌 No more questions from my side, PR can be merged. |
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
5025a50
to
503b250
Compare
This commit: - Implements the Wallet Account Switcher for easy switching between wallet accounts - Updates the About tab in the accounts screen to display the correct account address and derivation path along with the profile. - Updates the account-item component to pass the state from the parent and refactors the depreciated color functions - Moves the handle-bar in the bottom sheet to a standalone component - Adds customization-color in account-origin component --------- Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
fixes #17368
Summary
This PR:
about
tab in the accounts screen to display the correct account address and derivation path along with the profile.account-item
component to pass thestate
from the parent and refactors the depreciated color functionshandle-bar
in the bottom sheet to a standalone component Figma LinkAccount.Switcher.mp4
Review notes
The
handle-bar
used in the bottom sheet is actually a separate component and it's moved to its respective ns. This helps us to create the gradient effect along with account options and a handlebar to be sticky on top of the sheet when the user scrolls through the accounts list. We have to make the sticky area to be positioned absolute to receive the sheet gesture.Platforms
Steps to test
User having only one account
User having more than one account
status: ready