feat(media): add flat folder API foundation - #2584
Conversation
🦋 Changeset detectedLatest commit: b5b2821 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Scope checkThis PR changes 1,578 lines across 33 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | b5b2821 | Aug 20 2026, 11:34 PM |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://feat-media-folders-api.try.emdashcms.com, https://feat-media-folders-api-emdash-playground.emdash-cms.workers.dev (commit b5b2821)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | b5b2821 | Aug 20 2026, 11:35 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-do | b5b2821 | Aug 20 2026, 11:35 PM |
Overlapping PRsThis PR modifies files that are also changed by other open PRs:
This may cause merge conflicts or duplicated work. A maintainer will coordinate. |
What does this PR do?
Adds the backend and typed-client foundation for flat, shared Media Library folders. Local media can belong to one folder or the Main library, list requests can select All media, Main library media, or one folder, and deleting a folder returns its media to the Main library without changing media IDs, storage keys, URLs, or usage records.
This is PR1 of the folders sequence and intentionally has no admin UI, upload-to-folder behavior, nesting, bulk moves, provider changes, CLI commands, or MCP commands. PR2 will add the focused Media Library UI on top of this branch.
This draft is stacked on #2582 so reviewers see only the folder foundation. It will ultimately merge into
mainafter the pagination dependency lands.Related media roadmap Discussions:
A folder-specific maintainer-approved Discussion was not found. This PR remains a draft pending scope confirmation.
Type of change
Checklist
emdashpackagemessages.pochangesemdashminor changesetAI-generated code disclosure
Screenshots / test output
PR1 has no visual changes.