codeant-ai-for-open-source[bot] commented on PR #38527:
URL: https://github.com/apache/superset/pull/38527#issuecomment-4029718180

   ## **Sequence Diagram**
   
   This PR ensures that when a user applies a local theme for testing, the 
associated theme ID is forwarded through the theme provider to the controller, 
persisted in storage, and later used to restore and display the Local tag after 
navigation.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant ThemesPage
       participant ThemeProvider
       participant ThemeController
       participant LocalStorage
   
       User->>ThemesPage: Apply local theme for testing
       ThemesPage->>ThemeProvider: setTemporaryTheme(themeConfig, themeId)
       ThemeProvider->>ThemeController: setTemporaryTheme(themeConfig, themeId)
       ThemeController->>LocalStorage: Persist dev theme and applied theme id
   
       User->>ThemesPage: Return to Themes page
       ThemesPage->>ThemeProvider: Restore local theme state
       ThemeProvider->>ThemeController: Load override and applied theme id from 
storage
       ThemesPage-->>User: Show Local tag on applied theme
   ```
   
   ---
   *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]

Reply via email to