-
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
[HOLD for payment 2023-10-02] [$1000] Web - Group user avatar icons re-arrange #23364
Comments
Triggered auto assignment to @mateocole ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Group user avatar icons are re-arranging after a few seconds What is the root cause of that problem?Initially, when a group is created the order/arrangement of Icons is in the same order as the user has selected the members in. What changes do you think we should make in order to solve the problem?here App/src/pages/home/report/ReportActionItemCreated.js Lines 53 to 56 in e87ba56
We can store the This will ensure that the What alternative solutions did you explore? (Optional)Can Re-arrange |
📣 @ojasjadhav2! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.On creating a new group, the user avatars ordering is re-arranged after a few seconds What is the root cause of that problem?There is an existing implementation to sort the user logins for avatars by first name Lines 767 to 768 in e87ba56
However, the implementation is wrong as both The reason it get re-arranged after a few second is due to the report participant list returned by App/src/libs/actions/Report.js Line 535 in e87ba56
but that is not a problem at all, as long as the icons sorting in What changes do you think we should make in order to solve the problem?We need to fix the implementation to use underscore The sorting logic to implement would be depending on requirements, but I would propose something like the following: e.g. // Sort all logins by first name (position 2 element in array)
// if multiple participants have the same first name, sub-sort them by login/displayName (position 1 element in array)
// if that still clashes, sub-sort by accountID (position 0 element in array)
const sortedParticipantDetails = _.chain(participantDetails)
.sortBy((detail) => detail[0])
.sortBy((detail) => detail[1])
.sortBy((detail) => detail[2])
.value(); That will ensure the avatar get sorted by the users first name correctly, and if first name is not available and defaults to empty What alternative solutions did you explore? (Optional)N/A |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@mateocole Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~014473a252a569df0c |
Current assignee @mateocole is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
It seems to me sortedParticipantDetails uses the .sort method incorrectly. Subtracting strings will always result in NaN causing the order to remain the same. I propose an alternative sort that will work correctly. |
📣 @ben-macpherson! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@mananjadhav, @mateocole Huh... This is 4 days overdue. Who can take care of this? |
This issue has not been updated in over 15 days. @cead22, @mananjadhav, @honnamkuan, @lschurr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR is ready and reviewed. Just needs to be merged. cc - @cead22 |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@mananjadhav could you work on the checklist for this one? |
Where do I have to apply for payment? I can't find an upwork link here. |
@mananjadhav - bump on the checklist here. |
Could you add your Upwork profile here @himanshuragi456? I can invite you to the job. |
Sure @lschurr, here's the link |
Payment summary:
|
Payments have been made for @himanshuragi456 and @honnamkuan in Upwork. We can close this out once the checklist is complete @mananjadhav |
@lschurr I don't think we have an offending PR here as the we only worked on the improving the sort order. But I do think we need a regression test suite here. Regression Test
Also I've raised my payout request on NewDot. |
Great, I've requested the regression test be added. Closing this one out. |
$1,000 payment approved for @mananjadhav based on BZ summary. |
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:
Group members avatars should not re-arrange or flicker
Actual Result:
Group members avatars re-arranging
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.43-6
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
Screen.Recording.2023-07-20.at.4.32.41.PM.mov
Recording.3819.mp4
Expensify/Expensify Issue URL:
Issue reported by: @himanshuragi456
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689902556688759
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: