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

   ## **Sequence Diagram**
   
   This PR reimplements the Explore CollectionControl drag-and-drop using 
dnd-kit, so reordering items now flows through a DnD context that updates the 
collection value via arrayMove and calls the parent onChange handler.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant CollectionControl
       participant DnD
       participant ParentForm
   
       User->>CollectionControl: Drag collection item handle
       CollectionControl->>DnD: Start drag session with item id
       User->>DnD: Drop item at new position
       DnD-->>CollectionControl: Drag end with active and over ids
       CollectionControl->>CollectionControl: Compute new order with arrayMove
       CollectionControl->>ParentForm: onChange(updated collection items)
       ParentForm-->>CollectionControl: Rerender with new item order
   ```
   
   ---
   *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