Skip to content

[HOLD for payment 2023-07-17] [$1000] Back Button is shown on desktop in Report Screen #21596

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. Open the app
  2. 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

Recording.5163.mp4
Screen.Recording.2023-06-21.at.11.43.51.AM.mov

Expensify/Expensify Issue URL:
Issue reported by: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687328203617079

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cf5f3f1131fc4f89
  • Upwork Job ID: 1676619009155428352
  • Last Price Increase: 2023-07-05

Activity

  1. added
    Daily
    Bug
    on Jun 26, 2023
  2. melvin-bot commented on Jun 26, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 26, 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. kavimuru commented on Jun 26, 2023

    @kavimuru
    Author

    Proposal

    Please re-state the problem

    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.

    shouldShowBackButton={this.props.isSmallScreenWidth}

    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.

    <HeaderWithBackButton onBackButtonPress={props.onBackButtonPress} shouldShowBackButton={props.shouldShowBackButton} />
    

    Result
    https://github.com/Expensify/App/assets/77237602/f9b4e920-9b87-4a02-97c1-d5a94b2c71cf

    What other alternatives did you explore

    None

  5. melvin-bot commented on Jun 29, 2023

    @melvin-bot

    @anmurali Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  6. anmurali commented on Jul 3, 2023

    @anmurali

    Why is this a bug. Why should it not be on web? It seems like useful functionality that is working as it should.

  7. esh-g commented on Jul 3, 2023

    @esh-g
    Contributor

    @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.

    Screenshot 2023-06-21 at 11 48 15 AM

    Basically this code means that we should only show back button when the screen is small size like on mobile.

  8. added
    External
    on Jul 5, 2023
  9. changed the title [-]Back Button is shown on desktop in Report Screen[/-] [+][$1000] Back Button is shown on desktop in Report Screen[/+] on Jul 5, 2023
  10. 53 remaining items

  11. techievivek commented on Jul 31, 2023

    @techievivek
    Contributor

    Gentle bump @anmurali for the above comment.

  12. JmillsExpensify commented on Jul 31, 2023

    @JmillsExpensify
    Contributor

    Reached out via DM.

  13. anmurali commented on Aug 1, 2023

    @anmurali
    • Issue Reporter @esh-g $250
    • Contributor @esh-g $1000 + $500 (speed bonus)
    • Contributor plus @sobitneupane $1000 + $500 (speed bonus)
  14. JmillsExpensify commented on Aug 1, 2023

    @JmillsExpensify
    Contributor

    Reviewed details for @sobitneupane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot.

  15. melvin-bot commented on Aug 4, 2023

    @melvin-bot

    @anmurali, @sobitneupane, @techievivek, @esh-g Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  16. techievivek commented on Aug 7, 2023

    @techievivek
    Contributor

    Not overdue, waiting for the payment to complete.

  17. sobitneupane commented on Aug 9, 2023

    @sobitneupane
    Contributor

    I think we are good to close this issue. I received payment through newDot.

  18. techievivek commented on Aug 14, 2023

    @techievivek
    Contributor

    Ok great, closing this now. Thanks

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions