Skip to content

[HOLD for payment 2024-04-05] [$500] Storybook - "Couldn't find a navigation object" error when trying to select a year #38331

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.52.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #37820

Action Performed:

  1. Navigate to https://staging.new.expensify.com/docs/index.html
  2. Click on the "Form" component
  3. Click on the year selector
  4. Navigate to https://staging.new.expensify.com/docs/index.html
  5. Click on the "Form" component
  6. Click on the state selector

Expected Result:

I should be able to select a year and state

Actual Result:

"Couldn't find a navigation object. Is your component inside NavigationContainer?" error when trying to select a year or state.

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

Add any screenshot/video evidence

Bug6413512_1710421119535.bandicam_2024-03-14_13-58-02-469.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a13cfaecad01b349
  • Upwork Job ID: 1769863435571646464
  • Last Price Increase: 2024-03-18
  • Automatic offers:
    • dukenv0307 | Reviewer | 0
    • tienifr | Contributor | 0

Activity

  1. added
    Daily
    Bug
    on Mar 14, 2024
  2. melvin-bot commented on Mar 14, 2024

    @melvin-bot

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

  3. Krishna2323 commented on Mar 14, 2024

    @Krishna2323
    Contributor

    Proposal

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

    Storybook - "Couldn't find a navigation object" error when trying to select a year

    What is the root cause of that problem?

    We need to wrap StatePicker & DatePicker with navigation with withNavigationFallback since they use ScreenWrapper & HeaderWithBackButton which uses useWaitForNavigation.

    StatePicker,
    DatePicker,

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

    Wrap StatePicker & DatePicker with withNavigationFallback.

    There might be more components which uses navigation and is used in storrybook, we might want to check for that as well.

    Result

    storybook_fix.mp4

    Alternative

    Wrap StatePicker.tsx & DatePicker.tsx with withNavigationFallback and then export.
    Or Wrap ScreenWrapper.tsx & HeaderWithBackButton.tsx with withNavigationFallback and then export.

  4. added
    External
    on Mar 18, 2024
  5. changed the title [-]Storybook - "Couldn't find a navigation object" error when trying to select a year[/-] [+][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+] on Mar 18, 2024
  6. melvin-bot commented on Mar 18, 2024

    @melvin-bot
  7. added
    Help Wanted
    on Mar 18, 2024
  8. melvin-bot commented on Mar 18, 2024

    @melvin-bot

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

  9. added
    Help Wanted
    and removed
    Help Wanted
    on Mar 18, 2024
  10. 19 remaining items

  11. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Mar 29, 2024
  12. changed the title [-][$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/-] [+][HOLD for payment 2024-04-05] [$500] Storybook - "Couldn't find a navigation object" error when trying to select a year[/+] on Mar 29, 2024
  13. melvin-bot commented on Mar 29, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  14. removed
    Reviewing
    on Mar 29, 2024
  15. melvin-bot commented on Mar 29, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2024-04-05. 🎊

    For reference, here are some details about the assignees on this issue:

  16. melvin-bot commented on Mar 29, 2024

    @melvin-bot

    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:

    • [@dukenv0307] The PR that introduced the bug has been identified. Link to the PR:
    • [@dukenv0307] 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:
    • [@dukenv0307] 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:
    • [@dukenv0307] Determine if we should create a regression test for this bug.
    • [@dukenv0307] 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.
    • [@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  17. dukenv0307 commented on Apr 4, 2024

    @dukenv0307
    Contributor

    BugZero Checklist:

    • The PR that introduced the bug has been identified. Link to the PR:

    N/A

    • 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:

    N/A

    • 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:

    N/A

    • Determine if we should create a regression test for this bug.

    We don't need to create a regression test

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

    No

  18. anmurali commented on Apr 17, 2024

    @anmurali

    @dukenv0307 and @tienifr have been paid.

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

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions