wellcomecollection / wellcomecollection.org

🪟 Wellcome Collection's website and services that support it
https://wellcomecollection.org
MIT License
37 stars 5 forks source link

Add fields to Promo sections in all Content types #10957

Open rcantin-w opened 2 weeks ago

rcantin-w commented 2 weeks ago

The Promo section/tab in content types (used across all "page" types, such as Story, Visual Story, Exhibition, etc. for mostly metadata and Card purposes) currently uses the Legacy EditorialImage slice for its content.

It should be moved to simple fields: Image and text, effectively removing the need for "Override link" which we wanted to remove as part of #10637 (which is closing in favour of this ticket).

That means we'll have to map and migrate the EditorialImage data over to those new fields before removing that slice completely. It probably will require changes to the codebase, such as the transformers and probably GraphQuery queries - which means taking more care around deploying changes that REMOVE slices as it could break the front end.