feat(APP-604): Add new SelectAddress component for asset selection#1143
Conversation
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
|
🚀 Preview Deployment: View Here |
|
E2E results (preview) Smoke
|
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
thekidnamedkd
left a comment
There was a problem hiding this comment.
Looking good. Couple questions. 🧑🚀
| @@ -0,0 +1,35 @@ | |||
| import { IconType } from '@aragon/gov-ui-kit'; | |||
There was a problem hiding this comment.
I don't remember this pattern. It's sort of like hook/util as component? Naming and location seems off maybe.
There was a problem hiding this comment.
right, I was on the fence when I saw it and I just let it go, but you are right, no need to have a different pattern for the same thing we already have in other places.
There was a problem hiding this comment.
.... I just inlined empty state as it's passed as a prop
|
|
||
| const pluginSetupRef = { | ||
| pluginSetupRepo, | ||
| pluginSetupRepo: pluginSetupRepo as Hex, |
There was a problem hiding this comment.
this was strange, I don't know why I've got this TS error, I didn't change anything related .... I'll double check, maybe just some TS cache issue
There was a problem hiding this comment.
could you please check if you get this TS error in main? I do, and I don't know how we got around it before...
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
|
@thekidnamedkd there is also an additional govkit PR related to this one, so we need a release before merging |
Signed-off-by: Milos Dzepina <milos@aragon.org>
thekidnamedkd
left a comment
There was a problem hiding this comment.
Did a closer pass — overall this is shaping up nicely. A few things worth a look, the biggest being the decimals fallback on the Unknown asset row, which I think will throw downstream in the transfer flow.
Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
Description
Introduces a new
AssetAddressSelectcomponent replacing the existingAssetSelectionDialogflow inAssetInput. Users can now pick a token from the DAO's asset list, search by name/symbol/address, or add a custom token by entering its address (resolved on the fly via RPC).Linear: APP-604
Highlights
AssetAddressSelectcomponent with paginated list, search, and "add by address" flowAssetAddressSelectItem,AssetAddressSelectAddAddressView,AssetAddressSelectAddButton,AssetAddressSelectBackButton,AssetAddressSelectEmptyStateAssetInputupdated to use the new selector and to flip the max-amount layout per designAssetInputToken@aragon/gov-ui-kitto use the newDataListItemselect variantType of Change
Developer Checklist:
Review Checklist: