背景
現在の playground/seed.php は 1 個のフィード(SmartNews 風)だけを作る単一スクリプト。.docs/ で公式仕様を整理した今、Playground は 複数の公開仕様プリセットを並べる showcase として再構成したい。
期待
playground/seed-{format}.php の per-aggregator 構造に分割
- blueprint.json から各 seed を順次
wp eval-file で実行
- 全フィードを
post_status=publish で作成
- ランディングページを フィード一覧 (
/wp-admin/edit.php?post_type=feedwright_feed) に変更
実装内容
新規ファイル
playground/seed-helpers.php — ブロックマークアップ生成のグローバル関数群(feedwright_pg_el / feedwright_pg_bind / feedwright_pg_cdata / feedwright_pg_when / feedwright_pg_sub_query / feedwright_pg_insert_feed 等)
playground/seed-shared.php — オプション・カテゴリ・term meta(_mediba_category_id)・サンプル投稿 6 本(5 カテゴリ網羅)・admin プロファイルのブートストラップ
playground/seed-goonews.php — goo / dmenu 共通仕様(goonews: smp: namespace、smp:relation を sub-query で展開)
playground/seed-mediba.php — mediba mdf: namespace、feedwright/when で <mdf:deleted/> を trash 投稿だけに出す、post_term_meta.category._mediba_category_id でカテゴリ ID 解決、postStatus=[publish, trash] + trashWithinDays=7
playground/seed-smartnews.php — SmartFormat(snf: media: dc: content: namespace、snf:logo / snf:darkModeLogo、media:status を post_status から map)
削除
playground/seed.php(単一スクリプト、上記分割で置換)
blueprint.json
landingPage を /wp-admin/edit.php?post_type=feedwright_feed に変更
- 各 seed を
writeFile + wp-cli ステップで順番に実行
受け入れ基準
影響範囲
playground/ 配下のみ。プラグイン本体・テスト・docs に影響なし
- 翻訳ファイル更新不要(playground は demo 配信用、出力に翻訳文字列を含まない)
背景
現在の
playground/seed.phpは 1 個のフィード(SmartNews 風)だけを作る単一スクリプト。.docs/で公式仕様を整理した今、Playground は 複数の公開仕様プリセットを並べる showcase として再構成したい。期待
playground/seed-{format}.phpの per-aggregator 構造に分割wp eval-fileで実行post_status=publishで作成/wp-admin/edit.php?post_type=feedwright_feed) に変更実装内容
新規ファイル
playground/seed-helpers.php— ブロックマークアップ生成のグローバル関数群(feedwright_pg_el/feedwright_pg_bind/feedwright_pg_cdata/feedwright_pg_when/feedwright_pg_sub_query/feedwright_pg_insert_feed等)playground/seed-shared.php— オプション・カテゴリ・term meta(_mediba_category_id)・サンプル投稿 6 本(5 カテゴリ網羅)・admin プロファイルのブートストラップplayground/seed-goonews.php— goo / dmenu 共通仕様(goonews:smp:namespace、smp:relation を sub-query で展開)playground/seed-mediba.php— medibamdf:namespace、feedwright/whenで<mdf:deleted/>を trash 投稿だけに出す、post_term_meta.category._mediba_category_idでカテゴリ ID 解決、postStatus=[publish, trash]+trashWithinDays=7playground/seed-smartnews.php— SmartFormat(snf:media:dc:content:namespace、snf:logo/snf:darkModeLogo、media:statusを post_status から map)削除
playground/seed.php(単一スクリプト、上記分割で置換)blueprint.json
landingPageを/wp-admin/edit.php?post_type=feedwright_feedに変更writeFile+wp-cliステップで順番に実行受け入れ基準
/wp-admin/edit.php?post_type=feedwright_feedにランディング、3 フィード(goonews / mediba / smartnews)が公開状態で表示/feedwright/goonews/)で正しい XML が返る<mdf:deleted/>だけになる、publish 投稿は通常の elements 一式が出る<category>がカテゴリの term meta_mediba_category_idから正しく解決される(テクノロジー=202、News=101、コネタ=91 等)<smp:relation>が出る(同じカテゴリの他記事)影響範囲
playground/配下のみ。プラグイン本体・テスト・docs に影響なし