-
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
Add row to workspace chat in Workspace #52449
base: main
Are you sure you want to change the base?
Conversation
@s77rt Fixed this bug. |
Reviewer Checklist
Screenshots/Videos |
@shawnborton What do you think? This is the reason why I added another margin/padding initially. |
@s77rt Should we also grey out the submit expense text? |
Overall looks good to me. I will retest and approve the PR after the design concerns are addressed.
I don't have a strong preference, will let this to the design team as well |
There is just this "bug?" that I noticed but it exists in the app already (e.g. deep link from chat): If you put the workspace switcher on workspace A and go to workspace B and click on the row. The chat will be open without changing the workspace. Screen.Recording.2024-11-19.at.5.06.33.PM.mov |
For offline, I don't think we should "gray out" the text above the interactive element, we should only "gray out" the interactive element itself. |
Agree with both of your comments Shawn! |
Also updated the marigin. |
🚧 @shawnborton has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
I think this is looking better, but I'd like Shawn to confirm. As far as I can tell it looks similar to the Inbox presentation. |
@shawnborton I updated. |
@dannymcclain What is the expect here? I see the current hover style is the same as LHN item. |
The border color around the avatar should match the row's background color. They aren't the same right now but they should be. |
🤔 I'm seeing them as very slightly different. @shawnborton are you seeing something different? Also I noticed some of my workspaces don't show the avatar at all, is that a known thing?
|
Ah no, I am saying I totally agree with you re: the border color not matching the background color of the row when hovered. |
@shawnborton This looks like this right? I updated to fix this (previous here I updated the background color but it's the wrong place 😄 ) |
Nice catch! |
@s77rt Removed the unused style and fixed the bug above. |
src/components/MenuItem.tsx
Outdated
// eslint-disable-next-line no-nested-ternary | ||
backgroundColor={pressed ? theme.buttonHoveredBG : isHovered ? theme.hoverComponentBG : undefined} |
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.
Let's fix this instead of silencing the lint
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.
@s77rt Fixed.
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.
LGTM, let's have design do final confirmation once tests pass
Explanation of Change
Fixed Issues
$ #51851
PROPOSAL: #51851 (comment)
Tests
Submit expenses using your workspace chat below:
is displayed in the bottom leftOffline tests
same as above
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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.mov
Android: mWeb Chrome
android.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-13.at.15.14.47.mov
MacOS: Desktop
desktop.mov