-
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: use useAutoFocusInput for native composer #47202
fix: use useAutoFocusInput for native composer #47202
Conversation
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: Native *android.webmAndroid: mWeb ChromeiOS: Native *ios.mp4iOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@dominictb 🟢 LGTM, tests well. In order for me to Approve, please sync w/ main to solve the conflicts and hopefully this will also fix the failing |
seems like I cause something that breaks the performance tests. I'll investigate and update asap. |
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 approved as the failing performance test does not seem to be related to the code changed which is related to the non-authenticated UI (sign-in page) and not ReportScreen where the performance test issues are.
Pretty sure that the change to the perf-test file does not impact the test failing.
Let's see what the CME thinks about this and whether we should merge.
cc @youssef-lr
Going to try re-running the test |
It seems like when introducing |
Asked Expensify engineers in Slack thread regarding how we should deal with this in order to move forward with the PR. @youssef-lr In case we don't get an answer there, maybe you could ask internally 🤔 |
Update from Slack discussion
@youssef-lr Given this, we're currently HOLD on merge until a solution is found which does not fail the |
Sounds good, thanks @ikevin127 |
I'm still investigating the failure of the performance test. Will update later here once I figured something out. |
Fixed cc @ikevin127 @youssef-lr |
@youssef-lr I'm going to retest this and if all checks pass I will let you know whether it's go for merge or not. |
Hmm, in the ReportScreen.perf-test, the autoFocus is true, and by default it would introduce extra 2 re-renders in the |
@dominictb Please take this up with Vit on the Slack thread, he will have the final say in whether we are going to establish a new baseline here. |
can you merge @youssef-lr I think this is good to go based on the explanation from @dominictb in the thread here |
🟢 Just retested, all good functionality-wise! @youssef-lr I think we're good for merge here based on #47202 (comment) 🚀 |
✋ 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/youssef-lr in version: 9.0.25-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.25-0 🚀
|
Details
Fixed Issues
$ #45008
PROPOSAL: #45008 (comment)
Tests
Verify that: at step 3, user suggestion box must appear
Offline tests
QA Steps
Verify that: at step 3, user suggestion box must appear
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.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
compressed_android.webm.mp4
Android: mWeb Chrome
N/A
iOS: Native
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A
MacOS: Desktop
N/A