-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactor/36648 wallet enablement flow terms #40567
Refactor/36648 wallet enablement flow terms #40567
Conversation
Screenshots look pretty good to me, thanks Agata! |
@koko57 Needs to resolve conflicts. |
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.
Minor style changes
message={errorMessage} | ||
isAlertVisible={error || Boolean(errorMessage)} | ||
isLoading={!!walletTerms?.isLoading} | ||
containerStyles={[styles.mh0, styles.mv4]} |
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.
containerStyles={[styles.mh0, styles.mv4]} | |
containerStyles={[styles.mh0, styles.mv5]} |
Let's make the margin consistent
@@ -32,7 +32,7 @@ function ShortTermsForm(props: ShortTermsFormProps) { | |||
<View style={[styles.shortTermsRow, styles.mb4]}> | |||
<View style={[styles.flex2]}> | |||
<View style={[styles.flexRow, styles.mb1]}> | |||
<Text style={styles.textLarge}>{translate('termsStep.monthlyFee')}</Text> | |||
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.monthlyFee')}</Text> |
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.
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.monthlyFee')}</Text> | |
<Text style={[styles.mutedNormalTextLabel]}>{translate('termsStep.monthlyFee')}</Text> |
@@ -41,7 +41,7 @@ function ShortTermsForm(props: ShortTermsFormProps) { | |||
<View style={[styles.flex2]}> | |||
<View style={[styles.flex2]}> | |||
<View style={[styles.flexRow, styles.mb1]}> | |||
<Text style={styles.textLarge}>{translate('termsStep.shortTermsForm.perPurchase')}</Text> | |||
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.perPurchase')}</Text> |
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.
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.perPurchase')}</Text> | |
<Text style={[styles.mutedNormalTextLabel]}>{translate('termsStep.shortTermsForm.perPurchase')}</Text> |
<View style={[styles.flexRow, styles.mb1]}> | ||
<Text style={styles.textLarge}>{translate('termsStep.shortTermsForm.atmWithdrawal')}</Text> | ||
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.atmWithdrawal')}</Text> |
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.
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.atmWithdrawal')}</Text> | |
<Text style={[styles.mutedNormalTextLabel]}>{translate('termsStep.shortTermsForm.atmWithdrawal')}</Text> |
</View> | ||
</View> | ||
<View style={[styles.flex2]}> | ||
<View style={[styles.flex2]}> | ||
<View style={[styles.flexRow, styles.mb1]}> | ||
<Text style={styles.textLarge}>{translate('termsStep.shortTermsForm.cashReload')}</Text> | ||
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.cashReload')}</Text> |
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.
<Text style={[styles.textLabel, styles.textSupporting]}>{translate('termsStep.shortTermsForm.cashReload')}</Text> | |
<Text style={[styles.mutedNormalTextLabel]}>{translate('termsStep.shortTermsForm.cashReload')}</Text> |
src/styles/index.ts
Outdated
@@ -3349,6 +3349,7 @@ const styles = (theme: ThemeColors) => | |||
shortTermsBorder: { | |||
borderWidth: 1, | |||
borderColor: theme.border, | |||
borderRadius: 5, |
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.
borderRadius: 5, | |
borderRadius: variables.componentBorderRadius, |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeoop1.webmAndroid: mWeb Chromeoop2.webmiOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-01.at.19.49.44.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-01.at.19.58.00.mp4MacOS: Chrome / SafariScreen.Recording.2024-05-01.at.19.46.58.movMacOS: DesktopScreen.Recording.2024-05-01.at.20.00.05.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.
LGTM!
Thanks for keeping it in sync, we will be able to merge it now after release1 being done i will check it out soon Sorry was ooo previous week |
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 @koko57 for patience
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.74-0 🚀
|
@koko57 Our QA team can't run in the native apps. Are there alternative steps for apps?
|
@kavimuru try the same as the previous PR: #40357 (comment) but with proper path: |
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀
|
Details
Fees and Terms step only UI
Fixed Issues
$ #36648
PROPOSAL:
Tests
If you're on a real device try typing new-expensify://settings/wallet/enable-payments-temporary-terms in the chrome/safari searchbar - it should open the installed app.
Offline tests
n/a
QA Steps
If you're on a real device try typing new-expensify://settings/wallet/enable-payments-temporary-terms in the chrome/safari searchbar - it should open the installed app.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-04-24.at.15.32.28.mov
MacOS: Desktop
n/a