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

   ## **Sequence Diagram**
   
   The PR prevents the Matrixify tab from being shown for table-like 
visualization types by checking a set of incompatible viz types in addition to 
the Matrixify feature flag. It also preserves the existing auto-switch behavior 
to the Matrixify tab when Matrixify becomes enabled for supported charts.
   
   ```mermaid
   sequenceDiagram
       participant Viewer
       participant ControlPanelsContainer
       participant FeatureFlagService
       participant VizRegistry
   
       Viewer->>ControlPanelsContainer: Open explore with form_data.viz_type
       ControlPanelsContainer->>FeatureFlagService: isFeatureEnabled(Matrixify)?
       ControlPanelsContainer->>VizRegistry: check viz_type against 
MATRIXIFY_INCOMPATIBLE_CHARTS
       alt Feature enabled AND viz_type supported
           ControlPanelsContainer-->>Viewer: Render tabs including Matrixify
           Viewer->>ControlPanelsContainer: Enable matrixify in form_data
           ControlPanelsContainer-->>Viewer: Auto-switch active tab to Matrixify
       else Feature disabled OR viz_type incompatible
           ControlPanelsContainer-->>Viewer: Render tabs without Matrixify
       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