Skip to content

Releases: localgovdrupal/localgov_alert_banner

1.4.0

25 Apr 13:55
dccab59
Compare
Choose a tag to compare

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

Full Changelog: 1.3.0...1.4.0

1.3.0

21 Feb 16:35
26b6672
Compare
Choose a tag to compare

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

Full Changelog: 1.2.1...1.3.0

1.2.1

05 Oct 15:02
abf436b
Compare
Choose a tag to compare

Patch release, to include:

@danchamp Add alert banner title to the hide button aria-label attribute 111bc1a
@finnlewis Add optional placement of blocks for localgo_scarfolk theme as well a… 10eae7d

1.2.0

16 Sep 11:13
f2d7124
Compare
Choose a tag to compare

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

01 Sep 16:18
9f4a61c
Compare
Choose a tag to compare

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

19 Aug 17:35
acb983f
Compare
Choose a tag to compare

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

07 Jul 09:25
1277614
Compare
Choose a tag to compare

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

18 Jun 14:40
8a43d4d
Compare
Choose a tag to compare

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

18 May 15:41
e1cea4f
Compare
Choose a tag to compare

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

05 May 10:59
36047e4
Compare
Choose a tag to compare

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