Skip to content

Media Upload Modal: Try hacking in a placeholder item to flag uploading state#74838

Closed
andrewserong wants to merge 1 commit into
trunkfrom
try/hacky-attempt-at-media-modal-uploading-state
Closed

Media Upload Modal: Try hacking in a placeholder item to flag uploading state#74838
andrewserong wants to merge 1 commit into
trunkfrom
try/hacky-attempt-at-media-modal-uploading-state

Conversation

@andrewserong

Copy link
Copy Markdown
Contributor

What?

A hacky experiment exploring ideas for #74837

🚧 🚧 🚧 This PR isn't intended to land, it's simply an exploration to tease out ideas 🚧 🚧 🚧

Try injecting a placeholder item into the media upload modal while an upload is in progress.

Why?

To add a visual indicator of upload progress. Note that this approach has many downsides, not least of which is that it's just hacking in a visual state for the media thumbnail rather than canonically being an "pending" item within the DataView. But a key issues is the jumpiness once an upload completes.

But it tries out the idea.

How?

TBC

Testing Instructions

  1. Enable the media modal experiment
  2. Go to add a featured image to a post
  3. Drag and drop an image onto the media modal
  4. You should see a placeholder item while the upload is in progress

Screenshots or screencast

image

@andrewserong andrewserong self-assigned this Jan 22, 2026
@andrewserong andrewserong added [Feature] Media Anything that impacts the experience of managing media [Type] Experimental Experimental feature or API. labels Jan 22, 2026
@github-actions github-actions Bot added the [Package] Media Utils /packages/media-utils label Jan 22, 2026
@github-actions

Copy link
Copy Markdown

Flaky tests detected in c0803f6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/21237943391
📝 Reported issues:

@andrewserong

Copy link
Copy Markdown
Contributor Author

Closing in favour of #74965 which uses notices instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Media Anything that impacts the experience of managing media [Package] Media Utils /packages/media-utils [Type] Experimental Experimental feature or API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant