Municipio 5.0.2

SNT
Sebastian Nordqvist Thulin
Detta innehåll är äldre än 60 dagar.

Version 5.0.2 is a patchrelease for version 5.0.1, fixing some minor issues that has been identified since the last release.

Municipio Theme (5.129.4)

  • Bugfix: Refined how timestamps are fetched in archives.
  • Bugfix: Refined how timestamps are fetched in singular pages.
  • Bugfix: Fixed ordering issues for posts with identical date-time values by adding an additional ORDER BY ID to date queries.
  • Chore: Adds a template & instructions for generating feature documentation with a LLM.
  • Bugfix: Resolves some issues with mobile adaption of collapisble search view.

* Due to the overhaul of dates; event may have to be adjusted to your preference since datebadge has been hardcoded for this posttype in some locations. 

Modularity (6.67.4)

  • Feature: Removed the option to specify the source of the post date. It will now automatically match the archive view setting from Municipio.
  • Posts Module Enhancements:
    • Improved handling of sticky posts and pagination in GetPosts.php, addressing potential issues with post counts and page limits. Sticky posts are now correctly merged and sorted.
    • Refactored post preparation and data handling in Posts.php and AbstractController.php, including adding sticky post data and default values for post objects. Highlighting logic was moved to a dedicated method.
    • Updated template controllers (ExpandableListTemplate.php, ListTemplate.php) and views (features-grid.blade.php, grid.blade.php, index.blade.php, news.blade.php, segment.blade.php) to use the new post data structure and handle sticky posts correctly. Added data-js-item-id and attributeList to post elements for better tracking and extensibility.
    • Modified partials (box.blade.php, collection-item.blade.php, news-item.blade.php) to utilize the updated post data and attributes.
    • Module is now resolving event timestamps correctly. If multiple occasions is resolved, the closest date in the future will be used. If the event is passed, the last will be used.
  • Search Module Update: Adjusted button styling in search.blade.php.

Styleguide (0.11.1220)

  • Bugfix: Fix alignment in newsitems vertically.

Component Library (4.47.11)

  • Block Component Enhancements:
    • Added support for date arrays and date badges in Block.php, block.blade.php, and block.json. Ratio class added. Content check added.
  • Card Component Enhancements:
    • Added support for date arrays and date badges in Card.php and card.json. Added has-datebadge class.
    • Updated date and date badge components in components/date.blade.php and components/datebadge.blade.php to handle date arrays.
  • Date Component Overhaul:
    • Completely refactored the Date component (Date.php, date.blade.php) for improved date handling, formatting, and time since/until calculations. Introduced DateFormatter, TimeSinceFormatter, and DateConfig classes for better organization and maintainability. Added error handling for invalid dates. Supports nowLabel, timeNowCap, date format setting.
    • Added DateConfig.php to handle date formatting configuration.
    • Added DateFormatter.php to handle localized date formatting.
    • Added TimeSinceFormatter.php to handle time since calculations.
  • News Item Component Enhancements:
    • Added support for date arrays in NewsItem.php and newsItem.json. Added standing class.
    • Updated date partial in partials/date.blade.php to handle date arrays.
  • Type Hinting Error Handling: Improved error handling for type hinting issues in Register.php, excluding lang from the check.

Algolia Index (3.2.1)

  • A patch has been implemented to correctly remove inline content in <style> and <script> tags from indexed content markup.