In release v2.10 we have a couple of fixes for both functionalities of blocks as well as design:

  • open in new tab functionality for the Columns block is not breaking the display in the front end anymore;
  • the captions for the Gallery are displayed correctly on small screens again;
  • the Campaign page type got a new style in the Search results;
  • the social share block was as well finalized;
  • the form preview for the EN block and the import/ export image option for P4CG were both fixed.

Release v2.10 (27/11/2019)

P4 Campaign Generator (P4CG) 

  • PLANET-4415 Columns block – No Image style – Climate Emergency template – Description width is smaller than on other templates
    • On the Columns block – No Image style the Description is not full width like on all other templates. 
    • The climate emergency template was fixed to respect same description width (of columns block) as other templates.
    • You can see below the difference between the correct and the incorrect version.

Correct version

Incorrect version

  • PLANET-4375Style the “Campaign Page Type” in Search results
    • In search results, ‘Campaigns’ should be presented with a different style than Evergreen pages, posts of documents.
Campaign pages were presented the same as all the other content types in Search results
Campaign pages are now presented differently than the other content types in Search results
  • PLANET-4402 Image import/export not working
    • The import/ export functionality was not working after the transition to Gutenberg, so this had to be fixed.

Design and UX Improvements 🎩

  • PLANET-4448 Finalize the Social Share block
    • The Social Share block needed some final adjustments, such as using current icons for the sharing buttons (Twitter, Facebook and Download) and cleaning some code. This new block in available only on Campaign pages for now.
  • PLANET-4438Block usage report: Add NRO custom blocks
    • Currently the Block usage report is showing the usage report of P4 blocks and some Native Gutenberg blocks, but not custom developed blocked by NROs. With the current release, the block usage report will also show the NRO custom developed blocks.

Bug Fixes 🐛

  • PLANET-4411Austria as country selection refers to wrong local homepage
    • The Austria link in landing page and in country selector had to be changed and link to the correct URL of the site: “greenpeace.at”
  • PLANET-4443 Gallery Slider: Caption is broken on mobile devices
    • On small devices there was a gap between the image and the caption. This has been fixed.
  • PLANET-4458Gallery Block: error when loading images renders the block unusable
    • When the editor was trying to edit a gallery block, it would get an error message and would not be able to edit an existing gallery, all the styles.
  • PLANET-4274EN settings – admin form preview not working
    • Form preview was breaking when the editor was trying to add or edit a form in the back-end.
Form preview broken in the back-end
  • PLANET-4425Columns block-Task style: Links not opening in a new tab
    • The Open in new tab functionality was affecting the columns blocks, all styles in fact, in multiple ways:
      • first, links would not open in new tabs even if they were set like this
      • secondly, the content will not be displayed at all in the front end because of this functionality
  • PLANET-4449Carousel Header: review initialization code
    • After releasing the Carousel Header, we noticed sometimes the images were not being loaded in the preview mode, due to an issue with the JS code for initializing it in the front-end.  This was fixed and the preview mode should work just fine now.
  • PLANET-4414 Footer legal text is not fixed on all Campaign templates
    • The legal text had to be fixed in all the Campaign templates.

Geek alert

(this section is dedicated to developers or web editors with advanced tech knowledge)

  • PLANET-4428 Webpack: Source maps don’t work
    • After the transition to Webpack source maps don’t work. Inspecting an element should show from which partial the rules are coming from. Currently all rules seem to come from the minified file.
    • The source maps on all styles on all repos have been fixed.
    • Also, it has been checked if that applies to js source maps.