Skip to content

Search, automated updates, fixes

Compare
Choose a tag to compare
@AlexSkrypnyk AlexSkrypnyk released this 03 Aug 04:40
· 341 commits to develop since this release

This release was primarily focused on addressing technical debt and enhancing the stability of the development platform.

We have also created a new documentation site https://docs.civictheme.io/.

🧩 UI Kit

New features

  • Updated NodeJS version requirement to 18. Make sure to use nvm use to switch to the correct version when working on the theme.
  • Added Snippet component.

Fixes

  • Fixed desktop primary navigation sub-menu items receive focus while visually hidden when tabbing through page links. (a11y)
  • Fixed List component's Storybook props not using random values.
  • Fixed Slider slide image position not being applied when it should appear right from the slide content.
  • Removed outdated whitespace/storybook-addon-html plugin from Storybook configuration. Consumer sites should do the same.

💧 Drupal theme

New features

  • Added SVG support for Logos. 🚀
  • Added new Snippet and Snippet reference paragraph components.
  • Added support for database search based on Search API. The results are displayed using Snippet component.
  • Added and ability for a user with Site Administrator role to update site slogan without having access to Basic site settings configuration page.
  • Added automated configuration schema and content updates system and updates for schema changes in previous CivicTheme versions. 🚀🚀🚀
  • Added tests for install with the following matrix (runs on every change in CI):
    • Drupal 9 and Drupal 10
    • fresh or previous versions
    • minimal and govcms profiles
    • with and without sub-theme

Fixes

  • Updated dependencies to be contained and fixed the namespace. 🚀
  • Fixed non-expanded menu item becomes expanded when active.
  • Fixed form element showing error on empty value.

🧨 Breaking changes:

Starting from this version, CivicTheme provides automated content updates for any schema changes.
This means that when the new version of CivicTheme is deployed, the content will be automatically updated to match the new schema.

Note that you must run this locally first to ensure that the update is successful.

  • Renamed Banner Blend mode field for nodes and blocks (an automated update is provided):
    • field_c_n_blend_mode -> field_c_n_banner_blend_mode
    • field_c_b_blend_mode -> field_c_b_banner_blend_mode

Other

  • Added GH action to send newly opened issues and comments to JIRA. This allows to keep the project truly open-source while still using JIRA for internal project management.
  • Moved to direct publishing from this monorepo to all repositories on every change to develop branch.
    Previously, only publishing on release. This allows to use development versions in code.
  • Enabled config linting in CI.
    This makes sure that all configuration shipped with the Drupal theme is consistent with the required dependencies.
  • Added support for building with and without optional Drupal modules (like Search API) that CivicTheme provides optional configuration for, but not depends on.
  • Added example composer.json for Drupal 10 consumer sites to use as a scaffold.
  • Removed in-code docs after they being moved to external docs site https://docs.civictheme.io/