Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 6 tasks
kavimuru opened this issue Jun 26, 2023 · 47 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Jun 26, 2023

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
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@kavimuru
Copy link
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

@melvin-bot melvin-bot bot added the Overdue label Jun 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 29, 2023

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

@anmurali
Copy link

anmurali commented 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.

@anmurali anmurali closed this as completed Jul 3, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2023
@esh-g
Copy link
Contributor

esh-g commented 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 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.

@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Jul 5, 2023
@anmurali anmurali reopened this Jul 5, 2023
@melvin-bot melvin-bot bot changed the title Back Button is shown on desktop in Report Screen [$1000] Back Button is shown on desktop in Report Screen Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01cf5f3f1131fc4f89

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

Current assignee @anmurali is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

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

@multijump
Copy link
Contributor

Proposal

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

Back Button is shown on desktop in Report Screen

What is the root cause of that problem?

Didn't pass shouldShowBackButton as props to HeaderWithBackButton component in FullPageNotFoundView component even though shouldShowBackButton as isSmallScreenWidth was passed in ReportScreen component.
In the HeaderWithBackButton component, shouldShowBackButton's default value is true so back button is always showing in FullPageNotFoundView component.

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

We need to pass shouldShowBackButton as props to HeaderWithBackButton component in FullPageNotFoundView.
Like this.

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

As expected result is to show it in only mWeb, isSmallScreenWidth will work correctly.

What alternative solutions did you explore? (Optional)

N/A

@sobitneupane
Copy link
Contributor

sobitneupane commented Jul 6, 2023

Proposal from @esh-g looks good to me.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Triggered auto assignment to @techievivek, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

📣 @sobitneupane 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

📣 @esh-g 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

📣 @esh! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

The BZ member will need to manually hire esh for the Reporter role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future!

@anmurali
Copy link

Ah reporting bonus as in that $250. Gotcha. I will create a new offer for that.

@sobitneupane
Copy link
Contributor

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:

#18402

  • [@sobitneupane] 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/18402/files#r1272367467

  • [@sobitneupane] 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:

This was a case missed in the PR review. This should have been caught earlier. But the PR that caused this issue was a huge one involving navigation refactor. So, could have been missed.

  • [@sobitneupane] Determine if we should create a regression test for this bug.

Yes.

  • [@sobitneupane] 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.

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@sobitneupane
Copy link
Contributor

sobitneupane commented Jul 24, 2023

Regression Test Proposal

  1. Go to any report (chat).
  2. Change the reportID in the web URL to an invalid one.
  3. Verify that the back button on the header of "Not Found" page appears on small screen (i.e., mWeb) and doesn't appear on wide screen (i.e., Web)

Do we agree 👍 or 👎

@anmurali
Copy link

@anmurali
Copy link

@techievivek - do you agree with the regression test proposal?

@esh-g
Copy link
Contributor

esh-g commented Jul 24, 2023

@anmurali Accepted the offer!

@sobitneupane
Copy link
Contributor

Payment requested on newDot.

@melvin-bot melvin-bot bot added the Overdue label Jul 26, 2023
@techievivek
Copy link
Contributor

@anmurali

do you agree with the regression test proposal?

Yes, looks good to me.

@melvin-bot melvin-bot bot removed the Overdue label Jul 27, 2023
@JmillsExpensify
Copy link

@anmurali Can you please summarize the appropriate individual payments for all parties involved in this issue? This is holding up @sobitneupane's NewDot payments. More information on this compliance process in Slack.

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@techievivek
Copy link
Contributor

Gentle bump @anmurali for the above comment.

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@JmillsExpensify
Copy link

Reached out via DM.

@anmurali
Copy link

anmurali commented Aug 1, 2023

  • Issue Reporter @esh-g $250
  • Contributor @esh-g $1000 + $500 (speed bonus)
  • Contributor plus @sobitneupane $1000 + $500 (speed bonus)

@JmillsExpensify
Copy link

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

@melvin-bot melvin-bot bot added the Overdue label Aug 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented 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
Copy link
Contributor

Not overdue, waiting for the payment to complete.

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2023
@sobitneupane
Copy link
Contributor

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

@melvin-bot melvin-bot bot added the Overdue label Aug 11, 2023
@techievivek
Copy link
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
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

9 participants