Skip to content

[$250] Workspace - That page is nowhere to be found error message appears for a brief moment reported by @thesahindia  #12616

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. Navigate to settings > Workspaces
  2. Select a workspace
  3. Copy the URL
  4. Sign out > paste the URL and press enter
  5. Now login

Expected Result:

You should see a loading indicator

Actual Result:

Not found view is being displayed

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • Desktop App
  • Mobile Web

Version Number: 1.2.25-0
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Screen.Recording.2022-11-09.at.12.46.25.PM.mov
Recording.875.mp4

Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1667978507958729

View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Nov 9, 2022
  2. melvin-bot commented on Nov 9, 2022

    @melvin-bot

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

  3. laurenreidexpensify commented on Nov 10, 2022

    @laurenreidexpensify
    Contributor
  4. added
    External
    on Nov 10, 2022
  5. melvin-bot commented on Nov 10, 2022

    @melvin-bot

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

  6. melvin-bot commented on Nov 10, 2022

    @melvin-bot

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

  7. added
    Help Wanted
    on Nov 10, 2022
  8. melvin-bot commented on Nov 10, 2022

    @melvin-bot

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

  9. changed the title [-]Workspace - `That page is nowhere to be found` error message appears for a brief moment reported by @thesahindia [/-] [+][$250] Workspace - `That page is nowhere to be found` error message appears for a brief moment reported by @thesahindia [/+] on Nov 10, 2022
  10. s77rt commented on Nov 10, 2022

    @s77rt
    Member

    Proposal

    diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js
    index 1c016c601..f7e5cfdb8 100644
    --- a/src/pages/workspace/WorkspaceInitialPage.js
    +++ b/src/pages/workspace/WorkspaceInitialPage.js
    @@ -148,7 +148,7 @@ class WorkspaceInitialPage extends React.Component {
     
             return (
                 <ScreenWrapper>
    -                <FullPageNotFoundView shouldShow={_.isEmpty(this.props.policy)}>
    +                <FullPageNotFoundView shouldShow={this.props.isLoadingInitialAppData === false && _.isEmpty(this.props.policy)}>
                         <HeaderWithCloseButton
                             title={this.props.translate('workspace.common.workspace')}
                             shouldShowBackButton
    @@ -274,5 +274,8 @@ export default compose(
             reports: {
                 key: ONYXKEYS.COLLECTION.REPORT,
             },
    +        isLoadingInitialAppData: {
    +            key: ONYXKEYS.IS_LOADING_INITIAL_APP_DATA,
    +        },
         }),
     )(WorkspaceInitialPage);

    Details

    The fix is make sure the app is loaded before displaying the FullPageNotFoundView so we can act based on the real collected data.
    PS: The fix should be applied on other pages as well such as WorkspaceSettingsPage, WorkspaceInvitePage, etc.

    Plus:

    With the proposed fix, the name of the workspace will appear empty, then it will be populated. We can fix that by moving the isLoadingInitialAppData check a little above to return null or a spinner.

    diff --git a/src/pages/workspace/WorkspaceInitialPage.js b/src/pages/workspace/WorkspaceInitialPage.js
    index 1c016c601..ce9e8e474 100644
    --- a/src/pages/workspace/WorkspaceInitialPage.js
    +++ b/src/pages/workspace/WorkspaceInitialPage.js
    @@ -95,6 +95,10 @@ class WorkspaceInitialPage extends React.Component {
         }
     
         render() {
    +        if (this.props.isLoadingInitialAppData !== false) {
    +            return null;
    +        }
    +
             const policy = this.props.policy;
             const hasMembersError = PolicyUtils.hasPolicyMemberError(this.props.policyMemberList);
             const hasGeneralSettingsError = !_.isEmpty(lodashGet(this.props.policy, 'errorFields.generalSettings', {}))
    @@ -274,5 +278,8 @@ export default compose(
             reports: {
                 key: ONYXKEYS.COLLECTION.REPORT,
             },
    +        isLoadingInitialAppData: {
    +            key: ONYXKEYS.IS_LOADING_INITIAL_APP_DATA,
    +        },
         }),
     )(WorkspaceInitialPage);

    PS: This fix is a per page fix, means it must be done on all pages that should not render before init. To make the global fix, we can port the isLoadingInitialAppData check (or better a promise) to the modal stack level (the sidebar).

    Kooha-2022-11-10-15-03-48.mp4
    Kooha-2022-11-10-16-13-48.mp4
  11. mananjadhav commented on Nov 10, 2022

    @mananjadhav
    Collaborator

    Thanks for the proposal @s77rt. I agree with your analysis.

    I am wondering if this check should be at FullPageNotFoundView page itself? What do you think @Beamanator? That way it is fixed across all the pages. We can fallback to show a loader when isLoadingInitialAppData is true?

  12. 96 remaining items

  13. added
    Weekly
    and removed on Aug 8, 2023
  14. changed the title [-][HOLD #11768] [$250] Workspace - `That page is nowhere to be found` error message appears for a brief moment reported by @thesahindia [/-] [+][$250] Workspace - `That page is nowhere to be found` error message appears for a brief moment reported by @thesahindia [/+] on Aug 8, 2023
  15. Beamanator commented on Aug 8, 2023

    @Beamanator
    Contributor

    No longer on hold - i wonder if we should close & open a fresh one b/c some automations seem out of date - ex: the upwork job link, issue title should be $1000

  16. added
    Needs Reproduction
    on Aug 8, 2023
  17. luacmartins commented on Aug 23, 2023

    @luacmartins
    Contributor

    what's the latest here @Beamanator? are we closing this issue and creating a new one?

  18. Beamanator commented on Aug 25, 2023

    @Beamanator
    Contributor

    I just tried to reproduce & now I see a loader on the workspace RHN so I think we can close this out

  19. daraksha-dk commented on Aug 29, 2023

    @daraksha-dk
    Contributor

    @Beamanator @laurenreidexpensify I contributed to #12923 and invested significant time to solve this issue. Unfortunately, it had to be closed due to the refactor. I completely understand the reasons behind it, but I'm curious whether my effort could be considered for compensation?

  20. thesahindia commented on Sep 8, 2023

    @thesahindia
    Member

    I think it's eligible for the reporting compensation?

    cc: @laurenreidexpensify

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

Metadata

Metadata

Labels

BugDesignExternalNeeds ReproductionWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions