-
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
Fix IOU amount input flicking on native platforms #54189
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@Expensify/design Could you please review this? Thanks! |
Looks better to me from a visual perspective 👍 |
@brunovjk The following two lines happen to be in the same files as the changes in this PR and make the linter unhappy. If I'm responsible to do the migration, I can open a separate PR, as it's better not to include unrelated things here. What do you think? App/src/pages/iou/MoneyRequestAmountForm.tsx Line 315 in 1721cf4
Line 293 in 1721cf4
|
@QichenZhu I believe we can try to migrate them here. The change in |
@brunovjk Thanks for the suggestion! I’d be happy to handle it here if it’s straightforward. Do these changes make sense to you? App/src/pages/iou/MoneyRequestAmountForm.tsx Line 317 in 2f4ae82
policyID={policyID} Line 293 in 2f4ae82
const transactionID = transaction?.parentTransactionID || transaction?.transactionID;
if (!transactionID) {
return CONST.ERECEIPT_COLORS.YELLOW;
} I’m just wondering if it’s sufficient because, even though we remove nullish coalescing from
If we migrate |
Great! Thanks @QichenZhu. |
What are your concerns regarding As for |
My main concern here is that this change might introduce unexpected behavior since it modifies a utility function used in multiple places. But, let's try, I will make sure to test it well! @QichenZhu can you can make these updates in |
Reviewer Checklist
Screenshots/VideosAndroid: Native54189_android_native.movAndroid: mWeb Chrome54189_android_web.moviOS: Native54189_ios_native.moviOS: mWeb Safari54189_ios_web.movMacOS: Chrome / Safari54189_web_chrome.movMacOS: Desktop54189_web_desktop.mov |
@QichenZhu would you mind resolving the conflicts? Thanks. |
Conflicts resolved. |
Great, thank you. Retesting. |
Screenshots/VideosAndroid: Native54189_android_native.movAndroid: mWeb Chrome54189_android_web.moviOS: Native54189_ios_native.moviOS: mWeb Safari54189_ios_web.movMacOS: Chrome / Safari54189_web_chrome.movMacOS: Desktop54189_web_desktop.mov |
✋ 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/neil-marcellini in version: 9.0.79-0 🚀
|
Explanation of Change
Fixed Issues
$ #53286
PROPOSAL: #53286 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectionError: Uncaught (in promise) TypeError: Failed to execute add' on Cache': Request scheme 'app' is unsupported
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.Unit tests are not added as this fixes a styling issue.
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-native.mp4
Android: mWeb Chrome
android-web.mp4
iOS: Native
ios-native.mp4
iOS: mWeb Safari
ios-web.mp4
MacOS: Chrome / Safari
mac-web.mp4
MacOS: Desktop
mac-desktop.mov