Repository navigation
Conversation
|
Visual regression reportCypress suite: ✅ Passing Visual diff:
Accessibility (axe): ✅ No violations. 📊 View full report — click a screenshot's ⚠ badge to see each violation boxed on the image, with the offending element named and contrast failures shown as color swatches. Baselines come from the |
1e078db to
31036e9
Compare
31036e9 to
0b3f6af
Compare
0b3f6af to
230515c
Compare
230515c to
aafcdbe
Compare
Canvas loads Courses, Groups, History and Help in the background, so it needs to show progress and a failed load without building these screens in renderContent. An empty list stays the app's own content. onRequestSubNavContent tells it when to load, starting before the click, and renderFooter holds pagination for long lists. Refs INSTUI-5280 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aafcdbe to
42a0971
Compare
| {subNav.status ? ( | ||
| <SubNavStatus | ||
| // a new screen remounts, which restarts the loading delay and announces it again | ||
| key={subNav.status.type} | ||
| status={subNav.status} | ||
| /> |
There was a problem hiding this comment.
So as I see this is the core part: if status is not undefined, then show the loading/error screen, and the content otherwise
matyasf
left a comment
There was a problem hiding this comment.
it looks good, I think the core logic is OK, did not go very deep on the whole thing though

Summary
status: a loading screen that waits 400 ms so a fast load doesn't flicker, or an error with an optional retry button. 400 ms is the defaultannouncementDelayofSkeletonLoader, so both loading screens wait the same time. It replacesitemsorrenderContent. Screen readers hear the loading text, the error (role="alert") andloadedLabelfrom live regions in the SubNav level, as inSkeletonLoader. Empty lists stay the app's own content inrenderContent.renderFooteradds content under the scrolling area, for "All X" links or pagination.onRequestSubNavContentis called when the SubNav of a rail item or the account opens, and earlier after 200 ms of hover or focus, or on touch. The delay skips the pointer or focus only passing over an item, and about 200 ms is what Canvas suggested for starting its lazy loads. Prior art: Pagination'sonMouseEnterwas added for prefetching (INSTUI-4678). GlobalNav adds the delay and focus because users pass over the rail all the time.Three basic tests. Full tests and accessibility checks come with INSTUI-5235.
Test Plan
GlobalNav page, "Loading and errors" example:
Fixes INSTUI-5280
🤖 Generated with Claude Code