-
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 header displays skeleton when creating report with invalid user #39585
Conversation
@jayeshmangwani 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] |
@@ -119,6 +119,7 @@ export default withOnyx<ReportActionItemCreatedProps, ReportActionItemCreatedOny | |||
prevProps.report?.description === nextProps.report?.description && | |||
prevProps.personalDetails === nextProps.personalDetails && | |||
prevProps.policy?.description === nextProps.policy?.description && | |||
prevProps.report?.reportName === nextProps.report?.reportName, | |||
prevProps.report?.reportName === nextProps.report?.reportName && | |||
prevProps.report?.errorFields === nextProps.report?.errorFields, |
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.
@jayeshmangwani We should add the errorFields to memo function. If not, the error doesn't appear immediately because we don't clear personal detail in failure data, it leads personalDetails
doesn't change.
@deetergp @nkdengineer When we start a chat with the invalid phone number(in this case, +79585702746), we can see the server at the bottom of the page. When we go back without pressing the close(X icon) on the error, and then again start chat with same number (+79585702746), we can see the error twice, this same issue happens on staging, too. It's not related to this PR, but it was found when testing this issue, so posting here.Video attached below: Videomultiple-errors.mov |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid.movAndroid: mWeb ChromemWeb-chrome.moviOS: NativeiOS.moviOS: mWeb SafarimWeb--safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.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.
Code changes LGTM 🚀
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.
Code LGTM as well, but it looks like your PR is failing the performance tests.
@deetergp It's fixed now. |
✋ 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/deetergp in version: 1.4.62-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/deetergp in version: 1.4.62-0 🚀
|
🚀 Deployed to staging by https://github.com/deetergp in version: 1.4.62-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.62-17 🚀
|
Details
Fix header displays skeleton when creating report with invalid user
Fixed Issues
$ #38879
PROPOSAL: #38879 (comment)
Tests
Offline tests
Do step 1-3 online
Do step 4-6 offline
QA Steps
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
Screen.Recording.2024-04-04.at.16.16.28.mov
Android: mWeb Chrome
Screen.Recording.2024-04-04.at.16.07.17.mov
iOS: Native
Screen.Recording.2024-04-04.at.16.17.12.mov
iOS: mWeb Safari
Screen.Recording.2024-04-04.at.16.08.14.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-04.at.16.04.40.mov
MacOS: Desktop
Screen.Recording.2024-04-04.at.16.22.03.mov