-
Notifications
You must be signed in to change notification settings - Fork 76
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
Show spinner while loading library components [FC-0062] #1331
Show spinner while loading library components [FC-0062] #1331
Conversation
Thanks for the pull request, @pomegranited! What's next?Please work through the following steps to get your changes ready for engineering review: 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:
When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
b43d902
to
c7592ce
Compare
to show spinners on the LibraryHome and LibraryComponents pages.
c7592ce
to
4a80777
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thank you for your work @pomegranited!
This is working great. I added one suggestion to remove isFetching
and a fix for the test.
- I tested this using the instructions from the PR
- I read through the code
- I checked for accessibility issues
- Includes documentation
Test error here is unrelated to this change:
|
Thanks for addressing the coverage token issue @bradenmacdonald ! I'm still getting a related failure with the coverage check though.. do you know why? |
@pomegranited Hmm sorry about that. I don't have time to look into it now, but it says |
Ahh.. that helped, thank you. I accidentally pushed a change to the Makefile that disabled running the actual tests, so of course there were no coverage files either. |
1954570
to
d5d7b16
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1331 +/- ##
=======================================
Coverage 92.97% 92.97%
=======================================
Files 1036 1036
Lines 19448 19457 +9
Branches 4122 4136 +14
=======================================
+ Hits 18081 18090 +9
Misses 1302 1302
Partials 65 65 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thank you for your work, @pomegranited!
- I tested this using the instructions from:
- I read through the code
- I checked for accessibility issues
- Includes documentation
I created a small PR to improve the coverage here: open-craft#70
Looks like we still have one more line to cover - or just add a comment to ignore coverage for that line. |
@pomegranited Sorry, looks like there's a conflict with the PR I just merged. |
…brary-loading-text
No worries! Your merged PR nudged me to clean up the test I added :) |
Description
Use
query.isLoading
(notquery.isFetching
) to show a spinner when loading Library components.Prior to this change, the home page for a content library briefly shows "You haven't added any components to this library yet" while the library is loading.
This change affects Course Authors using v2 content libraries.
Supporting information
Bug reported on Slack: comment
Private-ref: FAL-3859
Testing instructions
Note that a spinner is shown while the components are loading, and "You haven't added any components" is never shown.
Note that a spinner is shown while the components are loading, and "You haven't added any components" is never shown.