Repository navigation
fix(showcase): make full-page chats fill the page in every integration - #8325
Merged
tylerslaton merged 2 commits intoNov 11, 2026
Merged
tylerslaton merged 2 commits into
tylerslaton merged 2 commits into
Conversation
Contributor
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords: 4
Please check the settings in the CodeRabbit UI or the
|
Contributor
Production Digest-Pinning AuditAll 44 services digest-pinned. Run 2026-11-10 19:50:35 PST — 0 finding(s). |
14 integrations had drifted copies of src/app/globals.css. In 8 of them
(mastra, crewai-crews, crewai-conversational-flows, langroid, strands,
strands-typescript, ms-agent-python, ms-agent-harness-dotnet) <html> and
<body> had no height, only `body { min-height: 100vh }`. A full-page
<CopilotChat> then shrank to the height of its welcome screen and sat at
the top of the page in the agentic-chat and beautiful-chat demos, and
the readonly-state-agent-context page scrolled as a whole.
Copy langgraph-python's globals.css over all 14 so every integration
renders the shared demo pages the same way. This also restores the theme
tokens that headless-complete uses, and lets <CopilotSidebar /> push the
page instead of covering it in ag2, agno, llamaindex and spring-ai.
create-integration wrote the drifted stylesheet, so it now copies
langgraph-python's file. A new test fails CI when any integration's
globals.css differs from langgraph-python's.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The root stylesheet sets `overflow: hidden` on <html> and <body>, so a demo page can't rely on the document to scroll. Three shared demo pages did: their root was `min-h-screen`, which grows with the content instead of scrolling it. The bottom of the page was cut off and couldn't be reached: - readonly-state-agent-context: the Published Context card, at any viewport under 1190px tall - shared-state-read-write: the bottom cards, under 786px - shared-state-read: the end of the recipe, under 874px This already happened in the 14 integrations on the canonical stylesheet, and the previous commit would have brought it to the other 8. Give each page root `h-full overflow-y-auto` so the page scrolls inside itself. The three files stay byte-identical across the 22 integrations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tylerslaton
force-pushed
the
tylerslaton/docs-stack-4-demo-heights
branch
from
November 11, 2026 03:48
fea2078 to
887afc4
Compare
tylerslaton
merged commit Nov 11, 2026
d2ed87c
into
tylerslaton/docs-shell-docs-v2
50 of 66 checks passed
This was referenced Nov 11, 2026
tylerslaton
added a commit
that referenced
this pull request
Nov 12, 2026
One PR for the docs rebuild. It replaces #8214 and the `tylerslaton/docs-shell-docs-v2` stack (#8320, #8321, #8322, #8325), which had drifted onto two branches with different work on each. Both old branches stay on origin, unchanged, as archives. ## What does this PR do? It replaces `showcase/shell-docs` with the Fumadocs rebuild of docs.copilotkit.ai, in place. There is no second docs app. The pages stay at `showcase/shell-docs/src/content`, so git records them as edits to the files that were already there. The plan is to merge this into `main` and then rebase `2.0.0` on top. ### How this branch was put together - **Base:** today's `main` (`4d647b76e8`). - **#8214's 64 commits**, unchanged. `main`'s 8 newer commits don't touch the docs or the showcase, so they replayed cleanly. - **The stack's 19 commits** from `docs-shell-docs-v2`, on top. Where they met work that #8214 had and the stack didn't, the conflicts were resolved by hand, and each commit message says what changed: - **Model pins.** The stack's setup snippets were written before #8214 pinned `gpt-6-luna`. A new last commit pins the 32 setup files the same way the rest of the docs and each integration's own agent code do. - **Angular.** `main`'s native generative UI guide (`/angular/guides/generative-ui-components`) moves to `/angular/generative-ui/native`, like the other Angular guides. It gets a redirect and a row in the Angular generative UI overview. - **Dark mode.** The `globals.css` sync and the scroll fix are applied on top of `main`'s dark mode. They also cover `openai-agents-python`, which `main` added since. - **Checked:** every commit of both old branches has a counterpart here, and a file-by-file three-way check found no content from either branch missing. The few differences are newer `main` work (for example `setup-dotnet` v6.1.0), #8214's adaptations to `main`, and the model pins. ### What's in it - **The new app.** It has the Spacious layout and brand theme, and a framework and frontend picker that opens the chosen frontend's page. Each frontend gets its own sidebar (Slack, Teams, Angular, Vue, React Native). - Ask CopilotKit runs in the sidebar and at `/ask`. - It adds the standard catalog Story pages and an examples playground. That playground loads its catalog, generated from the showcase data, only on `/examples`. - It also brings Orama search that keeps the reader's scope, an MCP server, llms.txt and Markdown routes (with the demo and setup code inlined), telemetry, and the legacy redirect tables. - **Pages.** `main`'s pages change in only two mechanical ways: page imports are dropped, and pages with sub-pages move to `X/index.mdx` (13 renames). On top of that, the docs review's fixes are a separate diff, as are a round of accuracy and link fixes from code review. - **`public/`.** It keeps every file it had on `main`. Only new icons and logos are added. - **Code that read the old app's files.** The showcase shell's search index keeps the old sidebar-reachability rules in `showcase/scripts/lib/docs-searchable`, with the old app's tests ported next to them. The shell image and the workflows, tests, skills and docs that named old paths are updated too. ### From the stack (#8320–#8325) - **One page per feature.** Each framework's copies of the shared pages fold into the shared pages, which gate sections on the showcase's supported features. The setup steps the copies carried move into each integration's `docs/setup/*.mdx`. Stale URLs redirect, and a folded page a framework can't show sends readers to that framework's overview. - **Frontends by one rule.** Each frontend gets the pages it has, and each page is listed and indexed once. The showcase decides a frontend's own feature pages too. - **Angular and React Native at React's URLs.** Angular's eight combined guides become pages at React's slugs, with one-hop redirects from `/angular/guides/*`. React Native gets 19 feature pages. The showcase search reads both from their React slugs. The app frontends' "Using these docs" pages and Angular's feature catalog page are gone. - **Showcase demos.** Full-page chats fill the page in every integration. Every integration's `globals.css` is now langgraph-python's, `create-integration` copies it, and a test fails on drift. The three tall demo pages scroll inside the page. - **CrewAI docs links** point at the folded pages, and their test finds pages in the `(shared)` route group. ### Review fixes (two code reviews) - **Security:** Ask's API route now accepts only `info`, `agent/run`, `agent/connect` and `agent/stop`, so the thread list, read and wipe calls are rejected. - The CopilotKit packages are on 1.84.1, which has the runtime's thread-owner check and the scroll-to-bottom fix (#8159), so no patch is needed. - Every run is capped: a limit across all readers on top of the per-IP one, size caps on context, state, tools and the whole request, the docs' own tools only, and 10 steps. - **Routing:** - Legacy `/docs*` URLs redirect as on `main`, and unknown URLs answer 404. - Framework landings render instead of redirecting, `/intelligence` is a 301 again, and Google Antigravity is back. - Each framework's docs mode now comes from its manifest. - **Deploy:** - The docs deploy check now verifies the runtime config the new app serves (`/api/telemetry/config`, with a real PostHog key required in production). The old app's server-written Clerk config, which the new app doesn't have, is no longer required. - The Docker image smoke-tests itself before it is pushed and runs as `node`. - Hosts (sign-up, Cloud, showcase, demos) come from the environment per request, so staging no longer links to production. - **CI:** `test_unit-shell-docs` builds and serves the app, then runs the redirect check and a request to every page. The telemetry emitter now finds the new app's `trackEvent` calls. ### Carried over from `main` The rebuild uses `main`'s shared theme bridge from `showcase/integrations/_shared/ts/theme.ts`. Where `main` had changed the old app or the same pages, its changes are carried into the rebuild in their own commits: - **Models:** `main` moved every OpenAI sample to `gpt-6-luna` and made it the only OpenAI model the allowlist ships. This branch's samples follow, with `main`'s `reasoning_effort="none"` call shapes. - **Generative UI:** `main`'s Angular, Vue and React Native additions to the component guides, the React Native guide and its reference are kept. Its two docs-pinning tests (`react-native-generative-ui-docs`, `vue-generative-ui-docs`) now run in the showcase-scripts suite, under `__tests__/docs-content`. - **Telemetry:** `main`'s personless, bot-filterable `docs_pageview` and `seo_redirect` (cookie `ph_docs_id`) are ported into `src/lib/telemetry/proxy.ts`. - **llms.txt:** `main`'s OpenBot section is in the new index. - **Antigravity:** the real Antigravity mark from `main` is used. ## What merging does - **Deploys:** `showcase_build` redeploys shell-docs, so docs.staging.copilotkit.ai serves the new app. It also redeploys shell, dojo, dashboard, the harness and every integration whose files changed. Production changes only on promote. - **Telemetry:** the registry update after merge will drop 9 docs events the new app doesn't send. Examples: `markdown_copied`, `open_in_llm_clicked`, `docs.framework_selected`, `docs.frontend_selected`. ## Not in this PR - A spend-capped OpenAI key and a shared rate-limit store for Ask; the code limits are per instance. Also confirm `OPENAI_API_KEY` is set on the Railway docs service. - Moving the live layout out of `src/proto`. - Held back: the Strands `threads-import` note on `a2uiGenerationToolNames` waits for #8137. - Two showcase integrations still link to docs pages that no longer exist in `docs-links.json`: spring-ai (2 links) and built-in-agent (1). No test checks them. ## Verification Run on this branch: - **shell-docs** (the `test_unit-shell-docs` steps): - `showcase-data`, `tsc`, oxlint, the LFS fetch and `next build` pass. - All 616 pages compile. - Against `next start`: `check-redirects` passes 1034/1034, and `check-live-pages` 506/506. - **Repo suites:** - showcase-scripts 3464/3464, including the `globals.css` drift guard across all 23 integrations and `main`'s two generative UI docs tests. - The CrewAI docs-link tests pass for both CrewAI integrations. - The packaged-skill drift checks pass 8/8. - The deprecated-import ratchet passes 8/8. Its baseline is regenerated for the moved pages and shrinks from 81 to 74 entries, with nothing new taught. - The model-name and Intelligence env-name checks are clean. - **Nothing lost:** - `git range-diff` pairs all 64 of #8214's commits unchanged. 72 of the stack branch's 75 have a counterpart. The other three are a `setup-dotnet` comment fix (superseded by `main`'s v6.1.0 pin), its `gpt-6-luna` allowlist commit (covered by #8214's own), and the scroll fix, rewritten here on top of dark mode. - A three-way check of every file either branch changed found nothing missing. The differences that remain are newer `main` work, the folded pages, and the model pins. ## Related PRs and Issues - Replaces #8214 (and #8160 before it), and the stack #8320, #8321, #8322 and #8325, which merged into `tylerslaton/docs-shell-docs-v2`. - Supersedes #8162 (its Dockerfile and LFS fetch are here). ## Checklist - [x] I have read the [Contribution Guide](https://github.com/copilotkit/copilotkit/blob/master/CONTRIBUTING.md) - [x] If the PR changes or adds functionality, I have updated the relevant documentation - [x] If the PR contains a breaking change, the title has `!` (for example `feat(react-core)!: ...`) and the description has a `BREAKING CHANGE:` line with migration steps. See [VERSIONING.md](https://github.com/CopilotKit/CopilotKit/blob/main/VERSIONING.md) - [x] "Allow edits by maintainers" is checked (lets us help iterate on your PR directly — faster turnaround for everyone) BREAKING CHANGE: `showcase/shell-docs` is a new app. Its scripts, source layout and dev server follow the Fumadocs rebuild; run it with `npm install && npm run dev` in `showcase/shell-docs` (see its README). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Part 4 of 4 in a stack into
tylerslaton/docs-shell-docs-v2. Merge the stack together.Why
In 8 integrations the full-page chat demos sit squashed at the top of the page. The chat is only as tall as its welcome screen, and a grey page shows under it (Mastra's "Pre-Built: CopilotChat" is one example). The demo pages are the same in every integration, so the cause is the root stylesheet.
14 integrations had drifted copies of
src/app/globals.css. In 8 of them (mastra, crewai-crews, crewai-conversational-flows, langroid, strands, strands-typescript, ms-agent-python, ms-agent-harness-dotnet)<html>and<body>have no height, onlybody { min-height: 100vh }.<CopilotChat>ish-full, so it falls back to the height of its content.The drift came from
create-integration, which wrote that short stylesheet into every new integration.What changes
globals.cssfiles are now copies of langgraph-python's. The other 8 integrations already used it. As a result:agentic-chatandbeautiful-chatfill the page and center their welcome screen.headless-completegets its theme tokens back (muted pills, borders, send button) in the integrations that had none.<CopilotSidebar />pushes the page instead of covering it. Theirbodywaswidth: 100%.overflow: hiddenon<html>and<body>, but three shared demo pages had amin-h-screenroot and relied on the document to scroll. On the canonical stylesheet their bottom was cut off and couldn't be reached. The first commit would have spread that to the other 8 integrations. Their roots are nowh-full overflow-y-auto, so each page scrolls inside itself:readonly-state-agent-context: the Published Context card, below 1190px of viewport heightshared-state-read-write: the bottom cards, below 786pxshared-state-read: the end of the recipe, below 874pxcreate-integrationcopies langgraph-python'sglobals.cssand no longer has its own version.integration-globals-css-drift.test.tsfails when any integration'sglobals.cssdiffers from langgraph-python's.Checks
agentic-chat(222px) andbeautiful-chat(326px), and only in the 8 integrations listed above.agentic-chatis now 900px andbeautiful-chat806px, the same as langgraph-python. I compared screenshots ofheadless-completeandprebuilt-sidebaragainst production.create-integration.test.tspasses (54/54 with the drift test).Not run
bin/showcase test <slug>:<feature> --d6 --direct). The run needs a full monorepo install to build the Angular and Vue hosts. I also hit a separate harness bug on Node 24:stageSharedModulescallsfs.rmSyncon a symlink to a directory and throws "Path is a directory". This PR only changes CSS and three page roots, so I checked it in a real browser instead (see Checks).🤖 Generated with Claude Code