docs(chat): the twelve chat pages teach through their examples; walkthroughs retired - #1038
Merged
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…l; the layout shell; auto-dock Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… name, theme tokens, eyebrow text Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…, one sentence after the config block Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…template branch, no card chrome from chat-trace Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… aviation tool list in the demo sidebar Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…, a compilable stat_card fence Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ng rule, the demo's double submit named Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ive path, abridged fence labeled, root required Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…taches on every run Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… built-in list, both root tokens Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…put row, a2ui presets Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…sAssetPaths returns Every mapped page now includes its example, so the allow-list and its case go. The retirement guard gains two cases: no cockpit/**/docs/guide.md exists, and no capability descriptor declares docsAssetPaths. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ifier rule, one sentence after each block Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Contributor
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.
PR 8 of the example-first docs program, and the last (plan:
docs/superpowers/plans/2026-09-06-docs-example-first-products.md, PR 8 table; spec:docs/superpowers/specs/2026-09-05-docs-example-first-content-design.md).Pages rewritten (12):
chat/components/{chat-debug,chat-input,chat-interrupt-panel,chat-subagent-card,chat-tool-calls,chat-trace},chat/concepts/message-model,chat/guides/{generative-ui,client-tools,theming,thread-routing},chat/a2ui/overview. Each teaches through its running example with sequential<ExampleCode>blocks; every page went through an implementer, a factual review againstlibs/chatandlibs/langgraphsource, a fix pass, and a final cross-page read.Walkthroughs deleted: the last twelve
cockpit/**/docs/guide.mdfiles (eleven undercockpit/chat/*, one undercockpit/langgraph/client-tools). With them gone,PENDING_PAGESand its case leavedocs-example-code.spec.ts: every mapped page must now include its example.cockpit-retirement.spec.tsgains two cases: nocockpit/**/docs/guide.mdexists, and no capability descriptor declaresdocsAssetPaths.Example sources: comment-only region markers in the twelve capabilities' graphs and components (inline-template markers included; each example project builds). Three demo fixes where the running demo contradicted its own graph: the tool-calls sidebar listed
search/calculator/weatherwhile the graph binds the aviation tools; the subagents graph comment claimed atools:<call_id>namespace (the uuid is a checkpoint id, unrelated to the tool-call id);activeThreadIdStateis exported so the thread-routing guide's shell fences resolve.Facts corrected on the pages (verified against source):
<chat-trace>has no status icons, no label fallback, and no collapse-on-done rule (an untouched row falls back todefaultExpanded); neither<chat-trace>nor<chat-subagent-card>draws card chrome; chat theme tokens are injected on:rootinside@layer tplane-chat, not on:host, and@threadplane/chat/chat.cssdoes not exist;provideChathas no theme option; LangGraph always deliversMessage.contentas a string; classification is pending only for empty content or a leading-that may still become the A2UI sentinel;flush()on LangGraph is onethreads.updateStatecall while the AG-UI adapter's is a no-op;bind_client_toolsreadsstate["client_tools"]andag-ui-langgraphneeds a checkpointer while the LangGraph-served twins compile without one; the a2ui "data model does not update live" limitation is obsolete; A2UI progressive rendering is per component through$bindState, not through the deadA2uiSlotDirective.Follow-ups, not in this PR: the messages demo double-submits (its
(submitted)handler resubmits; the page names it as a defect); the threads demo renders two thread lists on desktop because<chat>mounts its own sidebar list when[threads]is bound; the chat-debug demo has no composer;unarchiveis wired but unreachable in the threads demo;libs/chat/package.jsonexports a./chat.cssthatng-package.jsoncannot find;--tplane-chat-radius-inputis declared but read by no chat component;A2uiSlotDirectiveis dead code;markedinlibs/cockpit-shell/package.jsonis unused.Verification:
nx run-many -t test,lintgreen (website, cockpit-registry, cockpit-shell, scripts); both generators no drift; prod build renders all twelve pages withdata-example-filecounts equal to tag counts;nx e2e website124 passed.🤖 Generated with Claude Code