Skip to content

Image Studio: Remove grid view click override#109801

Open
t-wright wants to merge 1 commit intotrunkfrom
update/skip-core-modal-override
Open

Image Studio: Remove grid view click override#109801
t-wright wants to merge 1 commit intotrunkfrom
update/skip-core-modal-override

Conversation

@t-wright
Copy link
Copy Markdown
Contributor

@t-wright t-wright commented Apr 2, 2026

Proposed Changes

  • Removes the click override that handled thumbnail clicks in the media library grid view to open Image Studio instead of the core attachment modal

Why are these changes being made?

  • We should provide a way to opt out of this behaviour, and better handle cases where customers do not have AI credits

Testing Instructions

  • install-plugin.sh am update/skip-core-modal-override on your sandbox
  • Sandbox widgets.wp.com
  • Load media library in simple site, Jurassic Ninja site, Atomic site
  • Verify that Edit with AI in media library list mode launched image studio, while clicking the attachment in grid mode launches the core attachment modal

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you tested accessibility for your changes? Ensure the feature remains usable with various user agents (e.g., browsers), interfaces (e.g., keyboard navigation), and assistive technologies (e.g., screen readers) (PCYsg-S3g-p2).
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@t-wright t-wright marked this pull request as ready for review April 2, 2026 10:30
@matticbot
Copy link
Copy Markdown
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • agents-manager
  • help-center
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/skip-core-modal-override on your sandbox.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants