-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: add overview info and change copy for advanced payment review #3724
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.
Thanks for your work on this. I can see the updated copy for the creator is correct.
![Screenshot 2024-11-18 at 12 14 44](https://private-user-images.githubusercontent.com/34915414/387211766-6aa4d8b5-3470-4615-9527-c60f68d57c6f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8zNDkxNTQxNC8zODcyMTE3NjYtNmFhNGQ4YjUtMzQ3MC00NjE1LTk1MjctYzYwZjY4ZDU3YzZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjNjhlZjkyNTdkNTllOTZjMDM5YzVkMWMyMGExMGYyZDkzMjcyZTczZGE3MzI4NzBmZWZjODhhMjkwM2Q5NGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.g7NO27yyRxt9gUbb79x9zL_Z4uRlTLbqLy3OwXzdtek)
However, I created the action using permissions rather than staking, so I don't think a stake amount should be shown here:
![Screenshot 2024-11-18 at 12 14 37](https://private-user-images.githubusercontent.com/34915414/387212219-3e24b3a2-57b9-45c5-b4b5-da5193f5ee69.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8zNDkxNTQxNC8zODcyMTIyMTktM2UyNGIzYTItNTdiOS00NWM1LWI0YjUtZGE1MTkzZjVlZTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhZWNkNTMwMTM0NDk2YmU0Y2M5OGQxZWFmNDM1M2VkMDJiNzQ2NjU5NjkyZWRkY2VmZjk3N2JiMDllOTYzMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._aZzxFzaobOGm8yTLgqlzwaI1T_I54TS9DXoMpEzrYk)
The original issue says "The card should show a different message about how they created the payment, i.e. Permissions, or Stake amount." Although the figma design doesn't seem to include the permissions version.
The PaymentBuilderWidget is really getting bloated now, do you think you could move all the review step logic into a new component to keep things a bit tidier?
@iamsamgibbs I can't create an action for |
You might need to rebase, this PR fixes stakes and got merged yesterday: #3629
@arrenv @melyndav Might need a quick figma mock up / description for how this should look (assuming we've understood correctly what is required here) |
6c758b5
to
7537056
Compare
@adam-strzelec The only difference between Permissions and Staking decision methods is that the stake amount should only be shown for the latter. If a payment was created with permissions, non-creators should only see the Payment creator field on this card: ![]() |
7537056
to
b17624f
Compare
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, this is looking a lot better now! Whilst in review and viewing as another user:
However, the wording in the completed view of these steps does not match the figma design, it should read "Payment creator completed the review step."
![Screenshot 2024-12-06 at 09 14 52](https://private-user-images.githubusercontent.com/34915414/393182088-c4a8fc4d-1615-4795-abf3-e560bdf48587.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8zNDkxNTQxNC8zOTMxODIwODgtYzRhOGZjNGQtMTYxNS00Nzk1LWFiZjMtZTU2MGJkZjQ4NTg3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxZTg5OGI4MjIzM2ZhYjE1NjQ0NTM3OTIzZTkxMDQxYmEzMmQ2ZTRjN2M3MTZmZDc1ODNmOTI4NGUzZTI1N2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hsvl3ETZ0HHF4C0KdF76CGuPuDclbaO8Mo6EjsVwR14)
Currently looks like this:
![Screenshot 2024-12-06 at 09 07 25](https://private-user-images.githubusercontent.com/34915414/393182571-127ad2ea-81e0-47c0-a5bc-94a8c6814a94.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8zNDkxNTQxNC8zOTMxODI1NzEtMTI3YWQyZWEtODFlMC00N2MwLWE1YmMtOTRhOGM2ODE0YTk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyZDk0ZjhhZGJkYTIzNWM0NjUzNmVkZGRkZTMwZmVjY2UxMjcxOGM3OTIxYzFlNGUyMGIxNWRhYzU4NDkxNGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Myd000wCvVEHhXbt5kkIaAcXRH064YAWhqKlEoZEOjo)
![Screenshot 2024-12-06 at 09 08 29](https://private-user-images.githubusercontent.com/34915414/393182574-f81bee16-5670-425d-bf18-3cdc1af933ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8zNDkxNTQxNC8zOTMxODI1NzQtZjgxYmVlMTYtNTY3MC00MjVkLWJmMTgtM2NkYzFhZjkzM2VkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjYzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxNDQ0YTc0NjU0YWM4NDY5NWY5MTA5N2VhNzhhY2Q4MTRhNzk3ZjNjYjllODFiNDZiNmIwNGU2ZjhjM2IyYWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EZwclVtciCvh0sRdJL45olvRUIxs2Bl9ZMlnyTqSb8U)
I think with that small change we're good to go!
@adam-strzelec there will just not be any stake amount row. Figma design. |
@arrenv @iamsamgibbs That's how it works now |
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.
Thanks for your PR @adam-strzelec. The copy looks good, however I noted the bottom padding of the card is too big compared to Figma:
![image](https://private-user-images.githubusercontent.com/112586815/396289853-0386c0be-8865-44d6-968c-9afa71b6b901.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8xMTI1ODY4MTUvMzk2Mjg5ODUzLTAzODZjMGJlLTg4NjUtNDRkNi05NjhjLTlhZmE3MWI2YjkwMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00M2ZhNTdlZGQxMDM1NGFjZjhhNzc1ZDIwOGNiNGQ2YTA1OThhMDY3ZTQwNGY3NmM1OTU4ZWIxNTFmZWVkNDA1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.XZZy2TMWPZKTvk5pWwiH_7eJN1sPhxMttFRVDct-7OM)
I also left a comment where a different field should be used to access payment creator address.
As creator:
![image](https://private-user-images.githubusercontent.com/112586815/396289691-b7a025f4-19e2-40bb-ae21-7cb0dd6bba93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8xMTI1ODY4MTUvMzk2Mjg5NjkxLWI3YTAyNWY0LTE5ZTItNDBiYi1hZTIxLTdjYjBkZDZiYmE5My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGYxZjRkYjdiZTVmMDRhMWQwYmRmZmQxNGIxMDgyMjFhYjYxZmZmNTY4ZTU3NmM1MTUwNTA1MDE0Y2I5MzViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.x3JwIAzPL2T7Uy_3d3xgtvPzKkwhQ741gRVLPuEHn2Y)
![image](https://private-user-images.githubusercontent.com/112586815/396290042-3a3d915a-f0e5-4855-8a9a-74e913c4a400.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0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AwJlgtQW16LVNpZ25hdHVyZT1mYzg1ZTNiMTdmNjRjZjEzYmI1NWQyZDYwZDY2Y2ZiNmYzODlmZDUyYjEzMWZlNGUwZGQzNTIyM2E4ZWIzNTZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zkDAEvvdCd1sBhcwXwelipq8Pr12jDV_EJ8tKtVSx-s)
![image](https://private-user-images.githubusercontent.com/112586815/396290901-00ffb389-78df-4182-b4c6-d95ae33dde76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8xMTI1ODY4MTUvMzk2MjkwOTAxLTAwZmZiMzg5LTc4ZGYtNDE4Mi1iNGM2LWQ5NWFlMzNkZGU3Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTAwNDgxYzIxOWI5ZTRlZTc3YmU4MDk3NjY2MmQ3NGU3ZTk0MWY1ZDVjNTM3OGZkM2E2ZTBiNjBhNjU3MDlmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Yg9YA7vam5iIlhREdvLOUWlhhCcReeszJQPYqgdumtU)
@@ -82,7 +85,7 @@ const PaymentBuilderWidget: FC<PaymentBuilderWidgetProps> = ({ action }) => { | |||
setSelectedReleaseAction, | |||
} = usePaymentBuilderContext(); | |||
|
|||
const { expenditureId } = action; | |||
const { expenditureId, initiatorUser } = action; |
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.
It's possible initiatorUser
will be null, for example as a result of direct chain interaction outside the UI.
Wherever expenditure creator's address is referenced it should use action.initiatorAddress
.
cc22cbd
to
fa4d0e0
Compare
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 work on this one @adam-strzelec 🙌
View after the Advanced payment
was created as the Payment creator
View after the Advanced payment
was created as another user
View after the payment creator finalised the the Review
step.
However as @iamsamgibbs pointed out, the widget header copy after the Review
step has been completed doesn't match Figma
, so would appreciate it if we could update this as well @adam-strzelec 🥇
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.
The copy and padding looks good now, thank you @adam-strzelec. However, I noticed an unsafe array access, which should hopefully be easy to fix.
![image](https://private-user-images.githubusercontent.com/112586815/403157074-c3f7d3fb-095e-49ca-b2ff-411a8b78b883.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8xMTI1ODY4MTUvNDAzMTU3MDc0LWMzZjdkM2ZiLTA5NWUtNDljYS1iMmZmLTQxMWE4Yjc4Yjg4My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZWQ4NzlkODE4OTQ4ZTM2MTczN2M0ZDMxYWFlMzI3Y2JiYjljY2RkODgzYzg4MDVmOWQ1OTg2MzJkMTg2ZDgyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.wNhxqD8oUGKNfFISExDU1LJrQ0x69VuXmSm75lf8V5w)
![image](https://private-user-images.githubusercontent.com/112586815/403157223-4a5e4bd4-5517-4e38-80da-f553a950aff2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTgsIm5iZiI6MTczOTE3OTU5OCwicGF0aCI6Ii8xMTI1ODY4MTUvNDAzMTU3MjIzLTRhNWU0YmQ0LTU1MTctNGUzOC04MGRhLWY1NTNhOTUwYWZmMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mOWZlOGI0ZmQ4YThhN2M4MTVhYmQxN2EyZDFmNGMxZjM4MjQ2ZmM5YzkzMzliNTI1Yzc1OWFkMmMzZDIwNzQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Tt1qJDmonuQwKt6T86oz48KsxuzdUj6aQeq_gHtqmOs)
![image](https://private-user-images.githubusercontent.com/112586815/403157983-c14fd526-98ba-44b3-86d2-4bb2e5d77a1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImt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ZT0yMDI1MDIxMFQwOTI2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ODU3NWQ5NTM2NTQ4YmY3YjYzMTYyMzFkYWE2ZWY2ODRlMGE5MjA0NGYyNWYyMzRkYzZjZDBiZjgzMWUzZjhiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZOM4lxEfHGRlAb59Bf3ygWH-9G7ajP3nHOU1EgdKGis)
@@ -92,6 +95,11 @@ const PaymentBuilderWidget: FC<PaymentBuilderWidgetProps> = ({ action }) => { | |||
stopPolling, | |||
} = useGetExpenditureData(expenditureId, { pollUntilUnmount: true }); | |||
|
|||
const tokenData = getSelectedToken( | |||
colony, | |||
expenditure?.slots?.[0].payouts?.[0].tokenAddress ?? '', |
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.
I hadn't caught it earlier, the array indexes need to be followed by ?
too, otherwise this will crash on empty slots/payouts array.
expenditure?.slots?.[0].payouts?.[0].tokenAddress ?? '', | |
expenditure?.slots?.[0]?.payouts?.[0]?.tokenAddress ?? '', |
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.
Looking good from my side @adam-strzelec, once the empty array fix Jakub raised is dealt with!
Ready to approve as soon as that potential crash is fixed 🚀
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.
Hey @adam-strzelec, I noticed the header
issue is still present and not matching Figma
when the Review
step is completed. Is this something we don't want to tackle for now?
Also @adam-strzelec can you please address @jakubcolony comment regarding the empty arrays?
@mmioana Did you mean to change the Status Badge to one that corresponds to the currently selected step? |
Hey @adam-strzelec! Thanks for your patience 🙏 I meant the card header after the |
63dd476
to
57ad081
Compare
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.
@adam-strzelec must be I haven't pulled the latest changes, but can confirm that now it properly shows up also for me! Thank you for all the effort on this issue 🥇
Screen.Recording.2025-01-28.at.19.58.25.mov
Screen.Recording.2025-01-28.at.19.59.03.mov
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.
All good apart from a single question mark - please ping me once you add it and I'll approve straightaway.
@@ -92,6 +95,11 @@ const PaymentBuilderWidget: FC<PaymentBuilderWidgetProps> = ({ action }) => { | |||
stopPolling, | |||
} = useGetExpenditureData(expenditureId, { pollUntilUnmount: true }); | |||
|
|||
const tokenData = getSelectedToken( | |||
colony, | |||
expenditure?.slots?.[0].payouts?.[0]?.tokenAddress ?? '', |
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.
8945a77
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.
Thanks for the tiny fix, all good here.
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.
Thank you a lot for your continuous effort on this issue @adam-strzelec 🙌
Looks good from my side 💯
Using permissions
Screen.Recording.2025-02-07.at.14.10.05.mov
Using staking
Screen.Recording.2025-02-07.at.14.11.06.mov
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.
Thanks for the fix, all good here 👍
Description
Change copy and add overview info for advancep payment
Testing
Review
tabDiffs
Permissions:
![Screenshot 2024-12-31 at 13 09 02](https://private-user-images.githubusercontent.com/182495766/399468327-0f9780c7-ba0c-4219-b36f-24a9f6d4f6f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTYsIm5iZiI6MTczOTE3OTU5NiwicGF0aCI6Ii8xODI0OTU3NjYvMzk5NDY4MzI3LTBmO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yMmVmMjJmZjJiZGNkZDBkZjcxODk2ZDU2NThkM2EyMGJmMTQ4OGMxZTdiMWY3ODdhZWQ1ZmQyZWQ4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.1uvuCI2lpMAbVhWKsNF7kYG7MzhSLpEL45YToR_1u1s)
Creator:
![Screenshot 2024-11-15 at 17 36 17](https://private-user-images.githubusercontent.com/182495766/386689297-1437059b-0e2a-4dc7-9128-a92394108a12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk4OTYsIm5iZiI6MTczOTE3OTU5NiwicGF0aCI6Ii8xODI0OTU3NjYvMzg2Njg5Mjk3LTE0MzcwNTliLTBlMmEtNGRjNy05MTI4LWE5MjM5NDEwOGExMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwOTI2MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZmEwZTcxZWY2M2EyNWE4Y2RhM2QzNWYxMTk2MWQzYWViM2IwMzE5OWU0MDBjMDEwYmYwZmU2OGMwMWVjZTVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.6khilaxxsuv_TyfHEjXmPkBePsodk9tlPCV3GcGaX-M)
Main issue - #3680