fix(loading): improve loading screen theming for dark mode support#35129
Conversation
|
🎪 Showtime deployed environment on GHA for 6f6d925 • Environment: http://44.251.170.59:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for 7e44735 • Environment: http://35.87.124.232:8080 (admin/admin) |
msyavuz
left a comment
There was a problem hiding this comment.
I think there is some cleanup needed
| error: AntdModal.error, | ||
| warning: AntdModal.warning, |
There was a problem hiding this comment.
Should these two use the themed version as well?
| <GlobalStyles /> | ||
| <ConfigProvider theme={themeState.antdConfig}> | ||
| {children} | ||
| <App>{children}</App> |
There was a problem hiding this comment.
This provides some reset styles that could mess up other parts of the ui.
| // When sortMetric is specified, the backend already sorted the data correctly | ||
| // Don't override the backend's metric-based sorting with frontend alphabetical sorting | ||
| if (formData.sortMetric) { | ||
| return 0; // Preserve the original order from the backend | ||
| } | ||
|
|
||
| // Only apply alphabetical sorting when no sortMetric is specified | ||
| const labelComparator = propertyComparator('label'); | ||
| if (formData.sortAscending) { | ||
| return labelComparator(a, b); | ||
| } | ||
| return labelComparator(b, a); | ||
| }, | ||
| [formData.sortAscending], | ||
| [formData.sortAscending, formData.sortMetric], |
There was a problem hiding this comment.
This looks like leftover code from another pr
| bootstrap_data=json.dumps( | ||
| bootstrap_data, default=json.pessimistic_json_iso_dttm_ser | ||
| ), |
There was a problem hiding this comment.
Getting rid of this will make it so there will be errors when the serialization fails
|
I think Claude did a bad rebase.. will clean up. |
Fixes white flash in dark mode and removes fallback "Loading..." text that was displaying in Times New Roman font. Changes: - Set themed background color on body using colorBgBase token - Supports both light (#ffffff) and dark mode backgrounds - Remove "Loading..." alt text from branded spinner image - Remove fallback "Loading..." text div entirely - Let React app handle loading state instead of HTML fallback This eliminates the white background flash when loading in dark mode and removes the unstyled "Loading..." text that appeared briefly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Added dark mode styling and improved loading indicators.
Removed fallback loading message from spa.html.
Add aria-label to loading spinner image for screen reader accessibility while keeping empty alt text to prevent fallback display if image fails to load. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
🎪 Showtime deployed environment on GHA for 951b48d • Environment: http://44.249.56.21:8080 (admin/admin) |
|
@msyavuz this is ready for review now. Thanks! |
There was a problem hiding this comment.
I've completed my review and didn't find any issues.
Files scanned
| File Path | Reviewed |
|---|---|
| superset/templates/superset/spa.html | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
Remove trailing whitespace from the style block to comply with pre-commit hooks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
🎪 Showtime deployed environment on GHA for 1faaa21 • Environment: http://44.243.219.226:8080 (admin/admin) |
Replace `waitFor` with `getByText` pattern with `findByText` which automatically waits for the element to appear. This follows React Testing Library best practices and eliminates flaky test failures caused by timing issues with fake/real timers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
🎪 Showtime deployed environment on GHA for 032abe7 • Environment: http://35.90.97.68:8080 (admin/admin) |
| expect( | ||
| await screen.findByText(PRE_FILTER_REQUIRED_REGEX), | ||
| ).toBeInTheDocument(); | ||
| }, 50000); // Slow-running test, increase timeout to 50 seconds. |
SUMMARY
This PR improves the loading screen experience for users with dark mode preferences and enhances accessibility.
Changes:
@media (prefers-color-scheme: dark))aria-label="Loading"instead ofalttext for spinner imagesThe changes provide a better initial loading experience that respects user's system theme preferences before the main application loads and eliminates jarring white flashes in dark mode.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2025-09-15.at.1.43.15.PM.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
🤖 Generated with Claude Code