localgov icon indicating copy to clipboard operation
localgov copied to clipboard

[META] Media Re-write

Open tonypaulbarker opened this issue 3 months ago • 2 comments

META issue for tracking actions from the discovery https://github.com/localgovdrupal/localgov/issues/866

https://docs.google.com/document/d/1jjh7hv6D9D9f2SlPC320_sg9kmPjWGD-ow6cH3ogG24/edit?tab=t.0

Phase 1: localgov_media re-write

~~ ~~Breakpoint set up~~ ~~ ~~ ~~Image style recipes / configuration~~ ~~ ~~ ~~View mode recipes / configuration~~ ~~ ~~ ~~Crop widget recipes / configuration~~ ~~ ~~ ~~Analyse and retain support for custom code in the media module~~ ~~ ~~ ~~Media entity modules / recipes / configuration~~ ~~ ~~ ~~Move text editor profiles to separate recipe / modules~~ ~~ ~~ ~~Move old media configuration to legacy module and add AVIF support~~ ~~ Orchestrate installs and upgrades for the various scenarios Update WYSIWYG to use appropriate new media view modes

Phase 2: Applying to components and tests

Update banners Update paragraphs configuration to use appropriate new media view modes Update teasers in views to use appropriate new media view modes Updating tests

Additional

Banners should be able to be marked as decorative UI enhancements and messaging / instruction Provide examples for implementing contextual alt text Provide demos and documentation

In the future

Alt text should be contextual (see also https://www.drupal.org/project/drupal/issues/3266964)

Questions outstanding

To focal point or not to focal point Does the freeform crop type for image widget crop give us enough to support document covers ?

tonypaulbarker avatar Sep 04 '25 07:09 tonypaulbarker

Phase 1 - mid to late September Phase 2 - split into follow up tasks

willguv avatar Sep 04 '25 11:09 willguv

Following much discussion and discovery and a session at DrupalCamp Scotland @msayoung and I concluded that more architecture and UX work is need to implement contextual alt text so we will not action those changes yet and instead provide documentation and examples on the pros and cons of approaches. We will also try to make progress with upstream changes in core and contrib to make contextual alt text work intuitively. I have updated the tasks in the description to reflect this.

tonypaulbarker avatar Nov 27 '25 12:11 tonypaulbarker