Skip to content

[HOLD for payment 2024-12-05] [$250] Invoices - App opens workspace description settings when clicking on invoice description text #51976

Description

@IuliiaHerets

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.57-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh25100005@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Send invoice.
  3. Send an invoice to anyone.
  4. Go to invoice chat.
  5. Click on the invoice chat header.
  6. Click Room description.
  7. Enter a description and save it.
  8. Go back to invoice chat.
  9. Click on the room description text under "Say hello!".

Expected Result:

App will open invoice room description settings.

Actual Result:

App opens workspace description settings when clicking on the invoice description text.

This issue only happens in invoice room.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • [x ] Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6654526_1730740619973.20241105_011217.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021854589048868933801
  • Upwork Job ID: 1854589048868933801
  • Last Price Increase: 2024-11-07
  • Automatic offers:
    • Nodebrute | Contributor | 104882470
Issue OwnerCurrent Issue Owner: @zanyrenney

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 4, 2024
  2. melvin-bot commented on Nov 4, 2024

    @melvin-bot

    Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. nyomanjyotisa commented on Nov 4, 2024

    @nyomanjyotisa
    Member

    Edited by proposal-police: This proposal was edited at 2024-11-04 18:00:25 UTC.

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    App opens workspace description settings when clicking on invoice description text

    What is the root cause of that problem?

    We navigate to WORKSPACE_PROFILE_DESCRIPTION here

    if (!canEditPolicyDescription) {
    return;
    }
    Navigation.navigate(ROUTES.WORKSPACE_PROFILE_DESCRIPTION.getRoute(policy?.id ?? '-1'));

    What changes do you think we should make in order to solve the problem?

    Change to the following

    
                                    const activeRoute = Navigation.getReportRHPActiveRoute();
                                    if (ReportUtils.canEditReportDescription(report, policy)) {
                                        Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute));
                                        return;
                                    }
                                    Navigation.navigate(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(report?.reportID ?? '-1', activeRoute));
    

    What alternative solutions did you explore? (Optional)

  4. daledah commented on Nov 4, 2024

    @daledah
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    App opens workspace description settings when clicking on the invoice description text.

    What is the root cause of that problem?

    When we click to this description, we'll navigate to workspace description here

    Navigation.navigate(ROUTES.WORKSPACE_PROFILE_DESCRIPTION.getRoute(policy?.id ?? '-1'));

    What changes do you think we should make in order to solve the problem?

    We should navigate to the report description when it is Invoice room

    ReportUtils.isInvoiceRoom(report) ? Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1')) :  Navigation.navigate(ROUTES.WORKSPACE_PROFILE_DESCRIPTION.getRoute(policy?.id ?? '-1')); 
    
    

    What alternative solutions did you explore? (Optional)

    NA

  5. Nodebrute commented on Nov 4, 2024

    @Nodebrute
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    App opens workspace description settings when clicking on invoice description text

    What is the root cause of that problem?

    Here we are navigating to workspace profile description page instead of report description page

    Navigation.navigate(ROUTES.WORKSPACE_PROFILE_DESCRIPTION.getRoute(policy?.id ?? '-1'));

    What changes do you think we should make in order to solve the problem?

    We don't need the canEditPolicyDescription as we are not navigating to policy description page anymore

    if (!canEditPolicyDescription) {
    return;
    }

    and instead of navigating to policy description page here, let's change this to

                                    const activeRoute = Navigation.getReportRHPActiveRoute();
                                    Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute));
    

    Note

    We don’t need the canEditReportDescription check here since it’s already handled in RoomDescriptionPage.tsx, where users see a different view if they can’t edit the description(not the policy admin). Removing this check allows users to click on the description and navigate to the invoice room description, ensuring consistency with the behavior when accessing the room description from the header.

    Screen.Recording.2024-11-05.at.12.02.58.AM.mov

    We should also remove these styles canEditPolicyDescription ? styles.cursorPointer : styles.cursorText

    style={[styles.renderHTML, canEditPolicyDescription ? styles.cursorPointer : styles.cursorText]}

    What alternative solutions did you explore? (Optional)

    If we want to prevent users from navigating to the description page when they can't edit it, we can implement the following solution:

    Let's add a new check, we use the same check on RoomDescriptionPage.tsx

     const canEdit = ReportUtils.canEditReportDescription(report, policy);
    

    then we can change these canEditPolicyDescription to canEdit

    style={[styles.renderHTML, canEditPolicyDescription ? styles.cursorPointer : styles.cursorText]}

    if (!canEditPolicyDescription) {

    and at last let's change this link

     const activeRoute = Navigation.getReportRHPActiveRoute();
          Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(report?.reportID ?? '-1', activeRoute));
    

    With this solution, users who cannot edit the report description will see the text cursor when hovering over it, indicating it's not editable.

  6. zanyrenney commented on Nov 7, 2024

    @zanyrenney
    Contributor

    adding external!

  7. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Nov 7, 2024
  8. changed the title [-]Invoices - App opens workspace description settings when clicking on invoice description text[/-] [+][$250] Invoices - App opens workspace description settings when clicking on invoice description text[/+] on Nov 7, 2024
  9. melvin-bot commented on Nov 7, 2024

    @melvin-bot
  10. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 7, 2024
  11. melvin-bot commented on Nov 7, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

  12. melvin-bot commented on Nov 11, 2024

    @melvin-bot

    @zanyrenney, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!

  13. 18 remaining items

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Nov 28, 2024
  15. changed the title [-][$250] Invoices - App opens workspace description settings when clicking on invoice description text[/-] [+][HOLD for payment 2024-12-05] [$250] Invoices - App opens workspace description settings when clicking on invoice description text[/+] on Nov 28, 2024
  16. melvin-bot commented on Nov 28, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Nov 28, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 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 2024-12-05. 🎊

    For reference, here are some details about the assignees on this issue:

  18. melvin-bot commented on Nov 28, 2024

    @melvin-bot

    @alitoshmatov @zanyrenney @alitoshmatov The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  19. alitoshmatov commented on Dec 4, 2024

    @alitoshmatov
    Contributor

    BugZero Checklist:

    • [Contributor] Classify the bug:
    Bug classification

    Source of bug:

    • 1a. Result of the original design (eg. a case wasn't considered)
    • 1b. Mistake during implementation
    • 1c. Backend bug
    • 1z. Other:

    Where bug was reported:

    • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
    • 2b. Reported on staging (eg. found during regression or PR testing)
    • 2d. Reported on a PR
    • 2z. Other:

    Who reported the bug:

    • 3a. Expensify user
    • 3b. Expensify employee
    • 3c. Contributor
    • 3d. QA
    • 3z. Other:
    • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to comment: https://github.com/Expensify/App/pull/49919/files#r1870335962

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion: No discussion started

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal Template

    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    Test:

    1. Go to FAB > Send Invoice.
    2. Send an invoice to any recipient.
    3. Navigate to the Invoice Chat.
    4. Click on the Invoice Chat Header.
    5. Select Room Description.
    6. Enter a description and save it.
    7. Return to the Invoice Chat.
    8. Click on the room description text displayed under "Say hello!".
    9. Verify that the app opens the Invoice Room Description.

    Do we agree 👍 or 👎

  20. zanyrenney commented on Dec 5, 2024

    @zanyrenney
    Contributor

    Nice, thanks for doing this @alitoshmatov

  21. zanyrenney commented on Dec 5, 2024

    @zanyrenney
    Contributor

    payment summary

    @alitoshmatov requires payment through NewDot Manual Requests - please request $250 on ND.
    @Nodebrute requires payment automatic offer (Contributor) - paid $250 in Upwork.

  22. JmillsExpensify commented on Dec 9, 2024

    @JmillsExpensify
    Contributor

    $250 approved for @alitoshmatov

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions