You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ask-ai): add version-specific naming for Ask AI widget
- Add version-specific product names in products.yml:
- name__v2: InfluxDB OSS v2
- name__v1: InfluxDB OSS v1
- name__vcloud: InfluxDB Cloud (TSM)
- Update ask-ai.ts to use getVersionSpecificConfig() for product names
- Fix page-context.js to use products.influxdb_cloud instead of products.cloud
- Add UI tests verifying version-specific naming in Kapa widget script tags
All 34 tests passing, including new tests for v2, v1, and Cloud (TSM) version naming.
'This AI can access [documentation for InfluxDB, clients, and related tools](https://docs.influxdata.com). Information you submit is used in accordance with our [Privacy Policy](https://www.influxdata.com/legal/privacy-policy/).',
100
103
modalExampleQuestions:
101
104
'Use Python to write data to InfluxDB 3,How do I query using SQL?,How do I use MQTT with Telegraf?',
@@ -175,27 +178,7 @@ function getProductExampleQuestions(): string {
175
178
return'';
176
179
}
177
180
178
-
// Only add version hints for InfluxDB database products
179
-
// Other tools like Explorer, Telegraf, Chronograf, Kapacitor,
// Listen for conversation reset to re-fill version context
253
-
window.Kapa('onAskAIConversationReset',()=>{
254
-
// Small delay to ensure the reset is complete
255
-
setTimeout(()=>{
256
-
window.Kapa('open',{query: versionContext});
257
-
},100);
258
-
});
259
-
};
217
+
// Base disclaimer with privacy policy link
218
+
constbaseDisclaimer=
219
+
'This AI can access [documentation for InfluxDB, clients, and related tools](https://docs.influxdata.com). Information you submit is used in accordance with our [Privacy Policy](https://www.influxdata.com/legal/privacy-policy/).';
0 commit comments