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

   ## **Sequence Diagram**
   
   This PR migrates frontend mounting to React 18 roots and updates chart 
overlay rendering to use root-based mount and unmount behavior. It also 
replaces legacy sortable logic with dnd kit so collection items reorder through 
a drag handle and emit updated order.
   
   ```mermaid
   sequenceDiagram
       participant Browser
       participant FrontendBootstrap
       participant ReactRoot
       participant App
       participant User
       participant CollectionControl
       participant DndKit
       participant ChartLayer
   
       Browser->>FrontendBootstrap: Load frontend entry
       FrontendBootstrap->>ReactRoot: Create root at mount point
       ReactRoot->>App: Render app tree
   
       User->>CollectionControl: Drag item by handle
       CollectionControl->>DndKit: Track drag and compute new order
       DndKit-->>CollectionControl: Return reordered item ids
       CollectionControl-->>App: Emit updated collection value
   
       App->>ChartLayer: Render or update map chart markers
       ChartLayer->>ReactRoot: Render chart roots and unmount removed roots
   ```
   
   ---
   *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