Skip to content
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

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Nov 21, 2023

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 new public/js/common/blurring directory (e.g. staffPhotographerOrganisation is GNM so loads GNM-explainer.html from that directory. This is rendered on top of the translucent overlay and the GNM implementation references the graphic-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 the SHOULD_BLUR_GRAPHIC_IMAGES cookie and reloading to reveal the explainer).

Copy link

github-actions bot commented Nov 21, 2023

Base automatically changed from actions-riff-raff-v3.0.0 to main November 21, 2023 10:02
@twrichards twrichards force-pushed the blurring/org-specific-explainer branch 4 times, most recently from 1894b89 to 6a15075 Compare November 22, 2023 11:55
… on the existing config property `branding.staffPhotographerOrganisation`)
@twrichards twrichards force-pushed the blurring/org-specific-explainer branch from 6a15075 to 2868caa Compare November 22, 2023 12:00
@twrichards twrichards marked this pull request as ready for review November 22, 2023 12:00
@twrichards twrichards requested a review from a team as a code owner November 22, 2023 12:00
Copy link
Member

@andrew-nowak andrew-nowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@AndyKilmory AndyKilmory left a 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

@prout-bot
Copy link

Seen on auth, usage, image-loader, thrall, cropper, collections, media-api (merged by @twrichards 8 minutes and 50 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on leases (merged by @twrichards 8 minutes and 56 seconds ago) Please check your changes!

@prout-bot
Copy link

Seen on metadata-editor (merged by @twrichards 9 minutes and 1 second ago) Please check your changes!

@prout-bot
Copy link

Seen on kahuna (merged by @twrichards 9 minutes and 52 seconds ago) Please check your changes!

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

Successfully merging this pull request may close these issues.

5 participants