Implement interactive URL darkmode fix for additional path groups - #13756
Conversation
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
|
Size Change: +34 B (0%) Total Size: 959 kB ℹ️ View Unchanged
|
| url && url.includes('interactive.guim.co.uk/uploader/embed/') | ||
| url && | ||
| (url.includes('interactive.guim.co.uk/uploader/embed/') || | ||
| url.includes('superyacht') || |
There was a problem hiding this comment.
Could this be a more suitable (i.e. less general) marker?
| url.includes('superyacht') || | |
| url.includes('interactive.guim.co.uk/embed/superyacht') || |
We'd just have to be sure all superyacht URLs have this form
There was a problem hiding this comment.
In the last audit test I ran I managed to catch 118 superyacht URLs, which is the same number you get when you search that sheet for interactive.guim.co.uk/embed/superyacht - which gives me some confidence that the tool has been set up to always dump its output into the same S3 bucket. https://docs.google.com/spreadsheets/d/1DF-6cBa5xQCH_1tKgc7x5F5eXakQYKz00IbMjywwjO0/edit?gid=1748685808#gid=1748685808
There was a problem hiding this comment.
That sounds promising. Shall we make the change?
There was a problem hiding this comment.
Oh I see, you're making the opposite argument.
Sure, I'm fine to leave it as superyacht 👍
TestingBefore
After
|
|
Seen on PROD (merged by @KaliedaRik 10 minutes and 16 seconds ago) Please check your changes! |













What does this change?
This work extends the work to add a
darkmode=falsesearch query to the end of eligible interactive embed URLs, as detailed in PR #13647Why?
Following the merging of the previous PR into production, Australian colleagues have requested we add similar functionality for two types of interactives they create:
superyacht(for chart embeds)choropleth_map_makerScreenshots
See testing results comment below
Testing
Testing in the CODE environment:
superyachtorchoropleth_map_makershould now include the appended search query string - either?darkmode=falseor&darkmode=falseSuitable existing interactives URLs for this test include:
Superyacht
choropleth_map_maker
Unaffected URLs