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

   ## **Sequence Diagram**
   
   The PR customizes PointerSensor activation to detect interactive elements 
(input/textarea/contentEditable) and prevent drag activation when the user 
clicks them, so editing tab titles shows the text cursor instead of starting a 
drag.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant TabsUI as Tabs Renderer
       participant PointerSensor
       participant DnD as DndContext
       participant Browser
   
       User->>TabsUI: Pointer down on tab title
       TabsUI->>PointerSensor: Check activation target
       PointerSensor->>PointerSensor: Is target input/textarea/contentEditable?
       alt Target is interactive
           PointerSensor-->>TabsUI: Prevent drag activation
           TabsUI-->>Browser: Let browser show text cursor / allow editing
           Browser-->>User: Text cursor, edit title
       else Target not interactive
           PointerSensor-->>Dnd: Activate drag
           Dnd-->>TabsUI: Reorder tabs (update state)
           TabsUI-->>User: Tab reordered
       end
   ```
   
   ---
   *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