Skip to content

[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

Closed

Description

@kavimuru

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:

  1. Requested money from a user, which created a new report for that request.
  2. Clicked on the avatar in the header of the Money Request/Owes chat.
  3. 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

20230517_232040.mp4
Recording.680.mp4

Expensify/Expensify Issue URL:
Issue reported by: @usmantariq96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684347603337849

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0156545f23df45ccab
  • Upwork Job ID: 1660793182204600320
  • Last Price Increase: 2023-05-29

Activity

  1. added
    Daily
    Bug
    on May 20, 2023
  2. melvin-bot commented on May 20, 2023

    @melvin-bot

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

  3. melvin-bot commented on May 20, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. PrashantMangukiya commented on May 20, 2023

    @PrashantMangukiya
    Contributor

    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.

    <HeaderWithCloseButton
    shouldShowAvatarWithDisplay

    Eventually src/components/HeaderWithCloseButton.js is rendering <AvatarWithDisplayName> via code below:

    <AvatarWithDisplayName
    report={this.props.report}
    policies={this.props.policies}
    personalDetails={this.props.personalDetails}
    />

    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:

    <Text
    style={[styles.headerText, styles.pre]}
    numberOfLines={1}
    >
    {payeeName}
    </Text>

    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.

    <HeaderWithCloseButton
       shouldShowAvatarWithDisplay 
        onAvatarWithDisplayPress={() => {
            Navigation.navigate(ROUTES.getDetailsRoute(moneyRequestReport.ownerEmail))
        }}
        ...
    />

    Thereafter within src/components/HeaderWithCloseButton.js wrap <AvatarWithDisplayName> at line 170 with Pressable and set onPress to this.props.onAvatarWithDisplayPress as shown code below:

    {this.props.shouldShowAvatarWithDisplay && (
        <Pressable onPress={this.props.onAvatarWithDisplayPress}>
            <AvatarWithDisplayName
                ...
            />
        </Pressable>
    )}

    2) How to make Payee header clickable:
    Within src/components/MoneyRequestHeader.js at line 120 wrap Text component with pressable as shown below:

    <Pressable
        onPress={() => {
            Navigation.navigate(ROUTES.getDetailsRoute(moneyRequestReport.managerEmail))
        }}
    >
        <Text
            ...
        >
            {payeeName}
        </Text>
    </Pressable>

    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
  5. melvin-bot commented on May 20, 2023

    @melvin-bot

    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.

    Feel free to drop a note in #expensify-open-source with any questions.

  6. removed
    Bug
    on May 22, 2023
  7. removed their assignment
    on May 22, 2023
  8. added
    Bug
    on May 22, 2023
  9. melvin-bot commented on May 22, 2023

    @melvin-bot

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

  10. melvin-bot commented on May 22, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  11. added
    External
    on May 22, 2023
  12. 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
  13. 108 remaining items

  14. trjExpensify commented on Oct 13, 2023

    @trjExpensify
    Contributor

    Okay, so by my calculations:

    Everyone agree? Let me know and I'll start settling up! :)

  15. fedirjh commented on Oct 13, 2023

    @fedirjh
    Contributor

    Everyone agree? Let me know and I'll start settling up! :)

    I think it's :

  16. trjExpensify commented on Oct 16, 2023

    @trjExpensify
    Contributor

    Ah yes, this PR for ref. Cool, amended.

  17. trjExpensify commented on Oct 16, 2023

    @trjExpensify
    Contributor

    @fedirjh paid!

  18. usmantariq96 commented on Oct 16, 2023

    @usmantariq96

    @trjExpensify offer accepted
    Thanks

  19. trjExpensify commented on Oct 16, 2023

    @trjExpensify
    Contributor

    @usmantariq96 paid! 👍

    Once @allroundexperts confirms he's requested, I'll close.

  20. 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
  21. allroundexperts commented on Oct 18, 2023

    @allroundexperts
    Contributor

    Requested. This can be closed now @trjExpensify!

  22. trjExpensify commented on Oct 18, 2023

    @trjExpensify
    Contributor

    Perfect!

  23. JmillsExpensify commented on Oct 23, 2023

    @JmillsExpensify
    Contributor

    $1,000 payment approved for @allroundexperts based on this summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentDailyExternalNewFeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions