Repository navigation
feat: docsのui/をBlocks / Examplesの2分類にし、作例を/ui/examples/へ統合する - #660
Conversation
…ダイレクトする Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdQQUP5KUna8zNFJ6cbPuD
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (47)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughUI作例の分類先を ChangesUI Examples分類とURL
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Other Merge Risk: ⚪ Minimal · up to The Blocks and Examples migration is consistent across the supplied evidence, with no actionable merge-blocking issue identified. Merge after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The migration preserves production draft filtering and directs legacy links to the new example URLs. No security regression was established in the inspected paths, but deployment behavior and broader security coverage remain incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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 |
ddryo
left a comment
There was a problem hiding this comment.
Codex Review (by GPT-6)
Review baseline: 6b5d301
Summary
UIドキュメントをBlocks / Examplesの2分類に統合し、作例のURL・サイドバー・一覧Markdown・llms.txt・MCP検索をui/examples/へ揃える変更を確認しました。確認した差分と周辺コードにBlockingはありません(0件)。Examplesの説明文と意思決定の追記も、今回の分類方針と整合しています。
Validation
- サイトの
build-llms-txt.test.ts・build-ui-index-md.test.ts・sidebarPosts.test.tsを実行し、22件通過しました。 - MCPの
search.test.tsを実行し、25件通過しました。 - 公開6作例の移行先と日英のリダイレクト定義、一覧の分類、MCPの検索URLと
nextTool判定を確認しました。 - 本レビューでは本番ビルド・型検査・ブラウザ確認は再実行していません。PR記載のdraft Heroと開発時リダイレクトの競合は実機未確認で、旧
.md・OG画像URLの非維持は明示された対象外として扱いました。
Positives
実ページと競合する旧リダイレクトを取り除き、旧URLから新URLへの転送先を日英で揃えています。作例をget_componentへ誘導しない判定と、2分類の一覧・ナビゲーションの回帰テストも更新されています。
概要
公式サイト(
apps/site)のui/セクションを、3分類(Blocks / Block Examples / Components)から2分類(Blocks / Examples)へ変えます。作例ページのURLは/ui/examples/{slug}/(英語は/en/ui/examples/{slug}/)に揃えます。ページの中身は変えず、移動とリンク修正だけです。変更内容
content/{ja,en}/ui/components/*.mdx(9件)とblock-examples/*.mdx(4件)をexamples/へgit mv(draftも含む)。重複していたja/ui/components/_opt-in/_decorations.cssを削除し、Decorationsのimportをja/ui/_opt-in/へ向けた。/ui/examples/chat/へ。redirects.ts):/ui/examples/{banner,breadcrumb,card,dividerlabel,reel}/→/ui/components/*(実ページのURLと衝突するため)/ui/components/{同5件}/→/ui/examples/{同名}/、/ui/block-examples/chat/→/ui/examples/chat//ui/chat/→/ui/examples/chat/patterns/uiSidebarと/ui/・/en/ui/の一覧を「Blocks」「Examples」の2セクションに。.md・llms.txtの生成:buildUiIndexMdの見出しを## Blocks/## Examplesに、classifyのOptional判定をui/examples/に。getNextToolの判定をui/examples/に。docs-index.jsonのsourcePath6件(Chat / Card / Banner / Breadcrumb / DividerLabel / Reel)とmeta.tsを更新。docs/decisions.mdに決定を追記。documents/docs-md.md・.claude/commands/docs-update.md・LPテンプレのコメント内URLを追随。確認したこと
nr test・nr lint: 通過。nr build:siteの出力(ja/en両方):ui/examples/{slug}/index.htmlは実ページで、ui/examples/{slug}.mdも生成されている。ui/components/{banner,breadcrumb,card,dividerlabel,reel}/・ui/block-examples/chat/・ui/chat/は、同名の/ui/examples/*へのmeta refresh。patterns/へのmeta refreshのまま。ui.mdに## Blocksと## Examplesがあり、リンクは/ui/examples/*.md。llms.txtのOptionalに/en/ui/examples/*.mdがある。ui/components/・ui/block-examples/へのリンクは残っていない。ui/components・ui/block-examples・Block Examplesは、redirects.tsのリダイレクト元、docs/decisions.md、apps/site/lastmod-map.jsonだけに残る。既知の事項
nr typecheckはapps/site/src/lib/topShowcase.tsの型エラー2件(TS2339 / TS2559)で失敗する。dev(a1ea2a076)でも同じ2件が出ることを確認済みで、このPRの差分とは無関係。astro checkでも、エラーはこの2件だけ。.mdのURL(/ui/components/card.md等)とOG画像の旧URLは維持しない。apps/site/lastmod-map.jsonは触っていない(公開手順のgenerate:lastmodで再生成される)。ui/examples/Hero.mdxと/ui/examples/hero/のリダイレクトが同じURLになり、draftのHeroは開けないと読める(実機では未確認。本番ビルドではdraftが生成されないので衝突しない)。確認してほしい点
/ui/一覧のExamples説明文(ja: 「Lism CSSで組み立てる、パッケージ外の部品・技法の実装例です。」)docs/decisions.mdの新エントリの文面Plan: .plan/plan-ui-examples-merge.md (PR 1/1)
🤖 Generated with Claude Code
https://claude.ai/code/session_01SdQQUP5KUna8zNFJ6cbPuD
Summary by CodeRabbit
/ui/examples/{slug}/に統一しました。旧URLからは新しいURLへ転送されます。