-
Notifications
You must be signed in to change notification settings - Fork 2
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
ui: display relevant accounts #202
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.
"@penumbra-zone/crypto-web": "^30.0.0", | ||
"@penumbra-zone/getters": "^20.0.0", | ||
"@penumbra-zone/perspective": "^40.0.0", | ||
"@penumbra-zone/protobuf": "^6.3.0", | ||
"@penumbra-zone/transport-dom": "^7.5.0", | ||
"@penumbra-zone/types": "^26.3.0", | ||
"@penumbra-zone/ui": "^13.4.2", | ||
"@penumbra-zone/ui": "^13.5.0", |
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.
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.
density updates from the UI package bump are aggregately addressed in #204 cc @VanishMax
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.
Nice job!
@@ -23,7 +24,11 @@ export const SubaccountSelector = observer(() => { | |||
<DropdownMenu> | |||
<DropdownMenu.Trigger> | |||
<Button> | |||
<AddressViewComponent copyable={false} addressView={valueAddress} /> | |||
{isLoading ? ( | |||
<SpinnerIcon className='animate-spin' /> |
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.
Suggestion: When it loads, the main acccount
state of the button is ~170px wide. Think we should make the button width in the loading state the same width so there is less screen jank as it transitions from loading to loaded.
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.
noting that a width of ~142px
fits perfectly on screen reloads, but I adjusted it to 170px
to match the button width.
references #155
useSubaccounts
react-query hook is tracked by mobx observer HOC, and queries account balances from the view service to display the relevant accounts.the
Address View
V2 UI component (penumbra-zone/web#1941) was implemented towards realizing this.Screen.Recording.2024-12-11.at.9.14.48.AM.mov