From f00ac8b2c0ad122875b71354a5841009505c1d5e Mon Sep 17 00:00:00 2001 From: alcatron <27321443+alcatron@users.noreply.github.com> Date: Sun, 25 Oct 2026 02:26:32 +1030 Subject: [PATCH 1/3] Expose link appearance defaults and individual layout overrides --- CHANGELOG.md | 6 ++ js/editor.js | 13 ++- lib/WeatherMapLink.class.php | 10 ++- lib/editor.actions.php | 19 ++-- lib/editor.comment-style.php | 87 ++++++++++++++++++- lib/editor.inc.php | 2 +- locales/po/cacti.pot | 67 +++++++++++++- .../Support/LinkLayoutControlsRegression.php | 46 ++++++++++ tests/Unit/LinkLayoutControlsTest.php | 46 ++++++++++ tests/Unit/MapStyleConfigRoundTripTest.php | 50 ++++++++++- tests/Unit/MapStyleDefaultsTest.php | 40 ++++++++- weathermap-cacti-plugin-editor.php | 23 +++-- 12 files changed, 377 insertions(+), 32 deletions(-) create mode 100644 tests/Support/LinkLayoutControlsRegression.php create mode 100644 tests/Unit/LinkLayoutControlsTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index aec042af..bd295ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,12 @@ IMPORTANT NOTE: This version only works on CACTI 1.x++! * dev: Pin the CI database image and shared test dependencies, disable persisted checkout credentials, and limit workflow permissions and runtime +--- 2.0.1 --- + +* feature#321: Group default link width and appearance controls under Link Appearance Defaults in Map Style, and clarify Default Link Capacity in Map Properties +* feature#321: Add Edge and Centre comment styles to Map Style, with an individual override and Use map default option in Link Properties +* feature#321: Add IN/OUT traffic-label positions to Map Style and per-link Advanced settings, with 75%/25% defaults and an option to restore inheritance; keep traffic-label and comment positions separate + --- 2.0 --- * security: Add a version-safe CSP nonce (`plugin_weathermap_csp_nonce()`) to every inline `