SpreadSheet, SubPages and Accordion blocks were moved to the stable Planet 4 Blocks category while the Planet 4 Blocks – BETA category will be used for new version of existing blocks. We also worked on solution for child themes to allow embedding P4 content into 3rd party websites and fixed bugs such as the cookie bar – “Got it!” string translation not working and menu text showing when the main menu is opened on M size screens.


🎩 Features

  • PLANET-6087 – Move SpreadSheet, SubPages and Accordion from beta to stable category
    • The three blocks (SpreadSheet, SubPages and Accordion) that are currently in the beta category (Planet 4 Blocks – BETA) were moved to the regular “Planet 4 Blocks” category, since these are already used in production
    • The beta category will be put behind a feature toggle so it can be used to merge new versions of blocks without showing them in the editor like is currently happening with blocks in the above mentioned category
  • PLANET-5897 – Allow embedding Planet4 content into third party websites
    • There are situations when NROs would like to embed content from our Planet4 website into third party websites.
    • The solution for this was to set the header from WordPress instead of NGINX and provide a filter to remove it from certain pages. Alternatively, if we only want to allow embedding for certain trusted 3rd party domains only, there’s a way to do that: instead of only removing the x-frame-options, a list of trusted domains to embed our content could be added through a Content-Security-Policy: frame-ancestors <source>; header
  • PLANET-6076 – Add robots.txt at the root of dev and stage domains
    • All dev and stage sites have a robots.txt file that prohibits bots from indexing these websites. This is configured at planet4-robots. Despite that, some of these website still poping up on search results. This can be the result of a missing robots.txt file from the root of the www-dev domain. We could utilize a Cloudflare worker that could just handle this request.

🐞 Bug Fixes

  • PLANET-6073 – Cookie bar – “Got it!” String translation not working
    • The “Got it!” string on cookie bar was not showing a translation. This happened because initially the string was “GOT IT!”, but then changed to “Got it!”, hence the WP translation treated this as a completely new string. We replace the files for “GOT IT!” to “Got it!”, so the translation would be made automatically.
  • PLANET-6062 – Menu text is showing when the main menu is opened on M size
    • The text of the menu button looks floating when the left side menu is opened on M size.
    • The expected behavior when the menu is open is for this button to be hidden.
  • PLANET-6072 – Spreadsheet block – Fix ErrorException
  • PLANET-6080 – Campaign stylesheets call fonts.googleapis.com from a stylesheet and don’t use swap

🔧 Infra / tech improvements

  • PLANET-6045 – Move Acceptance tests on applications repos
    • Move Acceptance tests from the base repo to the application repos, so they live next to the code. Common configuration will leave on the Codeception container and use that instead to run the tests on the test instance, instead of spawning the docker-compose setup.
  • PLANET-6085 – Upgrade to Wordpres 5.6.3
    • Just a security update.
  • PLANET-6051 – Replace Microscanner with Trivy
    • Microscanner is used to scan docker images for vulnerabilities in the planet4-docker repository.
  • PLANET-5760 – Remove jQuery from load_more functionality