-
Notifications
You must be signed in to change notification settings - Fork 16.6k
fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage #36951
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
base: master
Are you sure you want to change the base?
Conversation
Code Review Agent Run #3272beActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Looks simple enough, but can you perhaps add a simple test where you add a LOGO_TARGET_PATH and assert that it shows up in the code? |
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.
Pull request overview
This PR fixes a bug where the LOGO_TARGET_PATH configuration variable was ignored by the default theme system, and improves documentation around custom loading icons and logo configuration.
Changes:
- Fixed
LOGO_TARGET_PATHto be properly wired intoTHEME_DEFAULT["token"]["brandLogoHref"] - Documented the
brandSpinnerUrlconfiguration option for custom loading icons - Added clarifying comments about how
APP_ICON,LOGO_TARGET_PATH,LOGO_TOOLTIP, andLOGO_RIGHT_TEXTinteract with the theme system
| # or set THEME_DEFAULT["token"]["brandLogoUrl"] directly. | ||
| APP_ICON = "/static/assets/images/superset-logo-horiz.png" | ||
|
|
||
| # Specify where clicking the logo would take the user' |
Copilot
AI
Jan 12, 2026
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.
There is a typo in this comment. The word "user" should not have an apostrophe at the end.
| # Specify where clicking the logo would take the user' | |
| # Specify where clicking the logo would take the user |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #36951 +/- ##
===========================================
+ Coverage 0 68.17% +68.17%
===========================================
Files 0 639 +639
Lines 0 47657 +47657
Branches 0 5204 +5204
===========================================
+ Hits 0 32491 +32491
- Misses 0 13886 +13886
- Partials 0 1280 +1280
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
SUMMARY
This PR addresses user confusion regarding customizing the loading icon and resolves a bug where
LOGO_TARGET_PATHwas being ignored by the default theme system in Superset 6.0.0.Specifically, it:
brandSpinnerUrlinTHEME_DEFAULTwithin config.py. This clarifies that users can set a custom GIF/image loader via config without needing to replace source files or rebuild assets.THEME_DEFAULTto correctly useLOGO_TARGET_PATHforbrandLogoHref. Previously,LOGO_TARGET_PATHwas ignored by the default theme, forcing users to override the entire theme object just to change the logo link.APP_ICON,LOGO_TOOLTIP,LOGO_RIGHT_TEXT, andAPP_ICON_WIDTH(deprecation note) to clarify their interaction withTHEME_DEFAULTor their deprecated status.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A (Configuration and Documentation changes only)
TESTING INSTRUCTIONS
To verify these changes locally:
Verify Logo Link Fix:
superset_config.py, setLOGO_TARGET_PATH = "https://custom.url".https://custom.url(previously it would stay on/unless the theme was overridden).Verify Custom Spinner:
superset_config.py, set:ADDITIONAL INFORMATION