Commit 6b60889
committed
docs(showcase/shell-docs): HITL as proper sub-section + better titles + gate residual LangGraph code
Three follow-ups to the previous HITL nav restoration after visual review:
1. Make Human-in-the-Loop a proper collapsible subsection (matches the
prebuilt-components / custom-look-and-feel pattern):
- Move human-in-the-loop.mdx -> human-in-the-loop/index.mdx
- Add human-in-the-loop/meta.json with title + page order
- Root meta.json: collapse the three flat entries to a single
'human-in-the-loop' line (the section's own meta.json drives
children)
2. Rename useInterrupt page title from 'useInterrupt' (a React hook
name, framework-implementation-leaky) to 'Pausing the agent for
input' — describes the action, neutral across native and
promise-based patterns. Description tightened to match.
3. Gate the residual 'Key props', 'Multiple interrupts', and 'Preprocess
with handler' sections in useInterrupt.mdx behind <WhenFrameworkHas
equals="native">. Those code blocks reference useInterrupt({...})
directly — they only make sense on LangGraph. On promise-based
frameworks they would have rendered alongside the gated promise
intro, leaving readers with mixed-framework code on the same page.
Note: 'Missing snippet' yellow boxes still render on the hub page for
12 frameworks where hitl-in-chat cell is unshipped (ms-agent-{python,
dotnet}, agno, google-adk, pydantic-ai, llamaindex, claude-sdk-{python,
typescript}, langgraph-{typescript,fastapi}, langroid, spring-ai). That's
the dashboard's D-unshipped class — engineering work tracked in the
post-PR snippet-coverage audit Notion doc, not a docs-side gap.1 parent 59dea87 commit 6b60889
5 files changed
Lines changed: 14 additions & 7 deletions
File tree
- showcase/shell-docs/src/content/docs
- human-in-the-loop
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
0 commit comments