docs-v2/assets/js
Jason Stirnaman 68f00e6805
fix(version-detector): centralize Grafana links and DRY up host examples (#6693)
* fix(version-detector): use centralized getGrafanaLink for all Grafana URLs

Refactor handleAuthorizationHelp to use getGrafanaLink() instead of
hardcoded URLs, ensuring all Grafana links come from a single source.

Also fix incorrect URLs in getGrafanaLink mapping:
- InfluxDB OSS 2.x: /visualize-data/ → /tools/
- InfluxDB Enterprise: /influxdb/enterprise/ → /enterprise_influxdb/v1/
- InfluxDB Cloud (TSM): /visualize-data/ → /tools/
- InfluxDB Cloud v1: now links to Enterprise v1 docs (Cloud v1 is
  Enterprise under the hood)

* refactor(version-detector): DRY up localhost:8086 references

Extract HOST_EXAMPLES to a class-level constant and add DEFAULT_HOST
and DEFAULT_HOST_PORT constants to eliminate duplicate localhost:8086
strings throughout the code.

- Move hostExamples from local variable to class constant
- Use DEFAULT_HOST for URL placeholder and comparison checks
- Use DEFAULT_HOST_PORT for docker curl command examples

* feat(ask-ai): Support source group IDs in Ask AI trigger links

* feat(version-detector): Present context-aware links

- Add ai_source_group_ids fields to ProductConfig interface
- Improve SCSS for doc and Ask AI links
- Update Grafana docs to add aliases and context param for detector
- Update modal partial to include AI source group IDs in config
- Remove custom Cypress commands for version detector
- Update E2E tests to use direct Cypress commands
2026-01-26 18:42:09 -06:00
..
components Telegraf Controller (alpha) Documentation (#6685) 2025-12-31 14:49:32 -07:00
services chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
utils Telegraf Controller (alpha) Documentation (#6685) 2025-12-31 14:49:32 -07:00
api-libs.js chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
ask-ai-trigger.js fix(version-detector): centralize Grafana links and DRY up host examples (#6693) 2026-01-26 18:42:09 -06:00
ask-ai.ts Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
code-controls.js hotfix(analytics): typo 2025-07-14 13:11:24 -05:00
code-placeholders.js chore(code-placeholders): Support path-like patterns: 2025-04-23 10:27:20 -05:00
content-interactions.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
custom-timestamps.js InfluxDB 3 Explorer 1.2 (#6350) 2025-08-29 08:44:59 -06:00
datetime.js Update assets/js/datetime.js 2025-06-09 17:17:34 -05:00
feature-callouts.js chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
flux-group-keys.js Merge pull request #6079 from influxdata/chore-js-refactor-footer-scripts-modules 2025-06-09 14:40:37 -05:00
flux-influxdb-versions.js fix(flux-influxdb-versions): Fixes modal trigger for flux-influxdb-versions and refactors the trigger to a component. 2025-03-27 20:10:13 -05:00
helpers.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
influxdb-url.js feat(sample-data): add new wind sample dataset (#6440) 2025-10-06 12:08:35 -06:00
influxdb-version-detector.ts fix(version-detector): centralize Grafana links and DRY up host examples (#6693) 2026-01-26 18:42:09 -06:00
jquery-3.5.0.min.js groundwork for influxdb url select 2020-04-16 09:59:35 -06:00
keybindings.js Merge pull request #6079 from influxdata/chore-js-refactor-footer-scripts-modules 2025-06-09 14:40:37 -05:00
list-filters.js chore(js): Cleanup and add note about list-filters 2025-06-09 17:45:36 -05:00
main.js Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
modals.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
notifications.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
page-context.ts Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
page-feedback.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
release-toc.js chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
search-button.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
sidebar-toggle.js chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
tabbed-content.js Initial Kapa.ai chat integration. 2025-02-03 08:31:55 -06:00
theme-switch.js Merge pull request #6079 from influxdata/chore-js-refactor-footer-scripts-modules 2025-06-09 14:40:37 -05:00
theme.js hotfix: minor change to invalidate JS 2025-09-02 14:17:41 -05:00
v3-wayfinding.js chore(js): Extract Hugo params imports to single-purpose modules, fix environment-specific Hugo configs, use Hugo environments instead of specifying the config file, configure source maps and ESM for development and testing 2025-06-09 16:46:26 -05:00
version-selector.js chore(js): Format fixes 2025-06-09 14:42:38 -05:00