Skip to content

docs(gtm): refresh the nav cta_id register and make it self-checking - #1093

Merged
blove merged 1 commit into
mainfrom
blove/nav-taxonomy-refresh
Sep 10, 2026
Merged

docs(gtm): refresh the nav cta_id register and make it self-checking#1093
blove merged 1 commit into
mainfrom
blove/nav-taxonomy-refresh

Conversation

@blove

@blove blove commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the navbar rebuild (#1083). The nav's analytics ids changed; the register that documents them did not.

What was wrong

docs/gtm/taxonomy.md is the register analytics work reads to know which cta_ids exist. Its Nav section said:

nav_get_started  nav_docs  nav_pricing  nav_github  nav_npm  nav_cockpit

Three of those — nav_get_started, nav_npm, nav_cockpitwere already not emitted before the rebuild. This section had drifted silently some time ago. The rebuild then replaced almost all of the rest.

What it says now

The real set: twenty panel destinations plus the bar's own ids, grouped by panel, with a note that every one also exists with a mobile_nav_ prefixtrackNavItem applies the surface, so the mobile drill-in emits the same list rather than a parallel one that could drift.

Retirements recorded following the file's existing convention:

  • nav_demo_langgraph / nav_demo_ag_uinav_docs_demo_langgraph / nav_docs_demo_ag_ui. The hand-rolled Demo ▾ dropdown was absorbed into the Docs panel.
  • nav_docsnav_docs_documentation
  • nav_pilot_to_prodnav_solutions_pilot_to_prod
  • nav_get_started, nav_npm, nav_cockpit — noted as retired at an unknown earlier date rather than quietly deleted, in case a dashboard still filters them.

The part that matters

The register is now checked, not trusted. nav-config.spec.ts asserts the taxonomy mentions every id the nav emits. The ids are data in nav-config.ts, so this is verifiable — and adding a nav destination without documenting it now fails a test instead of drifting for months.

Proven non-vacuous — removing one id from the doc:

× documents every nav cta_id in the GTM taxonomy
  AssertionError: expected [ 'nav_solutions_compliance' ] to deeply equal []

Only the nav_ surface is asserted; mobile_nav_ is the same list with a different prefix, and the doc says so once rather than duplicating twenty entries.

Scope

No dashboards-as-code needed changing — tools/posthog/dashboards and tools/posthog/insights contain no nav_ ids at all, and nothing in the repo referenced the retired ones. Any consumer is a PostHog-UI dashboard or saved query, which is outside version control; the retirement list above is what someone auditing those needs.

nx build exit 0 · 1457 unit tests pass · nx lint 0 errors.

🤖 Generated with Claude Code

The taxonomy's Nav section documented `nav_get_started`, `nav_docs`,
`nav_pricing`, `nav_github`, `nav_npm` and `nav_cockpit`. Three of those were
already not emitted before the navbar rebuild, so this register had drifted
silently — and the rebuild replaced almost all of the rest.

Records the real set (twenty panel ids plus the bar's own), notes that every
one also exists with a `mobile_nav_` prefix because `trackNavItem` applies the
surface, and lists what retired: `nav_demo_langgraph` / `nav_demo_ag_ui` are
now `nav_docs_demo_*` since the Demo dropdown was absorbed into the Docs panel.

More usefully, `nav-config.spec.ts` now asserts the doc mentions every id the
nav emits. The ids are data, so the register can be checked rather than
trusted. Removing one from the doc fails the test naming it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadplane Ready Ready Preview Sep 10, 2026 4:54am UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove enabled auto-merge (squash) September 10, 2026 04:59
@blove
blove merged commit 71789ff into main Sep 10, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant