From 6e85d99ed5fcbecb27a01bb4ef6d1b08b32716d5 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 6 Feb 2026 14:54:26 +0000 Subject: [PATCH] Add changenote --- .../tiddlers/mechanisms/Background Actions.tid | 1 + .../mechanisms/MediaQueryTrackerMechanism.tid | 3 +++ .../tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid | 14 ++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid diff --git a/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid b/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid index 1a8722d17..07b8e32c4 100644 --- a/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid +++ b/editions/tw5.com/tiddlers/mechanisms/Background Actions.tid @@ -1,6 +1,7 @@ title: Background Actions created: 20250212154426403 modified: 20250212154426403 +tags: Mechanisms <<.demo-tiddler """ title: SampleBackgroundAction: Story Change diff --git a/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid b/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid index 1944a7e0a..f95219b0d 100644 --- a/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid +++ b/editions/tw5.com/tiddlers/mechanisms/MediaQueryTrackerMechanism.tid @@ -1,5 +1,8 @@ title: Media Query Tracker Mechanism tags: Mechanisms +created: 20250212154426403 +modified: 20250212154426403 + <<.from-version "5.4.0">> The media query tracker mechanism allows you to define [[custom CSS media queries|https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries]] to be bound to a specified [[info|InfoMechanism]] tiddler. The info tiddler will be dynamically update to reflect the current state of the media query. diff --git a/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid new file mode 100644 index 000000000..bdf0eed7b --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/5.4.0/#9641.tid @@ -0,0 +1,14 @@ +title: $:/changenotes/5.4.0/#9641 +description: Background actions and media query tracking +tags: $:/tags/ChangeNote +release: 5.4.0 +change-type: enhancement +change-category: internal +github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9641 +github-contributors: Jermolene + +Introduces[[Background Actions]] that are triggered whenever there is a change to the results of a specified filter. + +Building on that, it also introduces a new [[Media Query Tracker Mechanism]] that can track the results of any CSS media query (not just dark mode), storing the results in a shadow `$:/info/...` tiddler + +These improvements were cherrypicked from [[#8702 - Colour Handling Improvements|https://github.com/TiddlyWiki/TiddlyWiki5/pull/8702]] when it was deferred until v5.5.0.