-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Awaiting bug report payment][$1000] Workspace - No loader for workspace members page #21567
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
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Loader is not shown on workspace members page before members are loaded. Instead an error message is shown - "Member not found. To invite a new member to the workspace, please use the Invite button above." What is the root cause of that problem?We are showing an error message if the length is 0 for members. When members are not loaded, length of members is 0 and we show this message instead of a loader. See line 471. App/src/pages/workspace/WorkspaceMembersPage.js Lines 448 to 472 in 1e308ca
What changes do you think we should make in order to solve the problem?Check if We need to check {_.isEmpty(props.policyMembers) || !OptionsListUtils.isPersonalDetailsReady(props.personalDetails) ? (
<OptionsListSkeletonView shouldAnimate />
) : (
// existing code to render members, buttons, etc. when all data is loaded
)} Alternatively, we can also make a function for this in the function shouldShowPolicyMembers() {
return !_.isEmpty(props.policyMembers) && OptionsListUtils.isPersonalDetailsReady(personalDetails));
} Then, we can use this function in What alternative solutions did you explore? (Optional)NA Result - Screen.Recording.2023-07-20.at.11.11.29.PM.mov |
I think this is a dupe of this issue and should be fixed by this PR when we implement the skeleton UI on this page when it's loading. Going to close it out! |
@trjExpensify this is not a dupe of #19236, that issue is trying to fix the 'Hmm.. it's not here page' that appears when we open the members or invite page using deeplink in desktop app. Video of that issue - members.movThis issue appears on all platforms and is not related to deeplink at all. This issue is simply the lack of loader on Workspace Members page which shows this message until members are not loaded - You can see the issue description for more details. |
Hm, but isn't the root cause the same? We don't currently have the skeleton UI implemented on the workspace members page? By adding it, this won't be a problem. Happy to reopen and get a second opinion however! CC: @kowczarz @aimane-chnaif |
@trjExpensify I tested that PR and it doesn't fix this issue because the state of Screen recording using the PR's code locally checked out - Screen.Recording.2023-06-27.at.3.02.50.AM.movThe HOC that is being changed in that PR - |
Job added to Upwork: https://www.upwork.com/jobs/~010e98a1022376a0f5 |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
Cool, thanks for the added detail. I'm moving this on |
I suggest to put this on hold until PR is merged. |
Hehe, that's the same PR I referenced here |
@Nikhil-Vats Thanks for your proposal. With what you have suggested, wouldn't the error message never show up (even if the members are actually 0)? |
@allroundexperts that code can be removed since there is always at least 1 member in the workspace - the workspace owner which cannot be removed by anyone. I updated my proposal to reflect it. |
How are we looking here now @allroundexperts? |
@tjferriss We still don't have a good enough proposal. |
@Nikhil-Vats With what you've suggested in your proposal, if someone types something in the search bar, and if not results are found, he'll just end up with a spinner. Also I don't think that |
Thanks @allroundexperts . I unnecessarily updated my proposal and like you said, it won't work correctly if we search for members. I have reverted the changes back as the initial proposal works fine. Please see the video below. It is also attached in my updated proposal. Screen.Recording.2023-07-04.at.4.18.00.PM.movAs for a workspace without an admin, can you tell me how were you able to produce an instance with no members so that I can better understand the edge case and propose an updated solution? As no one can remove the admin, not even the admin themselves. |
Looks like a loading spinner, not a skeleton UI?
Agreed, seems like this is a dupe of #19236, so let's put this on HOLD to see if @amyevans agrees. If so, we should just close this. @amyevans what do you think? |
I don't think it's strictly a dupe, because different data missing is resulting in different views during the load phase. That said, per @aimane-chnaif's comment in the PR, we'll ensure both cases are covered in the PR and a skeleton UI is displayed. So I think a |
Thanks @amyevans!!! |
Nice, makes sense to me. Added the issue title in the header for the hold! |
Still on HOLD. Making this a weekly in the meantime |
Linked PR is in review! |
on HOLD |
Linked PR is still in review. |
Deployed to staging 15 hours ago! Retested and the skeleton UI circumvents the problem: teuNJJiq9K.mp4With that, I've sent @Nikhil-Vats an offer for $250 for the bug report. Once settled, we can close this out! :) |
Offer accepted @trjExpensify. |
Settled! |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
A loader should be shown before members are loaded.
Actual Result:
There is no loader before members are loaded and the message "Member not found. To invite a new member to the workspace, please use the Invite button above." is shown which might be confusing for users if they have slow connection.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.29-11
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
Screen.Recording.2023-06-22.at.2.06.40.PM.1.mov
Recording.887.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Nikhil-Vats
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687423087741759
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: