Repository navigation
Description
Doc Section: https://docs.google.com/document/d/1NcklRh6NogUWhKL0J5udTE8bok3_9ZoZ57JTllP-QJg/edit#bookmark=id.pa6oyw3cxv7q
Holding on:
- https://github.com/Expensify/Expensify/issues/340997
- https://github.com/Expensify/Expensify/issues/352995
- https://github.com/Expensify/Expensify/issues/340999
- https://github.com/Expensify/Expensify/issues/341005
- https://github.com/Expensify/Expensify/issues/341001
- https://github.com/Expensify/Expensify/issues/341002
- https://github.com/Expensify/Expensify/issues/341004
- https://github.com/Expensify/Expensify/issues/341003
- [$250] [HOLD for payment 2024-04-09] [CRITICAL] [Groups] Frontend (Part 1): Create Group Chats + Splits. Deprecate Group DM creation. Support viewing both Group DMs and Group Chats. #32317
High level section with mockups: https://docs.google.com/document/d/1NcklRh6NogUWhKL0J5udTE8bok3_9ZoZ57JTllP-QJg/edit#bookmark=id.9fdzsieljz63
At this point, the latest app version has already migrated off of Group DMs and is creating Group Chats under the hood. We now need to add the ability to:
- Give a custom group name during creation
- Upload a custom avatar
- Add the update member role page and set the roles
We will also allow people to do these things + invite members via the "Details" page when tapping on a Group chat.
By the end of this ticket we should be able to:
Creation
-
Give a custom group name
-
Upload a custom avatar
- This should work similar to how uploading an avatar works for workspaces (example)
- This should work similar to how uploading an avatar works for workspaces (example)
Both of these will need to be staged/stored locally so that they can be passed to the API when we tap "Start group"
Details view (accessible from tapping on the Avatar in the header of the chat)
- Avatar can be updated from here (by anyone)
- The "Leave" button will allow a user to leave the Group (HOLD on API changes)
- The "Pin" button will be the same action as right-click to pin
- "Call" will generate a Google Meet link
- Share page - works the same as existing chats
- Private notes - same as existing chats
- Settings - same as existing chats however we can also change the Name of the report here (anyone)
Members page
The design for this closely follows the design for the Simplified Collect design doc so should be held on those changes and/or worked on in parallel and we will have a shared component for both flows.
- We can see who is an admin and not in the Members page (pill tag)
- For admins, we can select multiple or all members (for bulk actions)
- Selecting members will replace the "Invite members" button with the
n selectedbutton with dropdown (shown above) - Note: The highlighting styles when members are selected.
- Tapping the "3 selected" opens the popover menu with these options:
Remove membersMake admin(when at least one member is selected)Make member(when at least one admin is selected)
- Confirmation modal will be shown for "Remove members"
- For members (non-admins), we will see this:
Tapping a row (not the checkbox) will bring them to these screens respectively:
Admins
- "Remove from group" option will launch a confirm modal
- Role selector will launch a new screen like this:
- Profile - takes you to the profile
Members
Just go direct to the profile screen for the user
Invite member button
Opens to a new screen:
- Multiple members can be invited
- "Invite" button shows when at least one member is staged
- Redirect back to the "Members" page on success with new members visible.
Testing membership changes
When a member is added/removed or their admin status changes we will display the following "system messages" and must confirm these messages are present and showing up correctly prior to launching these features.
- a system message will clarify when someone is invited, e.g. “invited %displayName%”, visible to all participants
- Removing a member from a
Groupchat triggers a system message for allGroupchat participants, e.g. “removed %displayName%” - When someone is made an admin, or demoted back to a member, we’ll use a “whisper” style message so that person knows that their role changed, e.g. “made %displayName% a member” or “made %displayName% an admin”
Activity
[-][CRITICAL] Frontend: Update the Group Chat creation flow UI and Details page[/-][+][CRITICAL] [HOLD] Frontend: Update the Group Chat creation flow UI and Details page[/+][-][CRITICAL] [HOLD] Frontend: Update the Group Chat creation flow UI and Details page[/-][+][CRITICAL] [HOLD] Frontend (Part 2): Update the Group Chat creation flow UI and Details page[/+][-][CRITICAL] [HOLD] Frontend (Part 2): Update the Group Chat creation flow UI and Details page[/-][+][HOLD] [CRITICAL] Frontend (Part 2): Update the Group Chat creation flow UI and Details page[/+][-][HOLD] [CRITICAL] Frontend (Part 2): Update the Group Chat creation flow UI and Details page[/-][+][HOLD] [CRITICAL] [Groups] Frontend (Part 2): Update the Group Chat creation flow UI and Details page[/+]marcaaron commentedon Feb 27, 2024
Bumping to Weekly but it's still on HOLD pending more Auth changes and the first App PR. This issue will introduce all the features we need to complete the Group Chats feature.
marcaaron commentedon Mar 12, 2024
Still on HOLD as we need to get the first PR merged. I think @waterim will help us here as well. But let me know if that has changed!
16 remaining items
marcaaron commentedon Apr 5, 2024
@s77rt would you like to work with us on this one as the C+?
s77rt commentedon Apr 5, 2024
Yes sure!
marcaaron commentedon Apr 10, 2024
The final major front end PR is more or less shaping up into a testable state 🚀
To do list before merge:
Wait for https://github.com/Expensify/Web-Expensify/pull/41571 to go to production to fix a bug related to updating the avatars (it's on staging already so should be sometime today or tomorrow).
Trigger an AdHoc build on the current PR and loop in Design team for feedback.
Cover failure cases for the new API commands. The "success" case works well, but there's basically no error handling so I want to make sure there is at least some minimal error handling in case something goes wrong.
The es translations are placeholder. Need to request help with that.
We need to confirm the marketing copy for this:
Lastly, as we work through this it has become more clear that there are opportunities to harmonize the UI for both the UCR and Group Chat flows. I suspect we will have some follow up issues as part of this. My goal for this week is to get the Group Chats feature as laid out in the doc onto staging. Then we can look at everything else. cc @shawnborton @dannymcclain since you both had some ideas here. I want to make sure we address them - but maybe we can do some follow up collaboration once we first implement what was decided in the Design Doc.
marcaaron commentedon Apr 12, 2024
In final reviews now.
melvin-bot commentedon Apr 18, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Apr 18, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Apr 18, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Apr 18, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
melvin-bot commentedon Apr 18, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
marcaaron commentedon Apr 23, 2024
This is on production now.
melvin-bot commentedon Jun 4, 2024
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.