aminghadersohi opened a new pull request, #37191:
URL: https://github.com/apache/superset/pull/37191
## SUMMARY
Adds support for the AG Grid Interactive Table (`ag-grid-table`)
visualization type in the MCP chart generation tools.
**Depends on:** #37190 (Flask app context fix)
### Changes:
- Add `viz_type` option to `TableChartConfig` schema with values:
- `"table"` (default) - Standard table
- `"ag-grid-table"` - AG Grid Interactive Table with advanced features
- Update `map_table_config()` to use `config.viz_type` instead of hardcoded
`"table"`
- Update `analyze_chart_capabilities()` to recognize `ag-grid-table` as an
interactive chart type
- Update `analyze_chart_semantics()` with proper description for
`ag-grid-table`
### Usage Example:
```json
{
"dataset_id": 123,
"config": {
"chart_type": "table",
"viz_type": "ag-grid-table",
"columns": [
{"name": "product_line"},
{"name": "sales", "aggregate": "SUM", "label": "Total Sales"}
]
}
}
```
## BEFORE/AFTER SCREENSHOTS OR RECORDINGS
N/A - API change only
## TESTING INSTRUCTIONS
1. Start MCP server
2. Use `generate_explore_link` or `generate_chart` tool with `viz_type:
"ag-grid-table"`
3. Verify the explore URL opens an AG Grid table (requires
`AgGridTableEnabled` feature flag)
## ADDITIONAL INFORMATION
The AG Grid table provides advanced features like:
- Column resizing
- Sorting
- Filtering
- Server-side pagination
🤖 Generated with [Claude Code](https://claude.ai/code)
--
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]