codeant-ai-for-open-source[bot] commented on PR #38644:
URL: https://github.com/apache/superset/pull/38644#issuecomment-4059721220
## **Sequence Diagram**
This PR adds an explicit initial mode for theme initialization so embedded
dashboards start in light mode instead of inheriting OS preference. It
preserves later SDK-driven theme changes after the first render.
```mermaid
sequenceDiagram
participant EmbeddedApp
participant ThemeController
participant ThemeStorage
participant SDK
EmbeddedApp->>ThemeController: Initialize with initial mode default
ThemeController->>ThemeStorage: Read saved theme mode
ThemeStorage-->>ThemeController: No saved mode
ThemeController->>ThemeController: Use initial mode as startup fallback
ThemeController-->>EmbeddedApp: Apply light theme on first render
SDK->>ThemeController: Set theme mode dark or system
ThemeController-->>EmbeddedApp: Apply requested mode after init
```
---
*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]