Fix GBR and RBR show up at the same time in the LHN#18137
Conversation
|
@luacmartins @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] |
luacmartins
left a comment
There was a problem hiding this comment.
@hungvu193 can we also address this comment? We also have conflicts now.
|
@luacmartins sure, I updated the PR. |
Reviewer Checklist
Screenshots/VideosMobile Web - Safarimweb-safari-one-dot-indicator.movmweb-safari-lhs-indicator.moviOSios-one-dot-indicator.movios-lhs-indicator.movAndroidandroid-one-dot-indicator.movandroid-lhs-indicator.mov |
|
@hungvu193 Thanks for addressing my previous comment. As I mentioned before, we are still displaying the pinned icon and according to our new design, the green/red indicator should replace the pinned icon. Could you please address that? |
|
@luacmartins Sorry I didn't understand the change. Can you elaborate what we mean by should replace the pinned icon? The comment mentioned here talks about removing the indicator from between the pin and pencil, but not about replacing? |
|
My comment comes from the new design doc and the section that introduced this behavior:
|
|
I thought that's what Shawn had mentioned in his comment, but I can see how that was confusing. |
@luacmartins if we replace the pin icon in LHN when green dot is visible, should we need to replace the pin icon in the header inside LHN? I think it's confused for user when they didn't see the pin icon outside but still saw it inside of LHN. |
|
@hungvu193 I don't think we should change the logic in the header, this should affect the LHN only. I think it's an easy enough change to incorporate in this PR. |
|
@luacmartins just to confirm, when the green dot is visible, we also need to hide the pin icon right? |
|
Yes |
|
@luacmartins Cool, I've updated the PR again. |
|
LGTM! |
|
@mananjadhav do you wanna review again since we changed some of the logic? |
|
@luacmartins I was just reviewing and testing it. I just want to confirm, if we have a RBR, we can always have Pin and Pencil icon right? I tried accessing the design doc google link, but it says Access denied. |
|
@mananjadhav yes, that seems to be the expected behavior for RBR. |
|
@luacmartins I've updated the new screenshots on the same checklist here. Does that work? |
|
Yea, that's good. Thank you! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| height={variables.iconSizeNormal} | ||
| width={variables.iconSizeNormal} | ||
| src={Expensicons.DotIndicator} | ||
| fill={colors.green} |
There was a problem hiding this comment.
I think themeColors.success is better here.
@hungvu193 is there any reason for replacing with colors.green?
There was a problem hiding this comment.
I think that's from previous commit, cc @puneetlath, since I think that's diff from you
There was a problem hiding this comment.
Nice catch @aimane-chnaif! We should not import colors directly 😬
There was a problem hiding this comment.
I see that we are doing that in multiple places though. I think we should put up a PR to fix that.
There was a problem hiding this comment.
Nice catch @aimane-chnaif! We should not import colors directly 😬
Agree, this is important for dark/light theme switch which will be implemented very soon
There was a problem hiding this comment.
I think we should create a separate issue for this.
There was a problem hiding this comment.
Agree that we should be using success here
There was a problem hiding this comment.
Ah weird. I thought I had changed this to success in a previous PR.
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.3.9-12 🚀
|
|
@mananjadhav @hungvu193 @aimane-chnaif could you please test this in staging just to make sure, I think QA has tested it but forgot to check off the checklist. |
|
Tests pass on staging Screen.Recording.2023-05-04.at.8.13.51.AM.movOne thing I noticed unusual - #18384 but it seems it's new expected behavior |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|





Details
This PR fixes problem with GBR and RBR show up at the same time in the OptionRowLHN
Fixed Issues
$ #17912
PROPOSAL: #17912 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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/Videos
Web
Screen.Recording.2023-04-28.at.16.21.19.mov
Mobile Web - Chrome
Screen.Recording.2023-04-28.at.16.18.21.mov
Mobile Web - Safari
Screen.Recording.2023-04-28.at.16.25.27.mov
Desktop
Screen.Recording.2023-04-28.at.16.30.11.mov
iOS
Screen.Recording.2023-04-28.at.16.36.23.mov
Android
Screen.Recording.2023-04-28.at.16.39.27.mov