-
-
Notifications
You must be signed in to change notification settings - Fork 266
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: cardano modal with governance #16003
Conversation
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
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.
Please improve commit texts
We do not use
fix: modal heading
fix: text
Maybe just squash it all into one or better separate it into some logical parts. Thanks!
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
@vladimirvolek Please use NewModal component with its props instead of custom styling If you're not sure about what components are available and how to use them you can run storybook locally |
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
Also I see that conventional commits check failed We use it like that, for example: fix(suite): desc of the change |
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
135321b
to
2a0724b
Compare
Next round please? ✨ |
drep: { | ||
drep_id: string; | ||
hex: string; | ||
amount: string; | ||
active: boolean; | ||
active_epoch: number | null; | ||
has_script: boolean; | ||
} | null; |
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.
🤔 this field is not optional. doesn't it require db migration?
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 might not be seeing the full picture so I'd like to ask what the staking
object was added to this type here https://github.com/trezor/trezor-suite/pull/16003/files#diff-590423282c67d295c7292f90e100f2863ea22b056e49ae02f135a5840475fb9bR172 (actually full misc
object). was it a bug? how come anybody did not miss it there before?
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.
Yes it was missing.
b2b1418
to
05ac752
Compare
Anything else to improve or fix? |
should there be more changes to this branch, please stop using force pushes for each of them. It makes the review slightly less enjoyable. Also please leave resolving of comments to their authors. |
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Show resolved
Hide resolved
packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx
Outdated
Show resolved
Hide resolved
Thanks! One last thing, use NewModal.Button instead of Button in the bottomContent |
You can squash it but better is to separate it into some logical parts. Thanks! e.g. blockchain-link changes in separate commit |
fix: modal heading fix: text Update packages/suite/src/components/suite/modals/ReduxModal/CardanoWithdrawModal.tsx Co-authored-by: Marek Mahut <[email protected]> review fix: new modal fix: modal fix: migration fix(suite): Cardano withdraw modal UI fix(suite): Cardano withdraw modal UI - buttons
cdead7b
to
ef6f94f
Compare
Closing in favor of #16228 to run CI and separate commits |
Adding a new Cardano withdrawal modal.