Skip to content

Commit 57221e2

Browse files
tylerslatonclaude
andcommitted
fix(showcase/scripts): correct stale 'not yet registered' notes in component-mapping
Five component-mapping entries (A2UI, MigrateTo1100, MigrateTo182, MigrateToV2, SelfHosting) carried `notes: '...needs shim stub'` while all five are already registered as `stubWithPartial(...)` entries in shell-docs/src/lib/mdx-registry.tsx (lines 472, 477-480). The PydanticAIIcon entry also claimed it was an "emoji shim (🐍)" when mdx-registry.tsx:527 resolves it to the real PydanticAiIcon SVG. The stale notes would mislead anyone using component-mapping.ts as a TODO list — they'd duplicate already-completed shim work or assume PydanticAIIcon was a placeholder when the real icon is shipping. This is a comments-only correction; the `kind` and `target` fields remain unchanged so the mapping's behavior is identical. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7e1ec07 commit 57221e2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

showcase/scripts/lib/component-mapping.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const COMPONENT_MAPPING: ComponentMapping[] = [
2020
v1Name: "A2UI",
2121
kind: "shim",
2222
notes:
23-
"MDX snippet passthrough (imports @/snippets/shared/generative-ui/a2ui.mdx). Not yet in mdx-registry; needs shim stub.",
23+
"MDX snippet passthrough (imports @/snippets/shared/generative-ui/a2ui.mdx). Registered in mdx-registry.tsx as stubWithPartial; STUB_PARTIAL_MAP routes it to shared/generative-ui/a2ui.mdx.",
2424
},
2525
{
2626
v1Name: "AGUI",
@@ -309,19 +309,19 @@ export const COMPONENT_MAPPING: ComponentMapping[] = [
309309
v1Name: "MigrateTo1100",
310310
kind: "shim",
311311
notes:
312-
"v1-only migration guide snippet (imports @/snippets/shared/troubleshooting/migrate-to-1.10.X.mdx). Not in mdx-registry; needs shim stub.",
312+
"v1-only migration guide snippet. Registered in mdx-registry.tsx via STUB_PARTIAL_MAP → shared/troubleshooting/migrate-to-1.10.X.mdx.",
313313
},
314314
{
315315
v1Name: "MigrateTo182",
316316
kind: "shim",
317317
notes:
318-
"v1-only migration guide snippet (imports @/snippets/shared/troubleshooting/migrate-to-1.8.2.mdx). Not in mdx-registry; needs shim stub.",
318+
"v1-only migration guide snippet. Registered in mdx-registry.tsx via STUB_PARTIAL_MAP → shared/troubleshooting/migrate-to-1.8.2.mdx.",
319319
},
320320
{
321321
v1Name: "MigrateToV2",
322322
kind: "shim",
323323
notes:
324-
"v1-only migration guide snippet (imports @/snippets/shared/troubleshooting/migrate-to-v2.mdx). Not in mdx-registry; needs shim stub. Note: mdx-registry has MigrateToV and MigrateTo but not the full MigrateToV2 name.",
324+
"v1-only migration guide snippet. Registered in mdx-registry.tsx via STUB_PARTIAL_MAP → shared/troubleshooting/migrate-to-v2.mdx.",
325325
},
326326
{
327327
v1Name: "MonitorIcon",
@@ -391,7 +391,7 @@ export const COMPONENT_MAPPING: ComponentMapping[] = [
391391
kind: "use-existing",
392392
target: "PydanticAIIcon",
393393
notes:
394-
"Registered in mdx-registry.tsx as emoji shim (🐍). Imported from @/lib/icons/custom-icons in v1 docs.",
394+
"Registered in mdx-registry.tsx as the real PydanticAiIcon SVG component (not an emoji shim). Imported from @/lib/icons/custom-icons in v1 docs.",
395395
},
396396
{
397397
v1Name: "RepeatIcon",
@@ -418,7 +418,7 @@ export const COMPONENT_MAPPING: ComponentMapping[] = [
418418
v1Name: "SelfHosting",
419419
kind: "shim",
420420
notes:
421-
"v1 snippet passthrough (imports @/snippets/shared/premium/self-hosting.mdx). Not in mdx-registry; needs shim stub.",
421+
"v1 snippet passthrough. Registered in mdx-registry.tsx via STUB_PARTIAL_MAP → shared/premium/self-hosting.mdx.",
422422
},
423423
{
424424
v1Name: "SelfHostingCopilotRuntimeConfigureCopilotKitProvider",

0 commit comments

Comments
 (0)