Releases: localgovdrupal/localgov_alert_banner
1.4.0
Hightlights
Default behaviour of the alert banner confirmation form has now changed, the default action will be to not unpublish previous alert banners by default.
This also address PHP 8 / Drupal 10 deprecations, and swaps the default library for the hide cookie to js-cookie.
What's Changed
- "Remove hide link" checkbox for full page banner by @Adnan-cds in #190
- Update Github actions configuration to try to test against PHP 7.4 an… by @finnlewis in #192
- Remove role="alert" by @andybroomfield in #196
- Replace use of jquery cookie with js-cookie by @andybroomfield in #200
- Change Delete Form to use ContentEntityConfirmFormBase by @andybroomfield in #199
- Set weight of alert banner block to -100 by @andybroomfield in #195
- Default the unpublish other alert banners to off by @andybroomfield in #194
Full Changelog: 1.3.0...1.4.0
1.3.0
This release adds new permissions to check a user can actully access the banner before displaying.
A database update is required to add the view permission to anonymous and authenticated users.
What's Changed
- Update Github Actions config to use standard config by @stephen-cox in #180
- Permissions to view banner and the entity page fixes by @andybroomfield in #161
- Remove 1.x (drupal 8) tests by @andybroomfield in #184
- Remove all other references to localgov 1.x by @andybroomfield in #187
- PR for Release 1.3 by @andybroomfield in #185
Full Changelog: 1.2.1...1.3.0
1.2.1
1.2.0
New features
- Alters Alert Banner to use Workflow and Content Moderation #159
- Adds support for Scheduling Alert Banners if the Scheduled Transitions module is installed #159
- Adds new submodule with a full screen alert banner type #133
New user permissions
- use localgov_alert_banners transition publish
- use localgov_alert_banners transition unpublish
1.1.3
Changelog:
#164 @stephen-cox @ekes @finnlewis Update blocks to use the new LocalGov Base theme
#167 @stephen-cox @finnlewis Fix Github CI tests
1.1.2
Bugfix release for cache issues when excluding the banner from a page.
Also removes the need to flush all caches when editing or publishing a new banner (Thanks @Adnan-cds)
Commits on Jul 02, 2021
@andybroomfield
Fix adding cache contexts only when it has an effect on visibility …
ab0a712
Commits on Jul 05, 2021
@markconroy
swap modifier to element to follow BEM
77f3a83
Commits on Jul 07, 2021
@andybroomfield
Fix display the banner link when no title …
5c46105
Commits on Jul 08, 2021
@Adnan-cds
Cache clear can now rely on cache tag invalidation. …
430d0e6
@markconroy
Merge pull request #157 from localgovdrupal/hotfix/1.x-bem-coding-sta… …
1d7638c
@markconroy
Merge pull request #148 from localgovdrupal/fix/147-link-no-title …
a0f2c7d
Commits on Jul 16, 2021
@Adnan-cds
Revert "Cache clear can now rely on cache tag invalidation." …
d5a57ca
@Adnan-cds
Cache clear improvement. …
ec37303
@andybroomfield
Merge pull request #155 from localgovdrupal/fix/154-cache-context-con… …
c1ce09c
Commits on Jul 26, 2021
@andybroomfield
Merge pull request #158 from localgovdrupal/feature/no-flush-all-cache …
1.1.1
Bug fix release to address cache issue in #150 (PR #152)
Commits on Jun 29, 2021
@Adnan-cds
Fix for typo in cache context name …
8f0621c
Commits on Jun 30, 2021
@andybroomfield
Merge pull request #149 from localgovdrupal/fix/typo-in-cache-context… …
6b5d7a6
@andybroomfield
Move the cacheContexts and cacheTags to the alert banner entity …
0780491
Commits on Jul 01, 2021
@andybroomfield
Initial alterations to add cache contexts and tags
04a5747
Commits on Jul 02, 2021
@andybroomfield
Remove $this->addCacheContexts($contexts) as returning by merging wit… …
06ab96b
Commits on Jul 05, 2021
@andybroomfield
Merge pull request #152 from localgovdrupal/fix/150-cache-tags …
3e40ca8
1.1.0
Adds conditional alert banner placement so banner display can be limited to specific paths.
The visibility field limiting where an alert banner is displayed is added to existing alert banners and alert banner types.
Changelog:
#141 @stephen-cox Updated Github CI to run 1.x branch against Drupal 8 and 9
#142 @andybroomfield @stephen-cox Conditional alert banner placement
#144 @andybroomfield Render all content fields on the alert banner
1.0.1
Adds Drupal 9 support to LocalGov Alert Banner.
Changelog:
#132 @stephen-cox Code Fixes for Drupal 9 support
#135 @andybroomfield Delete AlertBannerRouteSubscriber.php
#140 @stephen-cox Updated Github CI to run 1.x branch against Drupal 8 and 9
1.0.0
This is the first full release of Localgov_alert_banner
(Yes we're jumping past beta! See #124).
This represents the first stable version, so future releases will be using semantic versioning to manage breaking changes and new features.
Incorporates the template coding standards work thanks @markconroy.
This will require some updates to your theme css if you have customised the banner in your theme.
If anyone is using localgov_theme, they will need to update their CSS classes - I think the only one might be changing localgov_alert_banner to localgov-alert-banner.
Also note that the template for the alert banner has changed from localgov_alert_banner.html.twig
to localgov-alert-banner.html.twig
@markconroy
format templates to follow Drupal practices
32b3ce8
@markconroy
update library definition to fix typo
0f20c34
@markconroy
remove padding from alert banner
95db581
@markconroy
update test to correct class name
21f6ba7
@stephen-cox
Split GitHub CI tests into separate jobs (localgovdrupal/localgov#179)
0260a86