diff --git a/CHANGELOG.md b/CHANGELOG.md index 90cc6e8..78b7a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,41 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi --- +## [0.1.1] — 2026-05-25 + +### Added — Wink expression 😉 +Buddy now has a fourth mood tone: **`wink`** — one eye closed, an +asymmetric smirk, and rosier cheeks. Rendered as a small variant +inside the existing inline-SVG sprite (still zero image files, no +new assets). When Buddy's overall mood is ≥ 75, there's a ~30% +chance on each page render that the wink replaces the standard +happy face. Refresh a few times when Buddy is content and you'll +catch it. + +Why this commit exists: the v0.1.0 sprite had three tones +(happy / neutral / sad). Adding `wink` was the smallest possible +demo that the SVG expression engine is properly extensible — every +future mood/state/species can be added the same way. ~20 lines of +PHP, ~2 lines of CSS, no bundle weight, no dependencies. + +### Changed +- **`inc/sprite.php`**: added `wink` to the allowed-tones list. + Left eye renders as a closed-eye curve (a small downward arc) + instead of the open circle. Right eye stays normal. Mouth shifts + to an asymmetric smirk curve. Cheek opacity bumped from 0.55 to + 0.75 for extra cheekiness. +- **`inc/state.php`**: `buddy_mood_label()` now has a 30% chance of + returning the wink tone when the overall mood score is ≥ 75. +- **`assets/css/buddy.css`**: new `.buddy-widget__mood--wink` and + `.buddy-main__mood--wink` rules — warm amber pill matching the + cheeky vibe. +- **About page** version-history card leads with v0.1.1; v0.1.0 + demoted to the previous entry. +- **Plugin version bumped**: header + `BUDDY_VERSION` constant + 0.1.0 → 0.1.1. + +--- + ## [0.1.0] — 2026-05-25 **Buddy is born.** First release of a new standalone WordPress plugin extracted-and-rebuilt from the tamagotchi feature that once lived inside A-WP-Notes v1.1.5 (now gracefully retired). Buddy stands on its own as a focused, charming companion plugin for the WordPress dashboard. diff --git a/assets/css/buddy.css b/assets/css/buddy.css index 4e4c685..f930340 100644 --- a/assets/css/buddy.css +++ b/assets/css/buddy.css @@ -57,6 +57,7 @@ vertical-align: middle; } .buddy-widget__mood--happy { background:#e8f5ea; color:#1b6f2d; } +.buddy-widget__mood--wink { background:#fef3c7; color:#92400e; } .buddy-widget__mood--neutral { background:#f0f0f1; color:#3c434a; } .buddy-widget__mood--sad { background:#fcf0f1; color:#8a2424; } @@ -138,6 +139,7 @@ vertical-align: middle; } .buddy-main__mood--happy { background:#e8f5ea; color:#1b6f2d; } +.buddy-main__mood--wink { background:#fef3c7; color:#92400e; } .buddy-main__mood--neutral { background:#f0f0f1; color:#3c434a; } .buddy-main__mood--sad { background:#fcf0f1; color:#8a2424; } diff --git a/buddy.php b/buddy.php index 6b004d0..89bfcb7 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.0 + * Version: 0.1.1 * 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.0' ); } +if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.1' ); } 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 8d00d08..0d71f22 100644 --- a/inc/about.php +++ b/inc/about.php @@ -98,7 +98,11 @@ function buddy_render_about_page() {