From c7d49b383a0eb88ac5aa34c09d9f684cd988417e Mon Sep 17 00:00:00 2001 From: David Keane Date: Tue, 26 May 2026 07:20:25 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20release=20v0.1.2=20=E2=80=94=20wink=20?= =?UTF-8?q?tuning=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documents the wink-probability tune-down (f661eab) as a proper patch release. No code behaviour change in this commit — purely version metadata, changelog, and user-facing about-page history. CHANGES - buddy.php: Version header + BUDDY_VERSION constant 0.1.1 → 0.1.2 - CHANGELOG.md: new [0.1.2] entry above [0.1.1], explains the tuning rationale + what's intentionally unchanged (wink visuals, trigger threshold mood >= 75) - inc/about.php: version-history card leads with v0.1.2 (latest badge), v0.1.1 demoted to second slot Why a patch release: the wink fires far less often now than it did in v0.1.1. From a user's point of view that IS a behaviour change worth a version. Following SemVer: PATCH bump because the public API and feature set are unchanged; only the tuning of an existing behaviour was adjusted. Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ buddy.php | 4 ++-- inc/about.php | 6 +++++- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78b7a4b..09f7b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,36 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi --- +## [0.1.2] — 2026-05-26 + +### Tuned — Wink probability lowered from 30% to 5% +The wink Easter-egg added in v0.1.1 fired at 30% per page render +when Buddy's mood was ≥ 75. Default mood is 80, so most admin +visits hit the gate and ~30% of those flipped to wink. Stacked +across the main admin page + dashboard widget visible on the same +screen, Buddy ended up looking like he had one eye closed all the +time — "stuck" rather than "playful". + +Dropped to 5%. Same wink visuals when it fires; just rare enough +to feel magical instead of constant. Refresh ~20 times when mood +is high and you'll catch one. + +### Changed +- **`inc/state.php`**: `buddy_mood_label()` probability gate + `mt_rand( 1, 100 ) <= 30` changed to `<= 5`. Docstring updated + to reflect new ~5% rate. +- **Plugin version bumped**: header + `BUDDY_VERSION` constant + 0.1.1 → 0.1.2. +- **About page** version-history card leads with v0.1.2; v0.1.1 + demoted. + +### Not changed +- Wink visuals (`inc/sprite.php`) — same closed-eye arc, smirk, + rosy cheeks when it fires. Just rarer. +- All other behavior identical to v0.1.1. + +--- + ## [0.1.1] — 2026-05-25 ### Added — Wink expression 😉 diff --git a/buddy.php b/buddy.php index 89bfcb7..3438942 100644 --- a/buddy.php +++ b/buddy.php @@ -5,7 +5,7 @@ * Plugin Name: Buddy * Plugin URI: https://icanhelp.ie/buddy * Description: Adopt a small companion that lives in your WordPress dashboard. Its mood reflects your site's health — published posts feed it, outdated plugins make it sick, clearing spam makes it happy. Gamifies WordPress maintenance with a bit of charm. - * Version: 0.1.1 + * Version: 0.1.2 * Requires at least: 5.0 * Requires PHP: 7.4 * Author: David Keane @@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Plugin coordinates. -if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.1' ); } +if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.2' ); } if ( ! defined( 'BUDDY_FILE' ) ) { define( 'BUDDY_FILE', __FILE__ ); } if ( ! defined( 'BUDDY_PATH' ) ) { define( 'BUDDY_PATH', plugin_dir_path( __FILE__ ) ); } if ( ! defined( 'BUDDY_URL' ) ) { define( 'BUDDY_URL', plugin_dir_url( __FILE__ ) ); } diff --git a/inc/about.php b/inc/about.php index 0d71f22..9c3d802 100644 --- a/inc/about.php +++ b/inc/about.php @@ -98,7 +98,11 @@ function buddy_render_about_page() {