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

   ## **Sequence Diagram**
   
   The PR migrates SqlLab and Explore controls to TypeScript and tightens 
action/reducer types. This diagram shows the core success paths: running a SQL 
query through SqlLab actions to the API and updating state, and applying an 
annotation from the AnnotationLayer control which fetches chart/native options 
then emits the finalized annotation to the parent handler.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant SqlEditor (UI)
       participant SqlLabActions
       participant SupersetAPI
       participant SqlLabReducer
       participant AnnotationLayer (UI)
       participant ParentHandler
   
       %% Query run success path
       User->>SqlEditor: Click "Run" (query object)
       SqlEditor->>SqlLabActions: dispatch runQuery(query)
       SqlLabActions->>SupersetAPI: POST /sqllab/execute (client_id, sql...)
       SupersetAPI-->>SqlLabActions: 200 OK (SqlExecuteResponse)
       SqlLabActions->>SqlLabReducer: dispatch QUERY_SUCCESS (query, results)
       SqlLabReducer-->>SqlEditor: state updated (queries -> results)
   
       %% Annotation apply path
       User->>AnnotationLayer: Open editor / select source (chart or native)
       AnnotationLayer->>SupersetAPI: GET /charts or /annotation_layer (async 
options)
       SupersetAPI-->>AnnotationLayer: lists of charts or layers
       AnnotationLayer->>AnnotationLayer: prepare newAnnotation (resolve 
value/overrides)
       AnnotationLayer->>ParentHandler: addAnnotationLayer(newAnnotation)
       ParentHandler-->>AnnotationLayer: confirm / close UI
   ```
   
   ---
   *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