Skip to content

Releases: asuengineering/pitchfork-blocks

Version 2.1.1

28 Jun 07:21
Compare
Choose a tag to compare

Version 2.1.1

This minor release is being made with a concurrent release to the accompanying Pitchfork theme. Please ensure that the 2.1.1 version of this plugin is being used with the 2.2.1 version of the theme.

This release contains the following bug fixes and code cleanup activities.

  • FIX: Remove the requirement for the subtitle_text field in the subtitle block to contain a value. This should prevent hero blocks that contain blank subtitles from triggering an ACF block validation error.
  • CHANGE: Adjust subtitle block max length to 70 characters.
  • FIX: Remove required fields for sidebar block. Prevents field validation errors when block first deployed within editor.
  • CHANGE: Two custom field definitions for ACF were moved from this plugin to the Pitchfork theme. This allows the fields to be reused in multiple plugins without needing to be redefined in each application. The fields that moved are the menu selection control used within the sidebar block and the unique ID field used within the foldable-card block.

Version 2.1.0

22 May 21:07
Compare
Choose a tag to compare

This release is being made with a concurrent release to the accompanying Pitchfork theme. Please ensure that the 2.1 version of this plugin is being used with the 2.2 version of the theme.

ADD: A new block which expresses the card component from our design kit was created. The new block is called acf/card-v2 and it relies on existing core blocks to improve the editing experience for content creators.

  • The newer card also relies heavily on the presence of <InnerBlocks> to add or configure card options.
  • A total of 9 new blocks were developed to support this new feature.
  • Support for an additional 5 core blocks as <InnerBlocks> within the new acf/card-v2` was also created.

DEPRECATED: The older acf/card blocks are now officially deprecated and may become unsupported by a future release of the plugin.

ADD: A new block called the acf/hero-post block was created to allow users to create a standard page hero based on content from a selected post.

CHANGE: The following blocks within this plugin now support the HTML anchor attribute.

  • acf/alert, acf/background-section, acf/banner, acf/blockquote, acf/content-media-overlap, acf/grid-links

Version 2.0.1

06 Oct 21:33
Compare
Choose a tag to compare

Addresses one reported bug with the v2.0 release earlier this week.

  • FIX: Add a default layout choice for acf/background-section which still allows existing blocks with older options selected to continue to render properly.

Version 2.0

03 Oct 23:10
Compare
Choose a tag to compare

This release is being made with a concurrent release to the accompanying Pitchfork theme. Please ensure that the 2.0 version of this plugin is being used with at least the 2.0 version of the theme to ensure that the markup produced by the blocks compatible with the latest recommendations of the theme.

Bootstrap 5 and the GA4 data layer

  • FIX: All included blocks are now formatted to use Bootstrap 5 and the latest markup recommended by the ASU Unity project.
  • ADD: The following elements within Pitchfork Blocks will automatically have their user interface interactions added to ASU's GA4 data layer object.
Element Data tracked
acf/alert Tracks any close/dismissal event.
acf/banner Tracks any close/dismissal event.
acf/card-foldable Within an accordion, tracks all individual open and close events.
acf/sidebar Tracks all open and close events for nested menu items.

Background Section block (acf/background-section)

  • CHANGE: All block types are now supported as direct children of the acf/background-section block. By default, the block will now include a core/group block as the first inner block, but this block can be freely removed as needed.
  • ADD: Add six new Unity patterns to the acf/background-section block.
  • CHANGE: The acf/background-section block now allows for all ASU gray colors as preset solid color backgrounds. (Previous options were limited to ASU Gray 1, 2 and 7.) Background color options are now available via the native WordPress color controls in the block options panel.
  • ADD: The block now allows for a background color option as an overlay for repeatable/tileable patterns. This makes it easier to use patterns from collections like Subtle Patterns and Transparent Textures without writing further CSS rules.

Additional fixes

  • FIX: The acf/card-foldable block now allows for an end user to alter the unique ID associated with the card. Addresses a problem when duplicating an existing foldable card block to allow for more accordions in the set.
  • CHANGE: Change the acf/alert and acf/banner blocks to use the same underlying JS mehanism for dismissing the messages. Both now use the appropriate Bootstrap 5 dismissal JS function.
  • ADD: The acf/grid-links block now uses the ACF Font Awesome icon picker in the interface.
  • ADD: The acf/hero and acf/hero-video blocks allow for a bottom margin to be set in the block styles editor. The default state of that margin is 4rem ($uds-size-8) for all new hero blocks.
  • CHANGE: Blocks immediately following a hero block will no longer have a top margin. The adjacent sibling style rule that produced this effect has been removed.
  • FIX: The supporting CSS classes for acf/hero and acf/hero-video which controlled the positioning of the button row and the content group are no longer required to be present in the advanced/additional CSS classes section of the block settings. Those classes are now added automatically anytime there is a core/buttons or core/group block within the acf/hero block.

Additional technical release notes

  • CHANGE: Update references to ASU Unity Project to current packages located at https://github.com/orgs/ASU/packages.
  • CHANGE: Adopt new build process for continued development of the plugin. See Gulp WP for additional details. Build and compilation process still begins with npm start.
  • FIX: Change method used to provide additional CSS rules within the block editor. Aligns with current best practice.
  • ADD: Registered new ACF save point for any ACF-JSON settings applied by this plugin.

Version 1.6

31 May 19:54
Compare
Choose a tag to compare

Version 1.6

This release addresses a few issues with the acf/hero block due to a change in the required markup from the Unity Project.

Please also note that a concurrent update to the Pitchfork People plugin will also resolve a related but separate compatability issue also effecting the acf/hero block. See the CHANGELOG for Pitchfork People for additional details.

  • FIX: Layout issues with buttons and subtitles within the acf/hero block were fixed.
  • REMOVED: The option to retain the content within the hero block as visible text on mobile has been removed from the component at the Unity level. The corresponding control within the block editor was also removed.

Version 1.5 (Pitchfork People)

18 May 18:26
Compare
Choose a tag to compare

Version 1.5 (Pitchfork People)

This minor release corresponds with the launch of Pitchfork People and represents the relocation of blocks and processes related to building directory pages within the Pitchfork system.

  • REMOVED: The following blocks were moved to the Pitchfork People plugin.
    • acf/profiles
    • acf/profile-manual

Neither of the above blocks were changed other than the relocation to a different plugin. If you have page content that features these blocks, simply activate Pitchfork People in your environment to restore the page to its original form.

Version 1.4.1

04 May 21:17
Compare
Choose a tag to compare

Version 1.4.1 (Bug Fixes)

A regression of the ACF hero blocks prevented the image overlay from appearing within acf/hero or acf/hero-video. The cause was a downstream effect of the update to Pitchfork v1.9 which updated the Bootstrap 4 library from the Unity project.

  • FIX: Add a missing div for hero blocks in acf/hero and acf/hero-video.

Single links within the sidebar element (.sidebar>.nav-link-container) contain no native background color which causes display issues when the background of the page was anything except white.

  • FIX: Added temporary CSS rule to force sidebar single links to be background-color: white;

Version 1.4

26 Jan 19:06
Compare
Choose a tag to compare

New profile blocks and patterns for Pitchfork. 🎉

  • ADD: Created two new blocks called acf/profiles and acf/profile-manual to aid with the creation of directory pages in Pitchfork.
  • CHANGE: Recategorized all blocks in this plugin into their own category in the block inserter.
  • FIX: Removed debugging code in several places. Applied code linting standards.

Documentation:

v1.3 - ACF block refactoring

06 Jan 19:06
Compare
Choose a tag to compare

Version 1.3
This release contains several ACF block refactoring efforts for performance and best practices.

  • CHANGE: Refactored all blocks to use block.json, which is now the recommended method for doing so as of ACF 6.0.
  • ADD: Several blocks now also take advantage of a dedicated ACF field for picking an icon from the Font Awesome library. This field is provided by the ACF Font Awesome Field plugin which is now a recommended plugin for the theme.
  • FIX: Blocks now use WP styling engine to generate inline style declarations for margin/padding/colors.

Additional small adjustments were made to individual blocks to address errors or improve performance. Those changes are noted in the README file for the plugin. The blocks that were improved or fixed are the following:

  • acf/accordion, acf/alert, acf/banner, acf/content-media-overlap, acf/uds-sidebar, acf/subtitle

Version 1.2 - Video Hero block

05 Aug 22:17
Compare
Choose a tag to compare

One new block 🧊 plus a handful of fixes for existing items.

  • NEW: Initial deployment of the acf/hero-video block.
  • IMPROVE: Options within the acf/accordion block failed when the block was nested within other blocks. Fixed so that the block can exist anyplace on the page.
  • FIX: Adjusted SASS for acf/background-section to add padding/margin on a mobile device. Content no longer stretches from edge to edge.
  • FIX: .gitignore excluded a required file for the acf/breadcrumb block without a prior composer install. The plugin will now safely work "out of the box" again without further install steps.