bito-code-review[bot] commented on code in PR #38402:
URL: https://github.com/apache/superset/pull/38402#discussion_r2888901671


##########
superset/mcp_service/app.py:
##########
@@ -118,6 +118,10 @@ def get_default_instructions(branding: str = "Apache 
Superset") -> str:
 - chart_type="xy", kind="scatter": Scatter plot for correlation analysis
 - chart_type="table": Data table for detailed views
 - chart_type="table", viz_type="ag-grid-table": Interactive AG Grid table
+- chart_type="handlebars": Custom HTML template chart (KPI cards, 
leaderboards, reports)
+  Requires handlebars_template with Handlebars HTML template string.
+  Supports query_mode="aggregate" (with metrics/groupby) or "raw" (with 
columns).
+  Data available as {{{{data}}}} array; helpers: dateFormat, formatNumber, 
stringify.

Review Comment:
   <div>
   
   
   <div id="suggestion">
   <div id="issue"><b>Documentation error in Handlebars template 
syntax</b></div>
   <div id="fix">
   
   The documentation shows {{{{data}}}} but Handlebars uses {{data}}. This 
appears to be a typo that could confuse users trying to use the handlebars 
template feature.
   </div>
   
   
   <details>
   <summary>
   <b>Code suggestion</b>
   </summary>
   <blockquote>Check the AI-generated fix before applying</blockquote>
   <div id="code">
   
   
   ````suggestion
     Data available as {{data}} array; helpers: dateFormat, formatNumber, 
stringify.
   ````
   
   </div>
   </details>
   
   
   
   </div>
   
   
   
   
   <small><i>Code Review Run #34ae1a</i></small>
   </div>
   
   ---
   Should Bito avoid suggestions like this for future reviews? (<a 
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
   - [ ] Yes, avoid them



-- 
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