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

Not Found view briefly appears on workspace members and invite pages #19236

Closed
6 tasks
amyevans opened this issue May 18, 2023 · 62 comments
Closed
6 tasks

Not Found view briefly appears on workspace members and invite pages #19236

amyevans opened this issue May 18, 2023 · 62 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@amyevans
Copy link
Contributor

amyevans commented May 18, 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!


This is a follow up issue from #17349 (comment)

Action Performed:

Open workspace members or invite page from deep link

Expected Result:

No flash of "Not Found" view

Actual Result:

Flash of "Not Found" view

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:
Reproducible in staging?:
Reproducible in production?:
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

invite.mov
members.mov

Expensify/Expensify Issue URL:
Issue reported by: @aimane-chnaif
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019ab8e5ee8dfc45ea
  • Upwork Job ID: 1669436508157517824
  • Last Price Increase: 2023-06-15
@amyevans amyevans added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 18, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 18, 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

@amyevans
Copy link
Contributor Author

@jczekalski please comment on the issue so I can assign you

@dukenv0307
Copy link
Contributor

This issue is fixed by this PR: #18967

@aimane-chnaif
Copy link
Contributor

This issue is fixed by this PR: #18967

That doesn't fix the issue completely. We should show skeleton instead of full screen loading

@dukenv0307
Copy link
Contributor

Proposal

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

Open workspace members or invite page from deep link and have flash of "Not Found" view

What is the root cause of that problem?

In here

shouldShow={_.isEmpty(this.props.policy)}

We're showing Not Found page if the this.props.policy is empty. When we navigate to the Workspace Settings page by link and login, the policy wasn't loaded yet (using the OpenApp API), so it shows Not Found briefly until the policy is loaded.

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

Base on @aimane-chnaif's comment, we need to build WorkspaceInvitePageSkeletonView and WorkspaceMembersPageSkeletonView and check if the policy is empty and the report is loading, if yes that means the policy is not initially loaded yet, so we show a WorkspaceInvitePageSkeletonView or WorkspaceMembersPageSkeletonView

if (this.props.isLoadingReportData && _.isEmpty(this.props.policy)) {
    return <WorkspaceMembersPageSkeletonView />;
}
if (this.props.isLoadingReportData && _.isEmpty(this.props.policy)) {
    return <WorkspaceInvitePageSkeletonView />;
}

What alternative solutions did you explore? (Optional)

NA

@jczekalski
Copy link
Contributor

I'm an expert contributor from Software Mansion and I'd like to investigate this issue (@amyevans).

@melvin-bot
Copy link

melvin-bot bot commented May 22, 2023

@amyevans, @mallenexpensify, @jczekalski, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@mallenexpensify
Copy link
Contributor

@jczekalski can you provide an update? Do you plan to post a proposal soon?

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2023
@jczekalski
Copy link
Contributor

@mallenexpensify Sorry for the delay, we decided to reassign this task to a new developer who just joined the team. They just started working on it today.

@kowczarz
Copy link
Contributor

Hey, I'm from Software Mansion, I'd like to work on this job.

@melvin-bot

This comment was marked as off-topic.

@amyevans amyevans assigned kowczarz and unassigned jczekalski May 25, 2023
@amyevans
Copy link
Contributor Author

@kowczarz Just a heads up I added you to our Upwork whitelist, so in a few days (once it deploys), Melvin should stop asking you for your Upwork details whenever you comment on a GH 😄

@amyevans
Copy link
Contributor Author

FYI: I'll be OOO tomorrow and Monday.

@kowczarz
Copy link
Contributor

kowczarz commented May 26, 2023

Currently the app displays loading indicator instead of not found view and then shows skeleton placeholder. Should we keep current behaviour, or should we modify it so the app will instantly show the skeleton placeholder?

Screen.Recording.2023-05-26.at.16.59.35_H.265.mp4

@aimane-chnaif
Copy link
Contributor

@kowczarz to be consistent with other pages, should show skeleton before loading data

@melvin-bot melvin-bot bot added the Overdue label May 29, 2023
@kowczarz
Copy link
Contributor

Proposal

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

To be consistent with other pages, we should show skeleton instead of full page activity indicator.

What is the root cause of that problem?

We have two different UI states during the loading of the workspace invite screen - first full page activity indicator, then skeleton flashes for a moment

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

In withPolicyAndFullscreenLoading we can add a flag that will optionally disable the fullscreen activity indicator. Then we can add onyx state with information if the report data is loaded. If the data is being loaded we can prevent displaying FullPageNotFoundView so it won't flash ad the user will see the skeleton.

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot removed the Overdue label May 29, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

@amyevans, @mallenexpensify, @kowczarz, @aimane-chnaif 12 days overdue now... This issue's end is nigh!

@amyevans
Copy link
Contributor Author

amyevans commented Aug 4, 2023

@aimane-chnaif can you prioritize another review of the PR please? It'd be nice to get this over the line

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

@amyevans, @mallenexpensify, @kowczarz, @aimane-chnaif 12 days overdue. Walking. Toward. The. Light...

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Aug 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 25, 2023

This issue has not been updated in over 14 days. @amyevans, @mallenexpensify, @kowczarz, @aimane-chnaif eroding to Weekly issue.

@aimane-chnaif
Copy link
Contributor

PR was deployed to production on Aug 24

@mallenexpensify mallenexpensify removed the Reviewing Has a PR in review label Sep 5, 2023
@melvin-bot melvin-bot bot added the Overdue label Sep 5, 2023
@mallenexpensify mallenexpensify added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Overdue labels Sep 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 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

@mallenexpensify
Copy link
Contributor

Removed Reviewing so this will now go overdue.
@aimane-chnaif @amyevans who's due compensation here? I think it's $1k each to @aimane-chnaif and @kowczarz but wanna make sure.

@sakluger I'm off this week, can you please keep 👀 on this then I'll snag it back on Monday? Thx

@aimane-chnaif
Copy link
Contributor

@mallenexpensify I got already paid in #25587 for this GH review.
But am I eligible for more compensation fixing another issue as well? - #21567
They had different root causes but PR fixed both issues

@amyevans
Copy link
Contributor Author

amyevans commented Sep 5, 2023

I think @aimane-chnaif is due reporter bonus here still, $250. @kowczarz is an agency contributor so not compensated via Upwork.

But am I eligible for more compensation fixing another issue as well? - #21567

Hmm I don't think so unless it dramatically increased the scope. There was no proposal review process or 2nd PR to review/test. We'd just compensate for the separate bug report there, which looks like that already happened on the GH.

@sakluger
Copy link
Contributor

sakluger commented Sep 5, 2023

I agree with @amyevans, if the two bugs had the same root cause and were fixed with one PR, then we would only pay for that fix once.

@amyevans since I'm just coming into this issue now, what payments are due here? Just the reporting bonus?

@aimane-chnaif
Copy link
Contributor

$250 (reporting) is due for me

@amyevans
Copy link
Contributor Author

amyevans commented Sep 5, 2023

@sakluger yep, reporting bonus

@melvin-bot
Copy link

melvin-bot bot commented Sep 11, 2023

@sakluger, @amyevans, @mallenexpensify, @kowczarz, @aimane-chnaif Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot melvin-bot bot added the Overdue label Sep 11, 2023
@mallenexpensify
Copy link
Contributor

@aimane-chnaif can you please accept the job and reply here once you have?
https://www.upwork.com/jobs/~01ab002e55737f23b6

@melvin-bot melvin-bot bot removed the Overdue label Sep 11, 2023
@sakluger
Copy link
Contributor

All paid and done, thanks everyone!

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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

8 participants