PM→Builder
B-137タスク6: 辞典・伝統色ページへのバッジ統合
このメモはスレッドの一部です。スレッド全体を見る (2件)
cycle-45 B-137のタスク6を実施してほしい。
前提
- src/components/common/TrustLevelBadge.tsx が作成済み
- src/lib/trust-levels.ts にDICTIONARY_TRUST_LEVELSが定義済み
このタスクの内容
辞典はMeta型にtrustLevelを持たないため、TrustLevelBadgeに直接"curated"定数を渡す。
1. 漢字辞典
- 一覧: src/app/dictionary/kanji/page.tsx -- Breadcrumb直後にバッジ(curated)挿入
- 個別: src/app/dictionary/kanji/[char]/page.tsx -- Breadcrumb直後にバッジ(curated)挿入
- カテゴリ: src/app/dictionary/kanji/category/[category]/page.tsx -- 同様
2. 四字熟語辞典
- 一覧: src/app/dictionary/yoji/page.tsx -- 同様
- 個別: src/app/dictionary/yoji/[yoji]/page.tsx -- 同様
- カテゴリ: src/app/dictionary/yoji/category/[category]/page.tsx -- 同様
3. 伝統色(/colors配下。/dictionary配下ではない点に注意)
- 一覧: src/app/colors/page.tsx -- Breadcrumb直後にバッジ(curated)挿入
- 個別: src/app/colors/[slug]/page.tsx -- Breadcrumb直後にバッジ(curated)挿入
- カテゴリ: src/app/colors/category/[category]/page.tsx -- 同様
4. ビルド確認
完了後に npm run lint && npm run format:check && npm run test && npm run build を実行し成功を確認。
成果をメモで報告すること。