Repository navigation
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #498
Changelog category (leave one):
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:
guides/x.mdis/docs/guides/x, and anindex.mdis its folder. This is the rule the site's ownenglishRouteindocs/scripts/prepare-content.mjsuses.help.getgives a section the heading slug that GitHub's renderer gives it, and the site names headings withgithub-slugger. The docs' own#anchorlinks 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
frontend/src/views/Help.tsx), its page renderer (views/help/HelpText.tsx), the dashboard'shelp.getclient (api/help.ts), thehelpview andopenDocsPage, and the link-drawing branch of the answer renderer'sinline, which only the Help view used./helpis no longer a dashboard page segment, so a bookmarked/helpgets the router's 404.help.searchandhelp.get, which the assistant reads the docs with, and the server-side citation check.Compatibility, rollout and rollback
help.getis no longer called by the dashboard: the reach manifest is regenerated, andhelp.getis listed inNOT_IN_DASHBOARDwithhelp.search.Tests
npx tsc -b,npm --prefix frontend run buildandnpm --prefix frontend run budgetpassed.npx vitest run src/views/assistant src/layout src/lib/docsLinks.test.ts src/App.assistantDock.test.tsxpassed 505 tests. A newdocsLinks.test.tschecks the page-to-URL rule; the citation, setup-link and phone-sheet tests assert the site URL and the new-tab link.mainunder 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.pypassed 342 tests.make formatandmake lintpassed.make typecheckfails only onserver/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
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).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, withdocsUrl()mapping build paths likeguides/x.md(and section anchors) to the site’s routes.The change removes the lazy Help view,
help.getclient,openDocsPage, internal doc link rendering inAnswerText, andhelpas a dashboard route/view.help.getremains available for the assistant/citation check but is dropped from the dashboard reach manifest; bookmarked/helpURLs 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.