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 2023-07-17] [$1000] Back Button is shown on desktop in Report Screen #21596
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
Edit the last two digits of a report to some letter
Expected Result:
There should be no back button for desktop web. It should be only for mWeb.
Actual Result:
There is a back button even for desktop web.
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.32-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
Back button is shown for desktop web on FullPageNotFoundView
What is the root cause of the problem?
We are passing the shouldShowBackButton prop to FullPageNotFoundView, but FullPageNotFoundView has no prop defined for shouldShowBackButton so it is being ignored.
What changes do you think we should make in order to solve this problem?
We should add the shouldShowBackButton prop to FullPageNotFoundView and pass it to its child component HeaderWithBackButton so that the expected behaviour can be achieved.
@anmurali
The expected behaviour is to hide the back button. We can be sure of that because in ReportScreen.js, we are passing the prop shouldShowBackButton only when the screen is small size.
Basically this code means that we should only show back button when the screen is small size like on mobile.
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 Jun 26, 2023
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 26, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)kavimuru commentedon Jun 26, 2023
Proposal
Please re-state the problem
Back button is shown for desktop web on
FullPageNotFoundViewWhat is the root cause of the problem?
We are passing the
shouldShowBackButtonprop toFullPageNotFoundView, butFullPageNotFoundViewhas no prop defined forshouldShowBackButtonso it is being ignored.App/src/pages/home/ReportScreen.js
Line 256 in 342d4fd
What changes do you think we should make in order to solve this problem?
We should add the
shouldShowBackButtonprop toFullPageNotFoundViewand pass it to its child componentHeaderWithBackButtonso that the expected behaviour can be achieved.Result
https://github.com/Expensify/App/assets/77237602/f9b4e920-9b87-4a02-97c1-d5a94b2c71cf
What other alternatives did you explore
None
melvin-bot commentedon Jun 29, 2023
@anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
anmurali commentedon Jul 3, 2023
Why is this a bug. Why should it not be on web? It seems like useful functionality that is working as it should.
esh-g commentedon Jul 3, 2023
@anmurali
The expected behaviour is to hide the back button. We can be sure of that because in
ReportScreen.js, we are passing the propshouldShowBackButtononly when the screen is small size.Basically this code means that we should only show back button when the screen is small size like on mobile.
[-]Back Button is shown on desktop in Report Screen[/-][+][$1000] Back Button is shown on desktop in Report Screen[/+]53 remaining items
techievivek commentedon Jul 31, 2023
Gentle bump @anmurali for the above comment.
JmillsExpensify commentedon Jul 31, 2023
Reached out via DM.
anmurali commentedon Aug 1, 2023
JmillsExpensify commentedon Aug 1, 2023
Reviewed details for @sobitneupane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot.
melvin-bot commentedon Aug 4, 2023
@anmurali, @sobitneupane, @techievivek, @esh-g Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
techievivek commentedon Aug 7, 2023
Not overdue, waiting for the payment to complete.
sobitneupane commentedon Aug 9, 2023
I think we are good to close this issue. I received payment through newDot.
techievivek commentedon Aug 14, 2023
Ok great, closing this now. Thanks