docs-v2/assets/js
Jason Stirnaman e1f83584e2
fix(influxdb3): backfill missing product URLs in localStorage (#6961)
* fix(influxdb3): backfill missing product URLs in localStorage

Returning visitors with stale localStorage (created before core/enterprise
products were added) had undefined URL values for new products. The
updateUrls() function then replaced Hugo-rendered hostnames like
localhost:8181 with the string "undefined" in api-endpoint blocks.

Fix by merging DEFAULT_STORAGE_URLS as fallbacks when reading from
localStorage, so new product keys are always present.

closes #6960

https://claude.ai/code/session_01GJZ2yMR5DBk1feqTD5LeHW

* test(influxdb3): add Cypress tests for localStorage URL backfill

Adds 2 E2E tests for the fix in #6960:

1. Stale localStorage (missing `core` key) should not cause "undefined"
   to appear in api-endpoint or code blocks on the plugins page.
2. Fresh localStorage should be initialized with all expected product
   URL keys (oss, cloud, core, enterprise, serverless, dedicated, clustered).

Run with:
  node cypress/support/run-e2e-specs.js --spec "cypress/e2e/influxdb-url.cy.js" --no-mapping

https://claude.ai/code/session_01GJZ2yMR5DBk1feqTD5LeHW

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-18 11:25:49 -05:00
..
components feat: add InfluxDB documentation MCP server integration (#6830) 2026-02-17 20:42:56 -06:00
services fix(influxdb3): backfill missing product URLs in localStorage (#6961) 2026-03-18 11:25:49 -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 feat: add InfluxDB documentation MCP server integration (#6830) 2026-02-17 20:42:56 -06:00
code-controls.js fix(ui): fix Ask AI code control and add e2e tests (#6955) 2026-03-16 21:05:47 -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