Closed kavimuru closed 1 year ago
Triggered auto assignment to @twisterdotcom (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)Inconsistent user count in split bill preview and above the welcome message for a group
In case of Avatars shown in Header of chat report, the participants are obtained from chat report (not IOU Report). And this report doesn't contains the the current logged in user in the list. That's why the No. of Avatars will be 1 less than original in Header. Same is the case when we create a group with multiple users. https://github.com/Expensify/App/blob/d5374be5435eea4b94978f93588ebad8ffdc0867/src/pages/home/report/ReportActionItemCreated.js#L39-L45
While creating the IOU, if the report is being created we can add the current user as participant.
This can be done in createSplitsAndOnyxData()
in IOU.js
Above fix can affect many places, and the bug fix is for only one place in ReportActionItemCreated
.
We can explicitly add the avatar/icon of current user if it's not present. We can use getIconsForParticipants()
function for this.
Took me a while to figure out, but I see it:
Job added to Upwork: https://www.upwork.com/jobs/~018746c14ba64b431d
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (External
)
Triggered auto assignment to @jasperhuangg (External
), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
I have tried investigating into this, What I have observed is that if there suppose five participants - A, B, C, D, E If we view the preview from user A - BCDE will appear from user B - ACDE will appear. Hence if we try to change the logic for Onyx data's participant we can't be sure where it will affect at other places where it expects the participant remain to be the way it to be.
@BhuvaneshPatil why not when we render that component, we check if the current user is a part of the list of participants, and if not we'll know we need to render an extra circle for them, and increment the count accordingly.
@jasperhuangg Yes, this will be a great addition. It will add extra layer of caution to the solution, will avoid the duplication.
Dear @BhuvaneshPatil,
I hope this message finds you well. I came across your Upwork listing regarding the issue you are facing, and I am eager to offer my expertise as a Full Stack Engineer to help resolve it efficiently. With over 3 years of experience in this field, I am confident that I can contribute to your team and address the problem promptly.
What's My Approach?
To address the error you mentioned, I suspect that the issue lies in the addition of the user itself, which results in an extra count. My initial approach would be to thoroughly examine how the state is being handled to identify the root cause of the problem.
I have thoroughly reviewed the Contributor Guidelines and fully agree with all the conditions mentioned therein.
Contributor details Your Expensify account email: developerswagsofficial@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~0198fd1761c025c837
Best regards, Aslam Sarfraz
📣 @aslambaba! 📣 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:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
I am not sure if it is a bug or intended behavior. In group chat, we don't show current user in welcome message, chat header and details page. But in IOU preview and detail we include "Who paid for?" (payer) as well.
cc: @jasperhuangg
@sobitneupane are you saying that in these two participants lists: https://github.com/Expensify/App/issues/20538#issuecomment-1587588204, there is actually 1 fewer at the top, than the bottom?
@twisterdotcom , for report that is created when we create a split bill, for that, in report's participant list there will be -1 number of partcipants (the one not present is the current user). For report action, the split bill - there will be all participant including current user
@twisterdotcom We don't include current user (the logged in user) in the group. We have been doing this from long before.
But in Split Preview and Details, we show all the participants involved in the split including the user who paid the bill which I think is expected.
So, I don't think it's a bug.
Hmm okay. So we show Who paid
in the Split report, but we don't show them in the participants of the chat report.
I see, that is normal, but it was confusing to me. I'll ask in the thread if anybody else thinks we should creatively solve that, or not. I see the argument for closing it as expected though.
Okay cool. Design says close: https://expensify.slack.com/archives/C049HHMV9SM/p1686672188423959?thread_ts=1685992027.991919&cid=C049HHMV9SM.
Thanks all! Onto the next one.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should maintain consistency on how it displays user count for 5 or more users on group icon and in split bill message
Actual Result:
App always displays +1 count in split bill message icon then group icon for 5 or more users
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.26-1 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/b02fe7b1-09bb-4469-b2db-e36be2b48621
Expensify/Expensify Issue URL: Issue reported by: @dhanashree-sawant Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685992027991919
View all open jobs on GitHub
Upwork Automation - Do Not Edit