-
Notifications
You must be signed in to change notification settings - Fork 31
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
feat: wallet-ui multiple accounts scrollbar #499
Conversation
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.
Left some comments, and there are 2 important comments/questions here
-
Didnt we agree to use modal , rather than pull out to support scroll bar? as. modal can be more responsive, but im okay with that too (Network poll up is different, it only have 2, not dynamic)
-
Address index is a requirement for next ticket (https://consensyssoftware.atlassian.net/browse/SF-785), what is the reason to have this in this ticket? as the user story has not mention this (https://consensyssoftware.atlassian.net/jira/software/projects/SF/boards/472?selectedIssue=SF-784)
packages/wallet-ui/src/components/ui/organism/SideBar/SideBar.view.tsx
Outdated
Show resolved
Hide resolved
The reason to use index here already, is to show Account Number in the list. We could have a separate index but as we already have it from backend I thought it would make sense to add it here already. Regarding the modal. I felt that the UX/UI was good. The switch appears closer to the button so it's less extra movement for the mouse and this feels more like an integrated approach. Except if there is a strong no go on that I would suggest to keep it this way. Maybe we can revisit this when integrating design change to include dApps listing.. |
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.
Left 2 comments,
And there is a recommend comment
i can see some component retrieve state from redux, but at the meanwhile it retrieve the redux state from parent
if you dont mind, i will suggest, to align to use redux
the redux purpose is to avoid pass state from each level
as i already seen passing state from
home -> sidebar -> account detail / account switch
in general a component only stateless if it is a re-useable component , such as AddressInput, AmountInput
i know it may have a lot of change if we do that
I would suggest lets move that slowly, at least
- AccountSwitchModalView -> keep full , and starkName
- SideBarView - no props
- AccountDetailsModal - no props
those can be stateful without the need passing address / addressIndex
in additional, i think you can also make the currentAccount from redux state to have a dummy object to include the dummy address, so when changing SideBarView, you dont need to much effort
WDYT
packages/wallet-ui/src/components/ui/organism/AddTokenModal/AddTokenModal.view.tsx
Outdated
Show resolved
Hide resolved
packages/wallet-ui/src/components/ui/organism/SideBar/SideBar.view.tsx
Outdated
Show resolved
Hide resolved
|
|
Regarding this comment : in additional, i think you can also make the currentAccount from redux state to have a dummy object to include the dummy address, so when changing SideBarView, you dont need to much effort Its solved in an other PR: #502 |
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.
LGTM
packages/wallet-ui/src/components/ui/organism/AddTokenModal/AddTokenModal.view.tsx
Show resolved
Hide resolved
ef9e9cf
into
feat/enable-multiple-accounts
This PR adds the support of infinite account to Wallet-UI
Changes :
See the video below :
Screen.Recording.2025-01-28.at.15.08.41.mov