codeant-ai-for-open-source[bot] commented on PR #38384:
URL: https://github.com/apache/superset/pull/38384#issuecomment-4036324852
## **Sequence Diagram**
This PR changes dashboard theming so the frontend builds the dashboard theme
directly from inline theme data in the dashboard API response, avoiding
separate theme endpoint requests and falling back to the global theme when
theme data is invalid or missing.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant DashboardAPI
participant ThemeSystem
User->>Frontend: Open dashboard
Frontend->>DashboardAPI: Fetch dashboard data
DashboardAPI-->>Frontend: Return dashboard with theme object
Frontend->>ThemeSystem: Create dashboard theme from inline config
ThemeSystem-->>Frontend: Return merged theme and fonts
Frontend-->>User: Render dashboard with applied theme
alt Theme data missing or invalid
Frontend->>Frontend: Fall back to global theme
Frontend-->>User: Render dashboard with global theme
end
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]