Skip to content
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

[HOLD for payment 2024-04-22] [$500] Group - All 8 participants are shown in header on creating group #38052

Closed
3 of 6 tasks
lanitochka17 opened this issue Mar 11, 2024 · 32 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 11, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #37907

Version Number: 1.4.50-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/home
  2. Tap fab ---- start chat
  3. Add to group 8 participants with small user name
  4. Tap create group

Expected Result:

When creating group with 8 participants, the group conversation header must display only 5 participants

Actual Result:

When creating group with 8 participants, the group conversation header displays all 8 participants

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6409738_1710168322316!IMG_20240311_201422

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019807d7b57314faa7
  • Upwork Job ID: 1768350318226415616
  • Last Price Increase: 2024-03-14
  • Automatic offers:
    • Pujan92 | Reviewer | 0
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to @anmurali (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp
CC @quinthar

@lanitochka17
Copy link
Author

@anmurali FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@mountiny
Copy link
Contributor

cc @jbroma @deetergp as this was found during QAing of PR you have been involved at, thanks!

@dragnoir
Copy link
Contributor

dragnoir commented Mar 11, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

All selected participants are displayed on the header (names)

What is the root cause of that problem?

The headerView component display all the available 8 participants.

What changes do you think we should make in order to solve the problem?

We can limit the number of participants to 5 here

const participants = isSelfDM ? [session?.accountID ?? -1] : report?.participantAccountIDs ?? [];

@ghost
Copy link

ghost commented Mar 11, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Group - All 8 participants are shown in header on creating group

What is the root cause of that problem?

The root cause of the problem is here we are displaying all the participants personal details

const participantPersonalDetails = OptionsListUtils.getPersonalDetailsForAccountIDs(participants, personalDetails);

and then in here :
const displayNamesWithTooltips = ReportUtils.getDisplayNamesWithTooltips(participantPersonalDetails, isMultipleParticipant, undefined, isSelfDM);

we are displaying it

What changes do you think we should make in order to solve the problem?

We can limit it to just display 5 participants by doing this :

const participantPersonalDetails = OptionsListUtils.getPersonalDetailsForAccountIDs(participants.slice(0, 6), personalDetails);

What alternative solutions did you explore? (Optional)

N/A

Result :

Screen.Recording.2024-03-11.at.10.59.49.PM.mp4

@ghost
Copy link

ghost commented Mar 11, 2024

@deetergp Before you mentioned the issue, I already had that solution.

@deetergp
Copy link
Contributor

Still sorting this one out on the original GH.

@dragnoir
Copy link
Contributor

@deetergp I posted a comment here #37907 (comment) to explain how I think that the original GH is not solving the real issue

@deetergp deetergp added the External Added to denote the issue can be worked on by a contributor label Mar 14, 2024
@melvin-bot melvin-bot bot changed the title Group - All 8 participants are shown in header on creating group [$500] Group - All 8 participants are shown in header on creating group Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~019807d7b57314faa7

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (External)

@DinCorp777
Copy link

Proposal

Issue: This issue is being caused due to text overflowing in a given area.

Proposed Solution: We can extract the first five Usernames within the chat participants and only display their names. We may want to add a way to trunc the concatenated names if the text overflows.

Copy link

melvin-bot bot commented Mar 14, 2024

📣 @DinCorp777! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@Pujan92
Copy link
Contributor

Pujan92 commented Mar 15, 2024

@mountiny I am not sure whether we need to restrict to 5 here or not, Reason - Currently users can see all group users in the ellipsis tooltip if it overflows. Raised same point here

@mountiny
Copy link
Contributor

I think we want to keep only 5 members in the report name

@DinCorp777
Copy link

Contributor details
Your Expensify account email: info@excel-pros.com
Upwork Profile Link: https://www.upwork.com/freelancers/~018a4006af512d5d51

Copy link

melvin-bot bot commented Mar 15, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@Pujan92
Copy link
Contributor

Pujan92 commented Mar 16, 2024

@dragnoir's proposal is straightforward and looks good to me for limiting participants for the report header.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Mar 16, 2024

Current assignee @deetergp is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@ghost
Copy link

ghost commented Mar 16, 2024

@dragnoir's proposal is straightforward and looks good to me for limiting participants for the report header.

🎀👀🎀 C+ reviewed

Hey @Pujan92 ! I want to know why not my proposal ? did you review my proposal?

@Pujan92
Copy link
Contributor

Pujan92 commented Mar 16, 2024

Hey @Pujan92 ! I want to know why not my proposal ?

@dragnoir is the first to propose and applying a limit to participantAccountIDs is enough, kind of similar to what we did here.

@melvin-bot melvin-bot bot added the Overdue label Mar 18, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 18, 2024
Copy link

melvin-bot bot commented Mar 18, 2024

📣 @Pujan92 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Mar 18, 2024

📣 @dragnoir You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Mar 18, 2024
@dragnoir
Copy link
Contributor

PR ready #38568

@deetergp
Copy link
Contributor

PR has been merged and is currently being tested on staging.

@dragnoir
Copy link
Contributor

dragnoir commented Apr 2, 2024

@Pujan92 what's the next step here? I don't see the checklist bot!

@Pujan92
Copy link
Contributor

Pujan92 commented Apr 2, 2024

@dragnoir I see it went to production on 27th March, so maybe by tomorrow it can be due for payment. Automation issue seems to be here but I think we don't need the checklist as it is kind of a new feat. cc: @anmurali

@dragnoir
Copy link
Contributor

@anmurali can you pls proceed the payment? Thank you

@dragnoir
Copy link
Contributor

@anmurali Friendly bump

@mountiny mountiny added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Weekly KSv2 labels Apr 22, 2024
@mountiny mountiny changed the title [$500] Group - All 8 participants are shown in header on creating group [HOLD for payment 2024-04-22] [$500] Group - All 8 participants are shown in header on creating group Apr 22, 2024
@anmurali
Copy link

@dragnoir - offer is here

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2024
@dragnoir
Copy link
Contributor

@anmurali accepted. Thank you

@anmurali
Copy link

Paid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants