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

   ## **Sequence Diagram**
   
   This PR updates dashboard tab rendering in edit mode so every tab uses the 
editable title layout, while only the focused tab enters active editing. It 
also measures input width before paint using inherited tab font styling, so the 
underline matches the full visible tab title width.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant Dashboard
       participant Tab
       participant EditableTitle
       participant BrowserLayout
   
       User->>Dashboard: Enter edit mode and select a tab
       Dashboard->>Tab: Render each tab with edit mode state
       Tab->>EditableTitle: Pass canEdit true for all tabs and editing for 
focused tab
       EditableTitle->>EditableTitle: Sync internal editing state from editing 
prop
       EditableTitle->>BrowserLayout: Measure title width with inherited tab 
font before paint
       BrowserLayout-->>EditableTitle: Return computed width for input underline
       EditableTitle-->>User: Show full width underline and focused tab editing 
only
   ```
   
   ---
   *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