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-06-06] [$250] Web - New search - Hold request education modal opens on the top left #42007
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
Version Number: 1.4.72-1 Reproducible in staging?: y Reproducible in production?: (this is happening in "test preferences") 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 Expensify/Expensify Issue URL: Issue reported by: Applause internal team Slack conversation:
Action Performed:
Precondition:
User has not held a request (so that Hold request education modal will appear after holding request).
Go to staging.new.expensify.com
Submit two expenses to a user.
Go to one of the transaction threads.
Click 3-dot menu > Hold request.
Enter reason and save it.
Do not click "Got it" on the education RHP. Instead, click on the back button.
Go to Account settings > Troubleshoot.
Click Navigate next to "New Search Page".
Search for the held transaction in Step 4.
Click View.
Expected Result:
Hold request education modal will show up as RHP.
Actual Result:
Hold request education modal opens on the top left.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
@joekaufmanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
This leads to ProcessMoneyRequestHoldMenu being used in MoneyRequestHeader when the report is opened in RHP, while we should be navigating to PROCESS_MONEY_REQUEST_HOLD on web like it is being done when the report is normally opened.
where it should be opened only on small screens, it's now open when the report is on Right Hand Panel because the condition isSmallScreenWidth || isReportOpenInRHP
What changes do you think we should make in order to solve the problem?
1- Fix ProcessMoneyRequestHoldMenu
We should not allow ProcessMoneyRequestHoldMenu to be displayed on Right Hand Panel and fix the value here
changed the title [-]Web - New search - Hold request education modal opens on the top left[/-][+][$250] Web - New search - Hold request education modal opens on the top left[/+]on May 14, 2024
[@rojiphil] The PR that introduced the bug has been identified. Link to the PR: Offending PR
[@rojiphil] 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: Added comment
[@rojiphil] A discussion in #expensify-bugs 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: Not Required. Existing checklist is good enough to capture such issues.
[@rojiphil] Determine if we should create a regression test for this bug. : Not a change prone area or high usage area as this occurs only when the held report is in RHP on large screen devices. We can skip adding a regression test for this.
[@rojiphil] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
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
Activity
melvin-bot commentedon May 10, 2024
Triggered auto assignment to @joekaufmanexpensify (
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.m-natarajan commentedon May 10, 2024
@joekaufmanexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
nkdengineer commentedon May 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Hold request education modal opens on the top left.
What is the root cause of that problem?
We use
Popovercomponent here to showProcessMoneyRequestHoldMenuso it doesn't show in RHPApp/src/components/ProcessMoneyRequestHoldMenu.tsx
Lines 30 to 36 in 59e74e9
What changes do you think we should make in order to solve the problem?
We should use
Modalcomponent instead ofPopoverWhat alternative solutions did you explore? (Optional)
NA
ShridharGoel commentedon May 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
On web, when using new search - Hold request education modal opens on the top left.
What is the root cause of that problem?
shouldUseNarrowLayoutbecomes true whenisReportOpenInRHPis true.App/src/pages/home/ReportScreen.tsx
Line 165 in f443efa
This leads to
ProcessMoneyRequestHoldMenubeing used in MoneyRequestHeader when the report is opened in RHP, while we should be navigating toPROCESS_MONEY_REQUEST_HOLDon web like it is being done when the report is normally opened.App/src/components/MoneyRequestHeader.tsx
Lines 249 to 256 in f443efa
The
ProcessMoneyRequestHoldMenuis designed for small screen devices, it shouldn't be used on web.What changes do you think we should make in order to solve the problem?
Use
isSmallScreenWidthinstead ofshouldUseNarrowLayout.We also need to update the
useEffectto checkisSmallScreenWidthand navigate based on that.This fixes the issue on web + makes sure that the hold education UI doesn't change on mobile.
joekaufmanexpensify commentedon May 13, 2024
Will triage today
dragnoir commentedon May 13, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Hold request education modal opens on the top left
What is the root cause of that problem?
Let's make sure about something first, we are here talking about two components:
1- ProcessMoneyRequestHoldMenu
This component is designed to be displayed only on small screens, it replace the Right Hand Panel educational window on scmall screens.
2- ProcessMoneyRequestHoldPage
This is the Right Hand Panel educational component. it's displayed only on large screens.
The issue
On the "New Search Page" when we open a report with a hold from Right Hand Panel.
On ReportScreen, the value
shouldUseNarrowLayoutis truehttps://github.com/Expensify/App/blob/97097ff13b086c3d44d26d44335921323b211669/src/pages/home/ReportScreen.tsx#L167C11-L167C33
because
isSmallScreenWidthis false butisReportOpenInRHPis true, soshouldUseNarrowLayoutis true.This value
shouldUseNarrowLayoutis true will be used hereApp/src/components/MoneyRequestHeader.tsx
Lines 250 to 254 in 97097ff
where it should be opened only on small screens, it's now open when the report is on Right Hand Panel because the condition
isSmallScreenWidth || isReportOpenInRHPWhat changes do you think we should make in order to solve the problem?
1- Fix ProcessMoneyRequestHoldMenu
We should not allow ProcessMoneyRequestHoldMenu to be displayed on Right Hand Panel and fix the value here
App/src/components/MoneyRequestHeader.tsx
Lines 249 to 255 in 97097ff
We can use
isSmallScreenWidthinstead ofshouldUseNarrowLayout2- Fix ProcessMoneyRequestHoldPage
We need to allow
ProcessMoneyRequestHoldPageto be displayed on Right Hand PanelWe can use
isSmallScreenWidthinstead ofshouldUseNarrowLayouthereApp/src/components/MoneyRequestHeader.tsx
Lines 162 to 169 in 97097ff
POC video:
20240513_184436.mp4
[-]Web - New search - Hold request education modal opens on the top left[/-][+][$250] Web - New search - Hold request education modal opens on the top left[/+]melvin-bot commentedon May 14, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01c80194fe29f72a2f
32 remaining items
joekaufmanexpensify commentedon Jun 6, 2024
bump @rojiphil , we're all set to issue payment here as soon as checklist is done
rojiphil commentedon Jun 7, 2024
rojiphil commentedon Jun 7, 2024
@joekaufmanexpensify Accepted offer and completed BZ. Thanks
joekaufmanexpensify commentedon Jun 7, 2024
TY!
joekaufmanexpensify commentedon Jun 7, 2024
All set to issue payment. We need to pay:
joekaufmanexpensify commentedon Jun 7, 2024
@rojiphil $250 sent and contract ended!
joekaufmanexpensify commentedon Jun 7, 2024
@ShridharGoel please accept upwork offer so we can pay you
joekaufmanexpensify commentedon Jun 10, 2024
@ShridharGoel $250 sent and contract ended!
joekaufmanexpensify commentedon Jun 10, 2024
All set. Thanks everyone!