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] |
| // 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.
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.
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 🚀
|
| 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; |






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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots
Web
Screen.Recording.2023-05-26.at.13.40.01.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android