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

   ## **Sequence Diagram**
   
   This PR adds chart_type_display_name to chart responses by mapping internal 
viz_type values to readable names. During chart serialization, the MCP service 
resolves names from frontend JSON overrides plus legacy Python metadata, then 
returns both internal and display fields.
   
   ```mermaid
   sequenceDiagram
       participant Client
       participant MCP Service
       participant Chart Serializer
       participant Viz Name Resolver
   
       Client->>MCP Service: Request list_charts or get_chart_info
       MCP Service->>Chart Serializer: Serialize chart records
       Chart Serializer->>Viz Name Resolver: Resolve display name from viz type
       Viz Name Resolver->>Viz Name Resolver: Load merged names from JSON and 
legacy metadata
       Viz Name Resolver-->>Chart Serializer: Return chart type display name
       MCP Service-->>Client: Return viz_type and chart_type_display_name
   ```
   
   ---
   *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