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
[HOLD for payment 2024-12-05] [$250] Invoices - App opens workspace description settings when clicking on invoice description text #51976
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:
Go to staging.new.expensify.com
Go to FAB > Send invoice.
Send an invoice to anyone.
Go to invoice chat.
Click on the invoice chat header.
Click Room description.
Enter a description and save it.
Go back to invoice chat.
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.
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
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
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
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:
@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]
[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:
Go to FAB > Send Invoice.
Send an invoice to any recipient.
Navigate to the Invoice Chat.
Click on the Invoice Chat Header.
Select Room Description.
Enter a description and save it.
Return to the Invoice Chat.
Click on the room description text displayed under "Say hello!".
Verify that the app opens the Invoice Room Description.
Activity
melvin-bot commentedon Nov 4, 2024
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.nyomanjyotisa commentedon Nov 4, 2024
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
App/src/components/ReportWelcomeText.tsx
Lines 126 to 129 in fcb4a5b
What changes do you think we should make in order to solve the problem?
Change to the following
What alternative solutions did you explore? (Optional)
daledah commentedon Nov 4, 2024
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
App/src/components/ReportWelcomeText.tsx
Line 129 in fcb4a5b
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
What alternative solutions did you explore? (Optional)
NA
Nodebrute commentedon Nov 4, 2024
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
App/src/components/ReportWelcomeText.tsx
Line 129 in fcb4a5b
What changes do you think we should make in order to solve the problem?
We don't need the
canEditPolicyDescriptionas we are not navigating to policy description page anymoreApp/src/components/ReportWelcomeText.tsx
Lines 126 to 128 in fcb4a5b
and instead of navigating to policy description page here, let's change this to
Note
We don’t need the
canEditReportDescriptioncheck here since it’s already handled inRoomDescriptionPage.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.cursorTextApp/src/components/ReportWelcomeText.tsx
Line 131 in fcb4a5b
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.tsxthen we can change these
canEditPolicyDescriptiontocanEditApp/src/components/ReportWelcomeText.tsx
Line 131 in fcb4a5b
App/src/components/ReportWelcomeText.tsx
Line 126 in fcb4a5b
and at last let's change this link
With this solution, users who cannot edit the report description will see the text cursor when hovering over it, indicating it's not editable.
zanyrenney commentedon Nov 7, 2024
adding external!
[-]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[/+]melvin-bot commentedon Nov 7, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021854589048868933801
melvin-bot commentedon Nov 7, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (
External)melvin-bot commentedon Nov 11, 2024
@zanyrenney, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick!
18 remaining items
[-][$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[/+]melvin-bot commentedon Nov 28, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 28, 2024
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:
melvin-bot commentedon Nov 28, 2024
@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]
alitoshmatov commentedon Dec 4, 2024
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[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:
Do we agree 👍 or 👎
zanyrenney commentedon Dec 5, 2024
Nice, thanks for doing this @alitoshmatov
zanyrenney commentedon Dec 5, 2024
payment summary
@alitoshmatov requires payment through NewDot Manual Requests - please request $250 on ND.
@Nodebrute requires payment automatic offer (Contributor) - paid $250 in Upwork.
JmillsExpensify commentedon Dec 9, 2024
$250 approved for @alitoshmatov