-
Notifications
You must be signed in to change notification settings - Fork 3.2k
show compose box before report is ready after logout #16922
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
show compose box before report is ready after logout #16922
Conversation
@johnmlee101 @mananjadhav One of you needs to 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] |
|
@johnmlee101 Does this need C+ review? |
Yes please! |
@johnmlee101 @getusha while the composer loads, I think we should also be able to type the chats right?
Expected result from #14223 composer-while-chat-loads.mov |
@mananjadhav I don't think it's a good idea to enable the compose box before even the chat list renders. It should be disabled since it's initially loading everything. |
I definitely agree it shouldn't be enabled. I am just highlighting it was the expected result in the linked issue, and we should update the tests accordingly and ensure it is not reported as a regression later. |
src/pages/home/ReportScreen.js
Outdated
<ReportActionsSkeletonView containerHeight={this.state.skeletonViewContainerHeight} /> | ||
<> | ||
<ReportActionsSkeletonView containerHeight={this.state.skeletonViewContainerHeight} /> | ||
<EmojiPicker ref={EmojiPickerAction.emojiPickerRef} /> |
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 didn't understand why we should move this in this block? Also I see the linked issue is closed.
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 was able to reproduce the issue it's hard to get it at first but got it after several attempts, this fixes that issue and also prevents having two EmojiPicker
rendered inside ReportScreen. can you try reproducing?
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.
As I mentioned in this comment, I think the right solution is not to move this inside an if block, rather remove two differences.
This still isn't convincing why it wouldn't open in offline mode. Hence, I think it is better to remove linking the issue, and if required tackle it separately if we're able to reproduce it consistently.
@getusha Can you please remove #16913. The issue is closed and I can't be sure how we're solving by adding the I can understand you'd want to remove one extra instance of
|
@getusha Let's improve the content for our Tests:
I think we should also update our Offline tests? QA could be same as Tests |
@mananjadhav Do we need offline tests for this issue? if so what do you think about this
|
@mananjadhav I agree with your idea moving the EmojiPicker outside of the condition and removing the other one from |
Yes thats what I feel, because we introduced the second instance of EmojiPicker, in the same PR, for which we're solving the regression. What I meant by removing the other EmojiPicker related linked issue, is because we can't be certain this is what is causing the issue, and I think, we should look at it fresh/put it on hold, etc. rather than declaring resolved with this PR. What do you think? |
I agree, i also removed the issue from this PR description. the root cause might be different but it seems the EmojiPicker should be rendered before the conditions. like defined inside |
Thanks for that.
I didn't understand this. Hence I recommended, removing it from |
@mananjadhav As you mentioned here, should we handle this separately or should i push the changes here? |
Apologies for the confusion. Let me clarify, I am requesting we fix the multiple EmojiPicker issues in the component tree in this PR because the linked PR introduced it. Whether that solves the EmojiPicker in Offline mode is a separate issue, which can be first reproduced reliably, and/or kept on Hold (currently it is closed). So yes we should just ensure we fix the changes introduced by the regression PR. Makes sense? |
@mananjadhav thanks for clarifying that, just pushed the changes! |
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.
Thanks for the changes and the patience here. Code looks good, will test now.
Reviewer Checklist
Screenshots/VideosWebweb-composer-when-chat-loading.movMobile Web - Chromemweb-chrome-composer-when-chat-loading.movMobile Web - Safarimweb-safari-composer-when-chat-loading.movDesktopdesktop-composer-when-chat-loading.moviOSios-composer-when-chat-loading.movAndroidUploading android-composer-when-chat-loading.mov… @francoisl I have some issues with the iOS setup. I've completed the checklist for all items except iOS Native. Could you help here? |
@mananjadhav is it failing to build for IOS? if you have xcode version 14.3 you should either downgrade to 14.2 or apply this workaround travis-mark/lrn@0158547 |
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.
Taking over review from @johnmlee101 since he's offline right now and it's a deploy blocker
@getusha Thanks for the link. It is definitely related to XCode 14.3 but the workaround didn't help. My issue was due to @thienlnam All yours. |
Oh perfect, I was working on fixing my simulator to test but this works as well! |
(cherry picked from commit efe0a09)
…-16922 🍒 Cherry pick PR #16922 to staging 🍒
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.2.94-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Thanks @mananjadhav @getusha for handling the blocker. |
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.94-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
@techievivek @sobitneupane
Details
Fixed Issues
$ #16908
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)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
Web
Screen.Recording.2023-04-04.at.7.01.25.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-04-04.at.7.03.32.AM.mov
Mobile Web - Safari
Screen.Recording.2023-04-04.at.7.08.05.AM.mov
Desktop
Screen.Recording.2023-04-04.at.8.00.19.AM.mov
iOS
Screen.Recording.2023-04-04.at.9.39.51.AM.mov
Android
Screen.Recording.2023-04-04.at.8.40.45.AM.mov