-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make the 'graphic content blurring' explainer per-organisation #4196
Conversation
1894b89
to
6a15075
Compare
… on the existing config property `branding.staffPhotographerOrganisation`)
6a15075
to
2868caa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with BBC specific settings and all working as expected
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! |
Seen on kahuna (merged by @twrichards 9 minutes and 52 seconds ago) Please check your changes! |
We need different organisation specific explainers for the 'graphic content' blurring, since it's 'opt-out' (see #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).