forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shimmer loading skeleton on k5 dash
Includes a loading skeleton for k5 cards, homeroom announcements, and for assignments and announcements on course cards. A few other notes: - The card data is cached in local storage, so the skeleton for the cards themselves will only appear briefly if that data exists - We cache the number of cards that a user has server-side, and send that number in an ENV variable so we can display the correct number of card skeletons, however we don't wait for the caching to complete before sending card data back, so the first time a user ever logs in, we may default to 5 skeletons - We always show 1 skeleton for announcements, regardless of actual number closes LS-2070 flag = canvas_for_elementary Test plan: - Enroll a teacher and student in a homeroom course with an announcement and a subject course with an announcement and assignment (or more than one) - As student, load the dashboard; expect to see shimmer for the homeroom announcement and 2 lines on the subject course card for the assignment info and announcement - this either disappears or is replaced by content - There should also be brief shimmer for the cards themselves - Repeat for teacher, except there will only be 1 line of shimmer since teachers don't see assignment info Change-Id: I56bd02d19bff2e7f2906e3c248ee482a21d933b6 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/262255 Tested-by: Service Cloud Jenkins <[email protected]> Reviewed-by: Jeff Largent <[email protected]> QA-Review: Jeff Largent <[email protected]> Product-Review: Peyton Craighill <[email protected]>
- Loading branch information
1 parent
7391f70
commit 93fb36e
Showing
14 changed files
with
435 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.