You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2025/12/18 20:20:25 UTC
[PR] feat(dashboard): granular theming for dashboard components [superset]
rusackas opened a new pull request, #36749:
URL: https://github.com/apache/superset/pull/36749
### SUMMARY
This PR introduces granular theming capabilities for Apache Superset dashboards, allowing users to apply themes at the component level (Charts, Markdown, Rows, Columns, Tabs) in addition to the existing instance and dashboard-level theming.
**Key Changes:**
1. **ComponentThemeProvider** - New wrapper component that loads and applies themes to dashboard components with proper inheritance (Instance → Dashboard → Tab → Row/Column → Chart)
2. **ComponentHeaderControls** - Standardized menu component (vertical dots) for all dashboard components, replacing inconsistent UI patterns:
- Charts: Added "Apply theme" to existing SliceHeaderControls
- Markdown: Replaced MarkdownModeDropdown with ComponentHeaderControls
- Row/Column: Replaced gear icon with ComponentHeaderControls
- Tabs: Added ComponentHeaderControls
3. **ThemeSelectorModal** - Modal for selecting themes to apply to components
4. **Theme inheritance** - Components inherit themes from their parent hierarchy and can override specific tokens
**Architecture:**
```
Instance Theme (global default)
└── Dashboard Theme (override)
├── Tab Theme
│ ├── Row/Column Theme
│ │ └── Chart/Markdown Theme
```
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
_Screenshots to be added after testing_
### TESTING INSTRUCTIONS
1. Open a dashboard in edit mode
2. Hover over any component (Chart, Markdown, Row, Column, or Tabs container)
3. Click the vertical dots menu (⋮) that appears
4. Select "Apply theme" from the menu
5. In the modal, select a theme and click "Apply"
6. Verify the component's styling updates to reflect the selected theme
7. Save the dashboard and reload to verify theme persistence
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [x] Changes UI
- [ ] Includes DB Migration
- [x] Introduces new feature or API
**Note:** This is a draft PR. Backend persistence (Phase 3) will save component themes to dashboard `json_metadata`. Currently themes are stored in component metadata on the client side.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(dashboard): granular theming for dashboard components [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36749:
URL: https://github.com/apache/superset/pull/36749#issuecomment-3672081101
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(dashboard): granular theming for dashboard components [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed pull request #36749: feat(dashboard): granular theming for dashboard components
URL: https://github.com/apache/superset/pull/36749
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] feat(dashboard): granular theming for dashboard components [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #36749:
URL: https://github.com/apache/superset/pull/36749#issuecomment-3858249464
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 1917ed0895f110732f3ba796bdb82423fffba438 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/69858624190b9f000886d3a6 |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-36749--superset-docs-preview.netlify.app](https://deploy-preview-36749--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-36749--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org