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

[$500] Private Note - "hmm... it's not here" page is shown when reloading in Private Notes #30211

Closed
3 of 6 tasks
kbecciv opened this issue Oct 23, 2023 · 22 comments
Closed
3 of 6 tasks
Assignees
Labels
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

@kbecciv
Copy link

kbecciv commented Oct 23, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.3.89.6
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
Expensify/Expensify Issue URL:
Issue reported by: @daveSeife
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698067117518239

Action Performed:

  1. Go to Private notes > My notes > notes
  2. Reload page
  3. Click on the back button

Expected Result:

Navigates back to the previous page

Actual Result:

"hmm... it's not here" page is shown

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
XRecorder_23102023_162246.mp4
iOS: Native
iOS: mWeb Safari
t6privatenotesReload.iOSSafari.mp4
MacOS: Chrome / Safari
t6privatenotesReload.mp4
Recording.5127.mp4
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018db0726a7be74290
  • Upwork Job ID: 1716562302714707968
  • Last Price Increase: 2023-10-30
  • Automatic offers:
    • aimane-chnaif | Reviewer | 27475744
    • c3024 | Contributor | 27475746
    • daveSeife | Reporter | 27475748
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 23, 2023
@c3024
Copy link
Contributor

c3024 commented Oct 23, 2023

Proposal

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

Reloading the private notes edit page and clicking on back icon shows not found page.

What is the root cause of that problem?

We have a typo here for reportID

onBackButtonPress={() => Navigation.goBack(ROUTES.PRIVATE_NOTES_VIEW.getRoute(report.repotID, route.params.accountID))}

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

Fix the typo and change that to reportID

What alternative solutions did you explore? (Optional)

Result
reportIDTypo.mov

@melvin-bot melvin-bot bot changed the title Private Note - "hmm... it's not here" page is shown when reloading in Private Notes [$500] Private Note - "hmm... it's not here" page is shown when reloading in Private Notes Oct 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018db0726a7be74290

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

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

melvin-bot bot commented Oct 23, 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

@melvin-bot
Copy link

melvin-bot bot commented Oct 23, 2023

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

@graylewis
Copy link
Contributor

graylewis commented Oct 23, 2023

Proposal

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

When opening a specific private note and reloading, pressing back triggers a 404.

What is the root cause of that problem?

While on other similar routes a goBack url parameter is utilized to ensure that this specific issue doesn't happen in modals, in this one there is no goBack parameter.

When the Navigation.goBack function is triggered on the private notes edit page, it calls:
Navigation.goBack(ROUTES.PRIVATE_NOTES_VIEW.getRoute(report.reportID, route.params.accountID));

But because it is a modal, there is no report defined. Other modals use the goBack parameter for this very reason.

The private notes view routing:

    PRIVATE_NOTES_VIEW: {
        route: 'r/:reportID/notes/:accountID',
        getRoute: (reportID: string, accountID: string | number) => `r/${reportID}/notes/${accountID}`,
    },

The currency request edit view routing:

    EDIT_CURRENCY_REQUEST: {
        route: 'r/:threadReportID/edit/currency',
        getRoute: (threadReportID: string, currency: string, backTo: string) => `r/${threadReportID}/edit/currency?currency=${currency}&backTo=${backTo}`,
    },

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

Add a back to parameter in the private notes view routing. This would also entail passing the proper report ID to the backTo parameter when calling getRoute on the private notes view.

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@lschurr
Copy link
Contributor

lschurr commented Oct 26, 2023

@aimane-chnaif could you review the proposal here?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

@lschurr, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!

@aimane-chnaif
Copy link
Contributor

reviewing today

@melvin-bot melvin-bot bot removed the Overdue label Oct 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 30, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 1, 2023
@lschurr
Copy link
Contributor

lschurr commented Nov 1, 2023

Any update @aimane-chnaif?

@melvin-bot melvin-bot bot removed the Overdue label Nov 1, 2023
@aimane-chnaif
Copy link
Contributor

@c3024's proposal looks good to me
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Nov 1, 2023

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

@chiragsalian
Copy link
Contributor

lol that fix. Proposal LGTM, feel free to create the PR @c3024.

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

melvin-bot bot commented Nov 1, 2023

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

Offer link
Upwork job

Copy link

melvin-bot bot commented Nov 1, 2023

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

Offer link
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 📖

Copy link

melvin-bot bot commented Nov 1, 2023

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

Offer link
Upwork job

@c3024 c3024 mentioned this issue Nov 2, 2023
59 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 2, 2023
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Nov 27, 2023
Copy link

melvin-bot bot commented Nov 27, 2023

This issue has not been updated in over 15 days. @chiragsalian, @lschurr, @aimane-chnaif, @c3024 eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@aimane-chnaif
Copy link
Contributor

PR was deployed on Nov 9.
Automation seems broken.
@lschurr can you please remove Reviewing and replace Monthly with Daily?

@lschurr lschurr added Daily KSv2 and removed Reviewing Has a PR in review Monthly KSv2 labels Dec 8, 2023
@lschurr
Copy link
Contributor

lschurr commented Dec 8, 2023

Looks like the automation didn't work for this one. I'll review today.

@lschurr
Copy link
Contributor

lschurr commented Dec 8, 2023

Payment summary:

@lschurr
Copy link
Contributor

lschurr commented Dec 8, 2023

All are paid in Upwork. Closing.

@lschurr lschurr closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

6 participants