-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 created view is flickered when marking as unread #30815
Conversation
@allroundexperts 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] |
const parentReportAction = ReportActionsUtils.getParentReportAction(props.report); | ||
if (ReportActionsUtils.isTransactionThread(parentReportAction)) { | ||
content = ( | ||
return ( |
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'm not sure if I understand correctly the reason for returning
everywhere?
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.
In the past, we didn't return to add the margin-bottom to wrap view of created action. Now we bring the margin to SpacingView
so we can earlier return here.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-11-06.at.11.28.15.AM.movAndroid: mWeb ChromeScreen.Recording.2023-11-06.at.11.18.15.AM.moviOS: NativeScreen.Recording.2023-11-06.at.11.25.39.AM.moviOS: mWeb SafariScreen.Recording.2023-11-06.at.11.27.22.AM.movMacOS: Chrome / SafariScreen.Recording.2023-11-06.at.11.14.06.AM.movMacOS: DesktopScreen.Recording.2023-11-06.at.11.24.51.AM.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.
Works well!
@youssef-lr Please help to review the PR when you have a chance. |
I'm not able to reproduce the original issue anymore in staging, there's just an extra margin that appears above the total. I'm curious, why is the created view move at all when marking the message as unread? |
@youssef-lr Still reproduced in production. Seem like some recent changes make animated view not work and then all created view move at all because |
I just tested this branch, I don't see why we should add any margin when we mark the message unread, it leaves a noticeable space. Can we fix it please? Screen.Recording.2023-11-10.at.20.23.41.mov |
@youssef-lr When we mark as unread for the first message, the divider line will be hidden so we add a margin to keep the space between the created view and the unread line. But the problem here is after updating the newest main, when we mark as unread, the margin vertical of spacer view still is 8px. |
@youssef-lr Seem like |
@youssef-lr Please help to test this PR again when you have a chance. |
@youssef-lr Any thoughts on my comment above? |
On it today |
Hmm now I'm seeing the margin decrease when we mark the message as unread Screen.Recording.2023-12-04.at.22.11.10.mov |
@youssef-lr Yes, it's expected since the unread marker doesn't have space with the user avatar. We only keep the space between the created view and the unread marker. |
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.
LGTM
✋ 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: 1.4.9-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.4.9-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.9-5 🚀
|
Details
Fix created view is flickered when marking as unread
Fixed Issues
$ #30218
PROPOSAL: #30218 (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)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
Screen.Recording.2023-11-03.at.13.19.43.mov
Android: mWeb Chrome
Screen.Recording.2023-11-03.at.13.11.22.mov
iOS: Native
Screen.Recording.2023-11-03.at.13.17.56.mov
iOS: mWeb Safari
Screen.Recording.2023-11-03.at.13.12.55.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-03.at.13.05.30.mov
MacOS: Desktop
Screen.Recording.2023-11-03.at.13.21.31.mov