-
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: Workspace - RBR is aligned to top of WS bar. #42017
fix: Workspace - RBR is aligned to top of WS bar. #42017
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@thesahindia 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] |
Yeah, I agree with Jon - I would think the RBR would be right next to the three dots icon with a 8-12px gap. |
@dubielzyk-expensify @shawnborton, thoughts on this? IMO this looks weird. |
Why isn't the RBR on the left side of the three dots? And we'd need to adjust the columns so that everything lines up even when there is the GBR there. |
@shawnborton, I placed RBR to the right of three dots, I guess this is what we wanted according to this comment. IMO what we have currently looks good, because if we place the RBR on the right of three dots, the alignment will look weird or even if we align the three dots, the rows with now RBR will have extra margin right for no reason. |
Sorry for that, I totally misunderstood that. |
All good! |
@shawnborton, does this look correct, no margin right has been applied to RBR icon because the actual three dot icon width is 5px but the icon container takes 40px, so we already have |
@shawnborton, I removed the fixed width and height and tried to increase the pressable area by using hitSlop, but that doesn't seem to be working on the web. The pressable area remains the same as the width and height of the element. I guess thats why we have fixed width and height of 40px. |
I think that's probably fine on web though? |
@thesahindia @shawnborton, I'm not sure what we should do here. The three-dot menu is used on many pages, and removing the fixed width and height will also affect the margins of those pages. Should we remove the margin for this specific page (workspaces list page)? |
Okay, so maybe we just leave that as-is, but:
Can we move forward with that and see how it looks? Thanks! |
Nice! I like the first one (4px gap) the most, curious if others feel strongly. Thanks for sharing both mocks. |
I like that one too. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@thesahindia, you can start reviewing. @Expensify/design, could you please confirm one last thing? There was no margin between the workspace name and RBR before. I have added 8px margin. Does that look correct? The reason for adding 8px is that the requested container also uses the same margin. You can see that in the screenshots below for the small width and the last workspace.
|
@Krishna2323 Yeah I think it makes sense to have that margin, so what you have does look correct to me. |
Yup, I agree with that |
@Krishna2323, please update the screenshots. |
Reviewer Checklist
Screenshots/Videos |
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.
Looks good!
Thanks Design team for the help here 🙇 Looking great |
We can let this out next week considering merge slush |
✋ 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/MonilBhavsar in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
@@ -142,9 +142,9 @@ function WorkspacesListRow({ | |||
const isDeleted = style && Array.isArray(style) ? style.includes(styles.offlineFeedback.deleted) : false; | |||
|
|||
const ThreeDotMenuOrPendingIcon = ( | |||
<View style={[isNarrow && styles.mr5]}> | |||
<View style={[styles.flexRow]}> |
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 is not really the culprit PR of #44639.
However if we don't add limit width here and with the flex1
style of Badge
wrapper View, it will cause #44639.
More detail in this proposal RCA:
#44639 (comment)
Details
Fixed Issues
$ #41609
PROPOSAL: #41609 (comment)
Tests
Simulate failing network requests
Offline tests
Simulate failing network requests
QA Steps
Simulate failing network requests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
desktop_app.mp4