-
Notifications
You must be signed in to change notification settings - Fork 5
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(extension) add FOOR buy ADA button to Banxa [LW-5104],[LW-10213] #1016
Conversation
Allure Report
smokeTests: ✅ test report for a356d56e
|
...browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletButton.tsx
Outdated
Show resolved
Hide resolved
height: 20px; | ||
} | ||
.badgeCaption { | ||
color: var(--White, #FFF); |
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.
could you please use proper color from _light/_dark.scss
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 @vetalcore I've change it to --color-white. This color will always be white regardless of theme because it's on specific background
...owser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWallet.module.scss
Outdated
Show resolved
Hide resolved
...browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletButton.tsx
Outdated
Show resolved
Hide resolved
...browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletButton.tsx
Outdated
Show resolved
Hide resolved
import { useTranslation } from 'react-i18next'; | ||
import { BANXA_URL } from './config'; | ||
|
||
export const TopUpWalletButton = (): React.ReactElement => { |
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.
Is it a button? Maybe we could leave TopUpWallet
as a name because it's a feature with a button and dialog. You can come up with a better name ofc 😄
On the other hand I'd probably leave the button/dialog separately and integrate the logic in some sort of TopUpWalletCardContainer
.
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 @przemyslaw-wlodek, yes, it's a button and a modal. It's not stated on the JIRA ticket but maybe at some point a new requirement will be added for the modal to be visible just once. Then Button will be much more relevant. TBO I don't know - maybe TopUpWalletButtonConfirmation?
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'd consider TopUpWallet
then 😃 WDYT?
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 @przemyslaw-wlodek, I'm not 100% sure :) but it just because the feature has been named with the same name (TopUpWallet), and this "button + modal" is just one of the components, however I'm happy to rename it.
apps/browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletCard.tsx
Outdated
Show resolved
Hide resolved
...browser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWalletDialog.tsx
Outdated
Show resolved
Hide resolved
@tommayeliog when you will have this feature ready to be merge, please remember to put JIRA ticket ID like |
Quality Gate passedIssues Measures |
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've left 1 minor comment about naming. Thank you @tommayeliog! GJ 🚀 Feel free to proceed when you resolve other comments.
...owser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWallet.module.scss
Outdated
Show resolved
Hide resolved
...owser-extension-wallet/src/views/browser-view/components/TopUpWallet/TopUpWallet.module.scss
Outdated
Show resolved
Hide resolved
…s/TopUpWallet/TopUpWallet.module.scss Co-authored-by: Michael Chappell <[email protected]> Signed-off-by: Tom Mayel <[email protected]>
…s/TopUpWallet/TopUpWallet.module.scss Co-authored-by: Michael Chappell <[email protected]> Signed-off-by: Tom Mayel <[email protected]>
Quality Gate passedIssues Measures |
Checklist
Proposed solution
But ADA button added for Tokens page on the side bar (or under portfolio ballance, when no sidebar visible).
Hidden behind a feature flag USE_BANXA_TOPUP
If user agrees T&C and click "Continue" a new Tab opens with Banxa url.
PostHog actions added - LW-10213
Testing
For testing please change locally USE_BANXA_TOPUP=true
Screenshots