codeant-ai-for-open-source[bot] commented on PR #38384:
URL: https://github.com/apache/superset/pull/38384#issuecomment-4036723543
## **Sequence Diagram**
This PR changes dashboard rendering so the frontend builds the dashboard
theme directly from theme data embedded in the dashboard API response, avoiding
separate theme fetches that caused 403 errors and infinite spinners for
non-admin users.
```mermaid
sequenceDiagram
participant User
participant BrowserApp
participant BackendAPI
participant CrudThemeProvider
User->>BrowserApp: Open themed dashboard
BrowserApp->>BackendAPI: Request dashboard data
BackendAPI-->>BrowserApp: Dashboard JSON with theme config
BrowserApp->>CrudThemeProvider: Provide dashboard theme data
CrudThemeProvider->>CrudThemeProvider: Create merged dashboard theme and
load fonts
CrudThemeProvider-->>BrowserApp: Render children with dashboard theme
BrowserApp-->>User: Display dashboard without extra theme API calls
```
---
*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]