-
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: New tagline after marking as unread have overlapping line #19658
Conversation
@johnmlee101 @mollfpr 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] |
@@ -115,8 +115,12 @@ const ReportActionsList = (props) => { | |||
// When the new indicator should not be displayed we explicitly set it to null | |||
const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; | |||
const shouldDisplayParentAction = reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED && ReportUtils.isThread(report); | |||
// check if the second message of the thread is unread, then hide the divider line. |
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 feel this comment is off, it then explain why we need to hide the divider line and on what condition we need to hide the divider line.
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.
Yeah, since the variable name itself was quite clear about its functioning. We can remove that. I'll update it. Thank you @mollfpr
Reviewer Checklist
Screenshots/Videos |
@mollfpr updated! |
@hungvu193 We shouldn't commit the podfile lock since we don't have any update regarding the package. Could you revert it? |
@mollfpr oh god, my bad. I forgot to unstage it before committing, one sec, I'll revert it now |
It should be ok now @mollfpr |
LGTM 👍 All yours @johnmlee101 |
can you please take a look when you have a chance? @johnmlee101 . Thank you 😄 |
I was OOO, looking 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/johnmlee101 in version: 1.3.21-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.21-2 🚀
|
@@ -115,8 +115,11 @@ const ReportActionsList = (props) => { | |||
// When the new indicator should not be displayed we explicitly set it to null | |||
const shouldDisplayNewMarker = reportAction.reportActionID === newMarkerReportActionID; | |||
const shouldDisplayParentAction = reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED && ReportUtils.isThread(report); | |||
const shouldHideThreadDividerLine = | |||
shouldDisplayParentAction && sortedReportActions.length > 1 && sortedReportActions[sortedReportActions.length - 2].reportActionID === newMarkerReportActionID; |
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.
This check was not sufficient. It caused #24648
Details
Fix: New tagline after marking as unread have overlapping line
Fixed Issues
$ #19443
PROPOSAL: #19443 (comment)
Tests
Offline tests
Bug is not related to offline mode itself. No extra steps needed.
QA Steps
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
Web
Screen.Recording.2023-05-26.at.13.40.01.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android