You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting C+ payment confo] [HOLD for payment 2023-10-12] [$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click. #19342
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.
Requested money from a user, which created a new report for that request.
Clicked on the avatar in the header of the Money Request/Owes chat.
Observed that clicking on the avatar does not open it, despite the expected behavior of avatars opening on click in other chats.
Expected Result:
When the avatar positioned in the header is clicked, it should open.
Actual Result:
The avatar positioned in the header cannot be opened when clicked.
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?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.16.5 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
This is also not using pressable, so it will not open details page when clicked.
So this is the root cause the problem that both payer and payee header not clickable.
What changes do you think we should make in order to solve the problem?
To solve this we have to wrap Payer and Payee header text with Pressable.
1) How to make Payer header clickable:
From App/src/components/MoneyRequestHeader.js we have to pass new prop as onAvatarWithDisplayPress to HeaderWithCloseButton component as shown code below.
Thereafter within src/components/HeaderWithCloseButton.js wrap <AvatarWithDisplayName> at line 170 with Pressable and set onPress to this.props.onAvatarWithDisplayPress as shown code below:
Looks like something related to react-navigation may have been mentioned in this issue discussion.
As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.
changed the title [-]The avatar located in the header of the Money Request/Owes chat is not opening on click.[/-][+][$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/+]on May 22, 2023
changed the title [-][HOLD for payment 2023-10-12] [$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/-][+][Awaiting C+ payment confo] [HOLD for payment 2023-10-12] [$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/+]on Oct 17, 2023
Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.
Activity
melvin-bot commentedon May 20, 2023
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 20, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)PrashantMangukiya commentedon May 20, 2023
Proposal
Posting proposal early as per new guidelines
Please re-state the problem that we are trying to solve in this issue.
The avatar located in the header of the Money Request/Owes chat is not opening on click.
What is the root cause of that problem?
1) Money request payer header is rendering via
<HeaderWithCloseButton>component at line 91 as shown below.App/src/components/MoneyRequestHeader.js
Lines 91 to 92 in 7378626
Eventually
src/components/HeaderWithCloseButton.jsis rendering<AvatarWithDisplayName>via code below:App/src/components/HeaderWithCloseButton.js
Lines 170 to 174 in 7378626
We can see there is no pressable used with AvatarWithDisplayName. So it will not open details page when clicked.
2) Money request payee header render via line 120 as shown code below:
App/src/components/MoneyRequestHeader.js
Lines 120 to 125 in 7378626
This is also not using pressable, so it will not open details page when clicked.
So this is the root cause the problem that both payer and payee header not clickable.
What changes do you think we should make in order to solve the problem?
To solve this we have to wrap Payer and Payee header text with Pressable.
1) How to make Payer header clickable:
From
App/src/components/MoneyRequestHeader.jswe have to pass new prop asonAvatarWithDisplayPresstoHeaderWithCloseButtoncomponent as shown code below.Thereafter within
src/components/HeaderWithCloseButton.jswrap<AvatarWithDisplayName>at line 170 with Pressable and setonPresstothis.props.onAvatarWithDisplayPressas shown code below:2) How to make Payee header clickable:
Within
src/components/MoneyRequestHeader.jsat line 120 wrap Text component with pressable as shown below:So this will make both Payer and Payee clickable as shown in result video.
What alternative solutions did you explore? (Optional)
None
Result
Web.mov
melvin-bot commentedon May 20, 2023
Looks like something related to
react-navigationmay have been mentioned in this issue discussion.As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our
DeprecatedCustomActions.jsfiles should not be accepted.Feel free to drop a note in #expensify-open-source with any questions.
melvin-bot commentedon May 22, 2023
Triggered auto assignment to @strepanier03 (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon May 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)[-]The avatar located in the header of the Money Request/Owes chat is not opening on click.[/-][+][$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/+]108 remaining items
trjExpensify commentedon Oct 13, 2023
Okay, so by my calculations:
Everyone agree? Let me know and I'll start settling up! :)
fedirjh commentedon Oct 13, 2023
I think it's :
trjExpensify commentedon Oct 16, 2023
Ah yes, this PR for ref. Cool, amended.
trjExpensify commentedon Oct 16, 2023
@fedirjh paid!
usmantariq96 commentedon Oct 16, 2023
@trjExpensify offer accepted
Thanks
trjExpensify commentedon Oct 16, 2023
@usmantariq96 paid! 👍
Once @allroundexperts confirms he's requested, I'll close.
[-][HOLD for payment 2023-10-12] [$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/-][+][Awaiting C+ payment confo] [HOLD for payment 2023-10-12] [$1000] The avatar located in the header of the Money Request/Owes chat is not opening on click.[/+]allroundexperts commentedon Oct 18, 2023
Requested. This can be closed now @trjExpensify!
trjExpensify commentedon Oct 18, 2023
Perfect!
JmillsExpensify commentedon Oct 23, 2023
$1,000 payment approved for @allroundexperts based on this summary.