Skip to content

[$1000] Blank page appears instead of Hmm... it's not here page #28183

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. from userA, create a workspace
  2. invite userB to workspace
  3. from userB, go to #announce
  4. click on header to see details
  5. from userA, remove the userB

Expected Result:

should show Hmm... it's not here in the RHP

Actual Result:

blank page appears

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.74-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screenshot 2023-08-31 at 10 19 26 AM

Recording.1603.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692600279076409

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016233e1e785234a4a
  • Upwork Job ID: 1706382137664765952
  • Last Price Increase: 2023-10-18

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 25, 2023
  2. changed the title [-]Blank page appears instead of Hmm... it's not here page[/-] [+][$500] Blank page appears instead of Hmm... it's not here page[/+] on Sep 25, 2023
  3. melvin-bot commented on Sep 25, 2023

    @melvin-bot

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

  4. melvin-bot commented on Sep 25, 2023

    @melvin-bot
  5. melvin-bot commented on Sep 25, 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
  6. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 25, 2023
  7. melvin-bot commented on Sep 25, 2023

    @melvin-bot

    Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. melvin-bot commented on Sep 25, 2023

    @melvin-bot

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

  9. ewanmellor commented on Sep 25, 2023

    @ewanmellor

    Proposal

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

    If the user has the Details RHN open for a channel, and the user is removed from the workspace, then the RHN pane goes to black and does not show the "Hmm... it's not here" screen.

    What is the root cause of that problem?

    This is a result of an assumption made inside WithReportOrNotFound:

    // If the content was shown but it's not anymore that means the report was deleted and we are probably navigating out of this screen.

    The comment says "we are probably navigating out of this screen" but this is not the case. We have lost access to the report, but we do not have anything to cause us to navigate away. WithReportOrNotFound returns null (so that we don't show a glitchy transition) but since we're not navigating in this case, we just render a blank panel where the ReportDetailsPage used to be. This does not happen once the page is reloaded, because if WithReportOrNotFound has never successfully rendered the report then it correctly shows the NotFoundPage. This problem only occurs if we used to be able to render the report, but then lose that ability.

    This bug was introduced here:

    commit b2426a23b6b721a1073752c795974108ff7799f0
    Author: Adam Grzybowski <adam.grzybowski@swmansion.com>
    Date:   Tue Aug 8 12:37:10 2023 +0200
    
       fix glitching animation of NotFoundPage on transition
    

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

    I think it would be reasonable in this case to render the content that was previously shown. That way, if we are navigating away anyway, as the code assumes, then we would not switch to the NotFoundPage and we'd still avoid the glitchy transition. If we are not navigating then we'd stay on the current page, i.e. displaying stale content for a report that we have lost access to. The next time the user navigates, they will step to a screen that will render as NotFoundPage as normal. That seems like reasonable behavior to me, given how small a corner case this is.

    My proposal is to save the props seen by WithReportOrNotFound in a ref, and in the case where we currently return null, instead return the WrappedComponent with those remembered props.

    What alternative solutions did you explore? (Optional)

    I considered adding a fallback route to WithReportOrNotFound, and making it so it navigates to the fallback route in this case. This would effectively mean all the /r/:reportID/* routes would navigate to /r/:reportID in this situation, and you'd see the NotFoundPage that way. The problem with this is you don't know whether some other part of the app is going to trigger a nav, so you could have two competing navigations that trigger at the same time. That seems like it could cause more problems than it solves.

  10. removed their assignment
    on Sep 26, 2023
  11. 40 remaining items

  12. melvin-bot commented on Oct 18, 2023

    @melvin-bot

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

  13. melvin-bot commented on Oct 20, 2023

    @melvin-bot

    @stephanieelliott, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick!

  14. melvin-bot commented on Oct 23, 2023

    @melvin-bot

    @stephanieelliott @fedirjh this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:

    • Decide whether any proposals currently meet our guidelines and can be approved as-is today
    • If no proposals meet that standard, please take this issue internal and treat it as one of your highest priorities
    • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

    Thanks!

  15. added
    InternalRequires API changes or must be handled by Expensify staff
    and removed
    ExternalAdded to denote the issue can be worked on by a contributor
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 23, 2023
  16. melvin-bot commented on Oct 23, 2023

    @melvin-bot

    Current assignee @fedirjh is eligible for the Internal assigner, not assigning anyone new.

  17. dummy-1111 commented on Oct 24, 2023

    @dummy-1111
    Contributor

    @fedirjh

    Did you check the updated proposal?

  18. kameshwarnayak commented on Oct 24, 2023

    @kameshwarnayak
    Contributor

    I am not able to reproduce this in the latest master.

  19. dummy-1111 commented on Oct 24, 2023

    @dummy-1111
    Contributor

    Yeah, now it closes the RHN and navigates to the concierge page

  20. fedirjh commented on Oct 24, 2023

    @fedirjh
    Contributor

    Yeah, now it closes the RHN and navigates to the concierge page

    I couldn't replicate either. It appears that it has been resolved with this PR #26149.

    CleanShot.2023-10-24.at.12.12.15.mp4
  21. fedirjh commented on Oct 24, 2023

    @fedirjh
    Contributor

    @stephanieelliott Let’s close as fixed by another PR #26149.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringInternalRequires API changes or must be handled by Expensify staff

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions