fix(registry): scope docs registry output under react framework path (1.0)#1658
fix(registry): scope docs registry output under react framework path (1.0)#1658junghyeonsu wants to merge 1 commit into
Conversation
Backport of #1591 (react portion) for DES-1932. The latest @seed-design/cli resolves snippets from `{baseUrl}/__registry__/{framework}/...`, but the 1.0 maintenance deploy (1-0.seed-design.pages.dev) still served the legacy flat layout `{baseUrl}/__registry__/{ui,lib,breeze}/...`, breaking `add-all --baseUrl`. - Re-path the generated registry under `react/` and add a top-level `__registry__/index.json` advertising the react framework. - Update generate-registry.ts to emit the framework-scoped layout. - Point the manual-installation consumers at the new react/ paths. lynx is intentionally excluded: this branch has no lynx components, and advertising it would make the CLI request a non-existent lynx/ registry. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Why
The latest
@seed-design/cliresolves snippets from{baseUrl}/__registry__/{framework}/...(introduced ondevby #1591 + Lynx work). The1.0maintenance deploy (1-0.seed-design.pages.dev) still served the legacy flat layout{baseUrl}/__registry__/{ui,lib,breeze}/..., so@seed-design/cli@latest add-all ... --baseUrl https://1-0.seed-design.pages.devbroke.Backport of #1591 (react portion only) for DES-1932. Companion to the 1.1 backport (#1657).
What
public/__registry__/{ui,lib,breeze}/...topublic/__registry__/react/...(pure move; component JSON content unchanged).public/__registry__/index.jsonadvertising thereactframework.docs/scripts/generate-registry.tsto emit the framework-scoped layout (so futurebun generate:registryreproduces it).manual-installation.tsx/breeze-manual-installation.tsxat the newreact/paths.Excluded (intentionally)
lynx/registry (404).packages/cli) — published frommain/dev, not from maintenance branches.generate-docs-index.ts(absent here),commands.mdx(its GitHub-raw example targets the sourcedocs/registry/which stays flat on this branch), and theblockregistry (absent here).Verification
react/json count == previous flat count (41 == 41); pure re-path, no content change.fetchAvailableRegistries→__registry__/react/index.json,fetchRegistry→__registry__/react/{id}/index.json, item →__registry__/react/{id}/{item}.json.https://1-0.seed-design.pages.dev/__registry__/react/index.jsonresolves.🤖 Generated with Claude Code