-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Make the members view of rooms and expense chats consistent with groups #47201
Make the members view of rooms and expense chats consistent with groups #47201
Conversation
@paultsimura 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] |
@paultsimura @Expensify/design PR ready for review |
We could also expand the scope of this issue and raise the bounty if @MariaHCD and @rayane-djouah would agree. |
Good find Danny. I'm down to do it here with an increased bounty or just as a follow up, whatever the group prefers. But either way, I agree we should definitely solve that inconsistency as well. |
This comment has been minimized.
This comment has been minimized.
Another thing I noticed is that the multi select button uses an older spit button pattern: But we actually want those to use just a regular dropdown button, like so (this is from the Workspace Editor > Categories page): I know that's not necessarily related to the original problem either, but perhaps we could add that in as well if we increase the bounty. |
Agree with all of Shawn's callouts! (Going to be hunting down those split buttons for years 😆) |
Hey @rayane-djouah, I think we got a green light to incorporate more changes in this PR. Please ping me when it's ready for another look 🙏 |
@dubielzyk-expensify could you please share the screenshots of what's off? And the steps to reproduce (even vague ones) would be very helpful 🙏 |
This one is interesting:
![]()
![]()
![]() @shawnborton should we show the "member" table header on this page as well? |
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.
The code looks good overall! Looks like we might have some more design tweaks. I'll re-review once we address those.
src/CONST.ts
Outdated
@@ -4104,6 +4107,11 @@ const CONST = { | |||
*/ | |||
MAX_SELECTION_LIST_PAGE_LENGTH: 500, | |||
|
|||
/** | |||
* We only include the members search bar when we hit 8 number of members |
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.
* We only include the members search bar when we hit 8 number of members | |
* We only include the members search bar when we have 8 or more members |
src/pages/ReportParticipantsPage.tsx
Outdated
if (!personalDetails?.[accountID]) { | ||
return false; | ||
} | ||
// When offline, we want to count in the pending members with delete action as they are displayed in the list as well |
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.
// When offline, we want to count in the pending members with delete action as they are displayed in the list as well | |
// When offline, we want to include the pending members with delete action as they are displayed in the list as well |
src/pages/RoomMembersPage.tsx
Outdated
if (!personalDetails?.[accountID]) { | ||
return false; | ||
} | ||
// When offline, we want to count in the pending members with delete action as they are displayed in the list as well |
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.
// When offline, we want to count in the pending members with delete action as they are displayed in the list as well | |
// When offline, we want to include the pending members with delete action as they are displayed in the list as well |
Yes, that makes sense to me. Again, everything here should be as consistent as possible across the various room types. |
Hmm, I think so? I could see an argument to just simply say "Remove" or "Remove from chat" but I don't feel strongly. @Expensify/design or @trjExpensify @JmillsExpensify @jamesdeanexpensify any strong preference here? |
It would be nice to standardize on just |
Not really a strong preference, but |
I like this idea too, but I also don't have a super strong preference. |
Remove from chat definitely works though I can see where it feels confusing to remove a user from a "chat" when you are actually viewing an expense or report. I don't feel strongly though, I think "Remove from chat" is better than "Remove from room" though as it's a bit more versatile. But I think part of me wants to just use "Remove" for simplicity's sake. |
Yeah wow this is a toughie. I like |
@rayane-djouah please address the requested code changes as well as the following:
|
Updated |
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 ✔️
@shawnborton we've changed the "Remove from room" to "Remove from chat": |
Looks good to me! Thanks for making the changes. |
@MariaHCD all yours! |
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, LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
const member = report?.participants?.[accountID]; | ||
const details = personalDetails?.[accountID] ?? ({} as PersonalDetails); | ||
const fallbackIcon = details.fallbackIcon ?? ''; | ||
const displayName = details.displayName ?? ''; |
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.
Here, we are directly using details.displayName
to display the user's name, but it may contain the SMS domain when the user has no name set and is logged in with a phone number. This could result in an extra '.sms' being displayed. We can use the existing getDisplayNameOrDefault to display names.
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 copied this from WorkspaceMemberDetailsPage.tsx
which was added here: https://github.com/Expensify/App/pull/37715/files#diff-77d95fb89b7456e2a952802101e5684a74ccebd2ac3a3ea7f162125be861a7bbR56
Details
Fixed Issues
$ #46838
PROPOSAL: #46838 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests
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
Screen.Recording.2024-08-13.at.2.22.36.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-08-13.at.2.17.29.PM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-08-13.at.14.13.21.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-08-13.at.14.17.04.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-08-13.at.1.58.53.PM.1.mov
MacOS: Desktop
Screen.Recording.2024-08-13.at.2.25.08.PM.mov