Closed twrichards closed 8 months ago
Seen on auth, usage, image-loader, thrall, cropper, collections, media-api (merged by @twrichards 8 minutes and 50 seconds ago) Please check your changes!
Seen on leases (merged by @twrichards 8 minutes and 56 seconds ago) Please check your changes!
Seen on metadata-editor (merged by @twrichards 9 minutes and 1 second ago) Please check your changes!
We need different organisation specific explainers for the 'graphic content' blurring, since it's 'opt-out' (see https://github.com/guardian/grid/pull/4187).
So based on the existing config property
branding.staffPhotographerOrganisation
, it loads the relevant HTML file from the newpublic/js/common/blurring
directory (e.g. staffPhotographerOrganisation isGNM
so loadsGNM-explainer.html
from that directory. This is rendered on top of the translucent overlay and the GNM implementation references thegraphic-image-blur-explainer__tooltip
class as before but allows for completely different styling/layout if needs be).From a GNM perspective this is a no-op (which can be verified in
TEST
by deleting theSHOULD_BLUR_GRAPHIC_IMAGES
cookie and reloading to reveal the explainer).