Skip to content

The dashboard links to the docs site instead of rendering the docs - #2082

Open
zlareb1 wants to merge 1 commit into
mainfrom
fix/dashboard-docs-on-site
Open

zlareb1 wants to merge 1 commit into
mainfrom
fix/dashboard-docs-on-site

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Related: #498

Changelog category (leave one):

  • Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

Documentation in the dashboard sidebar, a verified help citation in an assistant answer, and the assistant's setup link open the Loom docs site in a new tab, at the cited section. The dashboard no longer renders the docs itself.

Why

The docs have one home: the docs site. The dashboard also rendered them, on its own Help view at /help. That view was the target of the assistant's help citations, and the sidebar's Documentation item opened it too. So the docs had two readers to keep in step: the site's renderer and a smaller Markdown renderer in the dashboard.

The citation check still runs against the docs the build ships, so a citation is only linked when the page and section exist. The link then goes to that page on the site:

  • Path. guides/x.md is /docs/guides/x, and an index.md is its folder. This is the rule the site's own englishRoute in docs/scripts/prepare-content.mjs uses.
  • Anchor. help.get gives a section the heading slug that GitHub's renderer gives it, and the site names headings with github-slugger. The docs' own #anchor links already depend on the two agreeing (test_doc_links.py).

Alternative kept out: leave the Help view for installs that cannot reach the site. It keeps a second docs renderer for one case, and the dashboard already sends readers to the site for docs from its sign-in page (DOCS_QUICKSTART_URL, DOCS_TOKENS_URL).

Scope and risk

  • Removed: the Help view (frontend/src/views/Help.tsx), its page renderer (views/help/HelpText.tsx), the dashboard's help.get client (api/help.ts), the help view and openDocsPage, and the link-drawing branch of the answer renderer's inline, which only the Help view used.
  • /help is no longer a dashboard page segment, so a bookmarked /help gets the router's 404.
  • Kept: help.search and help.get, which the assistant reads the docs with, and the server-side citation check.
  • The site shows the current docs, not the docs of the running build: a self-hosted install a release behind can land on a page that has moved on. The citation is still checked against the build's own docs before it is linked.

Compatibility, rollout and rollback

  • Wire: none. help.get is no longer called by the dashboard: the reach manifest is regenerated, and help.get is listed in NOT_IN_DASHBOARD with help.search.
  • Operator steps: none.
  • Rollback: a revert restores the view and the route; nothing is stored.

Tests

  • npx tsc -b, npm --prefix frontend run build and npm --prefix frontend run budget passed.
  • npx vitest run src/views/assistant src/layout src/lib/docsLinks.test.ts src/App.assistantDock.test.tsx passed 505 tests. A new docsLinks.test.ts checks the page-to-URL rule; the citation, setup-link and phone-sheet tests assert the site URL and the new-tab link.
  • The full frontend suite has 14 more failures in date and locale tests that this diff does not touch. They fail the same way on main under the local Node 25; CI runs Node 22.
  • pytest tests/unit/test_dashboard_routes.py tests/unit/test_doc_links.py tests/unit/test_public_copy.py passed 342 tests.
  • make format and make lint passed. make typecheck fails only on server/llm/vertex_auth.py, which this diff does not touch (missing library stubs in the local environment).

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. The type check, the build, the focused tests and the generated reach manifest checked it.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the reach manifest.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code


Note

Medium Risk
Removes a user-facing route and changes how assistant citations navigate (external site vs build-shipped pages), with a possible mismatch if a deployment’s docs lag the public site even when citations verify against the local build.

Overview
Documentation in the dashboard no longer uses an in-app Help view at /help. Sidebar, mobile “More,” assistant setup guidance, and verified help citations now open https://loom.clickhouse.com/docs in a new tab, with docsUrl() mapping build paths like guides/x.md (and section anchors) to the site’s routes.

The change removes the lazy Help view, help.get client, openDocsPage, internal doc link rendering in AnswerText, and help as a dashboard route/view. help.get remains available for the assistant/citation check but is dropped from the dashboard reach manifest; bookmarked /help URLs no longer resolve in the app.

Product copy and tests were updated so help sources are labeled “Docs page” and assert external links instead of in-app navigation.

Reviewed by Cursor Bugbot for commit b40fc39. Bugbot is set up for automated code reviews on this repo. Configure here.

Documentation in the sidebar, a verified help citation and the assistant's setup link open loom.clickhouse.com/docs in a new tab, at the cited section. The in-app Help view, its renderer and the help route are removed; help.search and help.get stay for the assistant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 3, 2026 11:51am UTC
loom-telemetry Ready Ready Preview Dec 3, 2026 11:51am UTC

Request Review

This branch has not been deployed

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