Global blocks: remaining gaps (translation, preview, make-global action, depth)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- next.js, typescript
調査の方向性
Only item 3 remains open; the other listed gaps were completed in #211. Start by tracing how page blocks and globalSectionSlot are defined in the global blocks feature, then inspect the admin action patterns and the page block replacement flow. Done means an action can create a globalBlock from an existing page block and replace it with a slot that references the new block; the payload names no specific files or tests for this work.
索引モデルが issue の本文から書いたものです。
説明
Status: items 1, 2, 4, 5, 6 and 7 are done in #211. Item 3 is still open.
Follow-up to the end-to-end review of the global blocks feature (globalBlock collection + globalSectionSlot page block).
The correctness bugs are fixed in a separate PR.
These are the remaining gaps.
1. No AI translation, scheduled publishing, or comments for global blocks
globalBlock is not in the collection lists of translatorPlugin, schedulePublicationPlugin, or commentsPlugin (apps/cms/src/lib/plugins/).
Editors must translate global blocks by hand, and cannot schedule their publication.
Fix: add globalBlock to those plugin configs.
Translation matters most, because pages that use a global block are translated, but the shared block is not.
2. No preview for a global block on its own
GlobalBlock has no livePreview or preview config.
Editors cannot see the block before they publish it, and publishing affects every page that uses it.
Fix: add a preview route that renders the single block, and wire admin.livePreview / admin.preview to it.
3. No "make this block global" action
Any of the content blocks can be a global block.
But to turn an existing page block into a global one, the editor must create it again by hand in Global Blocks, then swap in a slot.
Fix: add an admin action on a page block that creates a globalBlock from its data and replaces the block with a globalSectionSlot that references it.
4. Relationships inside a slot get one less level of population
Pages load with depth: 3, and the slot uses one level for the globalBlock relationship.
So relationships inside a global block get one less level of population than the same block placed directly on the page.
Fix: populate the slot reference explicitly (for example, with a populate config or an afterRead hook) so that inner blocks get the same depth as page blocks.
5. rawHtml is not indexed for semantic search
extractPageText.ts has no rawHtml case.
It needs a tag-stripping step that also drops <script> and <style> content.
6. Page saves only re-index search for the edited locale
Page saves re-index only the locale that was edited.
With locale fallback, an en page save also changes the text of the es version when es falls back to en content.
Decide whether page saves should re-index every locale.
Note: global block text is intentionally left out of page search vectors (#211), so global block saves do not re-index pages.
7. Page create runs the page hooks twice (found while verifying #211)
@payloadcms/plugin-nested-docs adds resaveSelfAfterCreate, which saves every new page a second time to fix breadcrumbs.
So all page afterChange hooks run twice on create, including the search embedding (2 OpenAI requests per locale instead of 1).
Fixed in #211: the embedding hook skips create, and the plugin's re-save indexes the page once.
- 主要言語
- TypeScript
- スター
- 34
- フォーク
- 5
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 41
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
focusreactive/payload-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
focusreactive/payload-plugins#279 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
focusreactive/payload-plugins#263 ·
メンテナーはふだん 1 日以内に返信
-
comments, seo, analytics, and presets publish ESM that fails to load in Node.js (follow-up to #149)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
focusreactive/payload-plugins#240 ·
メンテナーはふだん 1 日以内に返信
-
[translator] Re-extract the traversal engine into its own package再び着手できるかも @SearheiParkhamchuk が 41 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンchore low priority translator
focusreactive/payload-plugins#203 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[translator] Open the seam to hosts: export the module type and provenance()再び着手できるかも @SearheiParkhamchuk が 41 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement low priority translator
focusreactive/payload-plugins#202 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
focusreactive/payload-plugins の issue をすべて見る
似ている issue
-
verified whatsapp
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
openidconnect: option to use client_secret_post (client_id with "-" rejected by LemonLDAP::NG 2.21)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MTES-MCT/monitorenv#3257 ·
メンテナーはふだん 1 日以内に返信