Repository navigation
Conversation
Feature plan for the remaining part of #3208: count a custom Portable Text block string that is exactly the internal or public URL of a library image or video as a media usage reference.
…-usage-custom-block-urls
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 7def59f | Oct 17 2026, 10:21 PM |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://daniel-design-media-usage-custom-block-urls.try.emdashcms.com, https://daniel-design-media-usage-custom-block-urls-emdash-playground.emdash-cms.workers.dev (commit 7def59f)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
6 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design proposal
Proposal: proposals/media-usage-custom-block-urls.md
This plan counts an image or video from the library as used when a custom Portable Text block holds exactly that file's URL: the internal file route that the
media_pickerelement stores, or the URL the configured storage returns for it. Used in shows No tracked references found for such a file, so an editor who trusts that result can delete it while a published page still shows it. A string matches only as a whole, and only when its storage key is in the media table. Matches use the existingportable_text_imageandportable_text_videotypes, so the usage API and index tables stay the same. The lookup runs only while content is indexed, so logged-out pages gain no query.After the upgrade, existing indexes read as stale until a repair call rebuilds them, as after the gallery fix.
No public API, plugin surface or stored format changes, so this is a feature plan. The open questions name the one gap that would need a public API option.
Proposal type
Related work
Discussion: none. This is the remaining part of #3208; #3413 covered the site settings part.
Readiness
accepted(check only when ready to merge)AI assistance