-
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: 30839 All of the IOU chats disappear when I do the same IOU and turn the connection on #31903
Conversation
…turn the connection on
// If the report is optimistic (AKA not yet created) we don't need to call openReport again | ||
if (props.report.isOptimisticReport) { | ||
if (props.report.isOptimisticReport || !_.isEmpty(createChatError)) { |
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.
Ah, I just noticed there's already an isOptimisticReport
field. Would it be better to set isOptimisticReport
to true
when creating an optimistic report instead of adding the condition for errorFields
? I see that some places are setting it this way.
App/src/libs/actions/Policy.js
Line 469 in 70813db
isOptimisticReport: true, |
App/src/libs/actions/Policy.js
Line 489 in 70813db
isOptimisticReport: false, |
Please feel free to let me know if you have some different thoughts. :)
cc @nkuoch
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.
Agree that we can set isOptimisticReport to true
Pros: Setting isOptimisticReport
for consistency
Cons: We have to update many places. We already set errorFields so we just need to make the small change.
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.
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.
@tienifr, I think the current implementation is ok. We just need to add some details based on the comment below. :)
Reviewer Checklist
Screenshots/VideosAndroid: Native31903-android-app.mp4Android: mWeb Chrome31903-android-chrome.mp4iOS: Native31903-ios-app.mp4iOS: mWeb Safari31903-ios-safari.mp4MacOS: Chrome / Safari31903-web.mp4MacOS: Desktop31903-desktop.mp4 |
@tienifr, please provide detailed steps to create the error report (similar to the OP). Additionally, we are missing videos for the Android app and chrome. :) |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 1.4.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.8-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.8-3 🚀
|
Details
Fixed Issues
$ #30839
PROPOSAL: #30839 (comment)
Tests
Offline tests
Same as above
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 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)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
Screen.Recording.2023-11-27.at.17.48.58.mov
iOS: mWeb Safari
Screen.Recording.2023-11-27.at.17.31.56.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-27.at.16.02.31.mov
MacOS: Desktop
Screen.Recording.2023-11-27.at.17.37.40.mov