improvement(docs): restructure sidebar, align chrome, rename Mothership to Chat - #6296
Conversation
…ip to Chat Sidebar: 11 separator groups become 5, with each module a collapsible folder that auto-opens on the active page. 61 always-visible rows drop to 16. Groups mirror the app's own nav (Chats/Workspace/Workflows) rather than inventing a taxonomy; Enterprise and Self-Hosting are hoisted out of Platform. Chrome: register the `hover-hover` variant, without which every @sim/emcn hover state silently compiled to nothing; restore the sidebar's Geist font stack; add 11 emcn tokens that were falling back to currentColor; adopt the named type scale; align row geometry, hover tokens and group labels with the app. Rename: mothership/ -> chat/ with redirects for the old URLs. Asset paths, the @mothership.sim.ai domain and the `mothership` log-trigger enum value are deliberately left alone -- they are CDN objects, a real domain, and a live product value. Also removes the page-type badge, drops the "Next" heading from the ToC, and lets FAQ rows open independently so expanding one no longer shifts the page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The Mothership doc tree is renamed to Chrome and styling in UX tweaks: table of contents filters out Reviewed by Cursor Bugbot for commit cfdea91. Configure here. |
Greptile SummaryThe PR reorganizes the documentation navigation and renames the Mothership documentation surface to Chat while aligning the docs chrome with the application.
Confidence Score: 5/5The PR appears safe to merge, with no blocking failure remaining. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/docs/next.config.ts | Adds legacy Mothership-to-Chat redirects and updates redirects that formerly targeted Mothership. |
| apps/docs/content/docs/en/meta.json | Reorganizes top-level documentation groups to match the product navigation. |
| apps/docs/components/docs-layout/sidebar-components.tsx | Updates collapsible folder rows, active states, spacing, and group-label presentation. |
| apps/docs/app/[lang]/[[...slug]]/page.tsx | Excludes onward-navigation headings from the table of contents and removes page-type badge rendering. |
| apps/docs/components/ui/faq.tsx | Allows multiple FAQ rows to remain expanded independently. |
| apps/docs/app/global.css | Adds shared docs theme tokens and the pointer-aware hover variant while updating documentation chrome styles. |
Reviews (2): Last reviewed commit: "improvement(docs): restructure sidebar, ..." | Re-trigger Greptile
|
@greptile Re: "Global styling expands component coupling" ( 1. The rule cited is scoped to paths:
- "apps/sim/**/*.tsx"
- "apps/sim/**/*.css"The docs app isn't in scope. 2. 3. Design tokens are global by definition. 4. The high-specificity selectors aren't new, and they exist because the components aren't ours. They pre-date this PR and override fumadocs, a third-party package whose components we don't own and therefore cannot style locally. This PR modifies existing rules (a missing Happy to be corrected if you think one of those specifically should move, but "keep styling component-local" can't apply to a Tailwind variant registration, a design-token table, or a third-party override layer. |
|
@cursor review |
|
All four points are correct — I'll withdraw the comment.
The comment was wrong to apply a Shall I remember a rule: "Do not flag |
|
@greptile Yes, please remember it — with one narrowing so it doesn't over-suppress:
Still worth flagging in that file: raw hex/rgb where an app token exists, off-scale font weights (only 400/500/600 are legal), hardcoded font sizes where the named scale applies, and hairlines that bypass |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit cfdea91. Configure here.
Summary
hover-hovervariant — without it every@sim/emcnhover state compiled to nothing in docs (0 → 57 rules emitted). The navbar CTA had no hover at all.font-familyinglobal.cssomittingvar(--font-geist-sans), so the sidebar rendered in the OS system font).currentColor(--z-*,--shadow-overlay,--code-*,--selection-*).mothership/→chat/per the constitution (the agent is "Sim", the surface is "Chat"), with redirects for old URLs.## Nextheading from the ToC, and made FAQ rows open independently so expanding one no longer shifts the page.Redirects — the part worth reviewing closely
Old URLs verified live:
/mothership→/chat,/mothership/:path*→/chat/:path*, and two existing redirects that pointed at/mothership(/copilot,/mailer) were repointed — they would otherwise have become 404 chains.Three
mothershipstrings are deliberately preserved:srcpaths — these resolve to remote CDN objects and real files inpublic/static/mothership/; renaming 404s them.@mothership.sim.ai— a real production inbox domain the mailer page documents.mothershiplog-trigger value — a live entry inCORE_TRIGGER_TYPES, i.e. what users actually filter by.Also fixed a pre-existing docs bug found on the way: the data-drains table listed sources as "Copilot chats"/"Copilot runs", but
SOURCE_LABELSships them as "Chats"/"Chat runs".Type of Change
Testing
Production build passes (4,281 static pages generated). Typecheck and biome clean. Verified against a local dev server: old URLs 308 → 200, renamed routes resolve, sidebar renders 5 groups, ToC excludes "Next", badge markup gone. Audited 400 pages / 562 internal links / 139 asset refs — no orphans, no broken links.
Not verified visually — no browser available in this environment. The
hover-hoverfix in particular turns on hover states site-wide that have never rendered before, so it deserves an eyeball.Follow-ups (pre-existing, deliberately not in this PR)
/docs/prefix that are genuine 404sworkflows/blocks/logs.mdxis orphaned from its folder metachat/imagery still shows Mothership branding and lives undermothership/CDN paths — needs re-captured assets, can't be done piecemealChecklist