-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-06-28] [$1000] Web - Split Bill - Profile picture still shows avatar on a new split money page #20118
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Old Profile picture still shows avatar on a new split money page What is the root cause of that problem?The cause is we get App/src/libs/OptionsListUtils.js Lines 216 to 230 in 9fa12f3
App/src/pages/iou/SplitBillDetailsPage.js Line 69 in 9fa12f3
While getIOUConfirmationOptionsFromPayeePersonalDetail fuction get data from fields that follow personalDetailsPropType . App/src/libs/OptionsListUtils.js Line 804 in 9fa12f3
Because personalDetail.avatar and personalDetail.displayname is undefined , text is email or phone number instead of display nameApp/src/libs/OptionsListUtils.js Line 806 in 9fa12f3
and avatar is default avatar instead of current avatar App/src/libs/OptionsListUtils.js Line 810 in 9fa12f3
What changes do you think we should make in order to solve the problem?We have two solution to fix payee issue
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.In this issue, we can notice that when we open the Split Bill Details Page, the payee's avatar is not shown correctly. What is the root cause of that problem?The root cause behind this issue is that the default avatar URL is passed to the avatar component instead of the user avatar. This happens because to get the payee's user details, we use the
App/src/components/MoneyRequestConfirmationList.js Lines 198 to 201 in 0813e2c
App/src/libs/OptionsListUtils.js Line 810 in 245364f
What changes do you think we should make in order to solve the problem?If there is no What alternative solutions did you explore? (Optional)Alternatively, we can modify the personal details prop to use avatar instead of the icons array. App/src/pages/iou/SplitBillDetailsPage.js Line 69 in 245364f
|
I can reproduce this. Interestingly, the profile image in the LHN and in the settings tab is also not updating right away after changing it. Although both do update after refreshing the session. Whereas the image on the bill split detailed page does not. |
2023-06-05_18-15-42.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~015e350d1e95099cb9 |
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @flodnv ( |
Reviewing... |
Sounds good, thanks @parasharrajat ! |
@parasharrajat are we good to proceed with either of these proposals? |
Bumped proposals in slack here |
Solution 1 from @dukenv0307 's proposal looks good to me. It seems a simple mistake that we get the payee's personal details from the participants. We do need an option structure for the payee to render but we have a function to convert the personal details to option type. As we fallback to current user personal details, it is clear that payeePersonalDetails should be some type of currentuserpersonalDetails and
cc: @flodnv 🎀 👀 🎀 C+ reviewed |
Sharing my opinion: I think @dukenv0307 2nd proposal looks better. Filtering personalDetails (especially in HT account) doesn't sounds good. |
Am I missing something? |
As soon as the bug-zero checklist is complete here, we'll be all set to issue payment tomorrow! |
[@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:#19390 |
Regression Test Steps
Verify that no errors appear in the JS console Do you agree 👍 or 👎 ? |
@joekaufmanexpensify Please hold my payment for now. I will ping you soon with further details. |
Sounds good, thanks! I will create the regression test issue tomorrow. |
I think the regression test sounds good as long as QA agrees it's not too niche... 👍 |
Sounds good. Added regression test issue above. BZ checklist is now complete! |
All set to issue payment here! @parasharrajat I know your payment is held right now, but going to issue the others. |
@dukenv0307 $1,000 sent and contract ended! |
@avi-shek-jha $250 sent and contract ended! |
Leaving this open until we are all set to pay @parasharrajat |
Held pending being able to pay rajat. |
Not overdue. Pending being able to issue payment here. |
Payment to rajat still on hold. Bumped in Slack. |
@joekaufmanexpensify It will be better to make this weekly. |
Still on hold |
Checking in on whether we are all set to pay this. |
Bumped in Slack. |
Payment requested. Ref: #20118 (comment) |
Thanks! Copying the payment summary message here. No speed bonus here, so these are the relevant payments:
|
Closing for now, since all that's left is NewDot payment (which has been requested)! |
Reviewed details for @parasharrajat. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
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:
Profile picture should be updated on a new split money page
Actual Result:
Profile picture still shows avatar on a new split money page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.22.0
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
avatar.mp4
Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685417843739759
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: