Published: November 22, 2024
My LocalGov Drupal contributions for week-ending November 22nd, 2024
This week, lots of work on the LocalGov News module.
Need LocalGov Drupal services? Give Big Blue Door a shout.
Meetings and Meet-ups
- Merge Tuesday: We now have responsive tables in LocalGov Base!
- Netcall Working Group: I love these meetings, so many great ideas from the Netcall team. This meeting we chatted a lot about getting the design integration working with LocalGov Base, like we have with the ModernGov template.
- Tech Group Drop-in: Upgrading Drupal core is a bit of an issue at the moment after the release of Twig 3.14.0. We chatted about approaches to updating (especially for security releases) while waiting on a fix for Twig.
Code Contributions
- I LOVE having our CSS follow Drupal coding standards, but we don't have automated checks for this (yet). What we do have is a stylelint package that leverages Drupal core's CSS coding standards, but it needs to be manually run and updated. This week I did this manual task and linted all the CSS for LocalGov Base, LocalGov Scarfolk, LocalGov Microsites Base, and LocalGov NHS Base.
- We finally got the "Move components to Single-directory components" PR approved. Thanks to Christopher for all his work on this. I'm really excited to start moving our other components to use the same system.
- Something that has been on my mind for a long time (as in, years) was to create a template for a card view mode. This will mean the cards in the featured news, for example, can use this rather than trying to bend the teaser view mode to our will. At last, this week, I got around to writing a PR for this, which has come out very well.
- Following up from that, I noticed that when you are looking at featured news items on small screens, there is no vertical space between items, so I fixed that.
- And then, following up from this also, I created a PR to get the featured news items to use this new card template and view mode.
- Keeping with the news theme, we have an issue showing that news filters are sometimes in the left sidebar and sometimes in the right sidebar. This has bugged me for a while (thanks Maria for creating the issue) and I always end up on every site moving the blocks all to the left sidebar. So, I fixed that with a PR to say all news filter blocks should appear in the
sidebar_second
region. - After chatting with the Netcall team, we decided to make the Netcall AI Widget module available on Drupal.org. This means that any organisation using Netcall will be able to use this module, rather than just LocalGov Drupal organisations. I rewrote the module and made an alpha release of it on Drupal.org.
- Once I had the module rewritten and posted to Drupal.org, I created an alpha release and the next day a beta release. The beta release allows us to leave the site wide parameter empty so we can have widgets that only appear on certain sections of the site and no global widget.