-
Notifications
You must be signed in to change notification settings - Fork 3k
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 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] |
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think themeColors.success
is better here.
@hungvu193 is there any reason for replacing with colors.green
?
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 think that's from previous commit, cc @puneetlath, since I think that's diff from you
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.
Nice catch @aimane-chnaif! We should not import colors directly 😬
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 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should create a separate issue for this.
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.
Agree that we should be using success
here
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.
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 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)/** 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-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