feat: add winking expression (v0.1.1)
Buddy now has a fourth mood tone — wink — with one eye closed, an asymmetric smirk, and rosier cheeks. Renders as a small variant inside the existing inline-SVG sprite (still zero image files, no new assets). When overall mood is >= 75, there's a 30% chance on each page render that the wink replaces the standard happy face — gives the pet a touch of unpredictable personality. Why this commit exists: v0.1.0 had three tones (happy / neutral / sad). Adding wink is the smallest possible demo that the SVG expression engine is properly extensible — every future mood, state, accessory or species can land via the same pattern. ~20 lines of PHP, ~2 lines of CSS, no bundle weight, no dependencies. CHANGES - inc/sprite.php: wink added to allowed-tones list. Left eye renders as a closed-eye arc instead of the open circle. Mouth shifts to an asymmetric smirk. Cheek opacity 0.55 → 0.75 for extra cheekiness. - inc/state.php: buddy_mood_label() returns wink ~30% of the time when mood >= 75. - assets/css/buddy.css: new .buddy-widget__mood--wink and .buddy-main__mood--wink rules — warm amber pill. - About-page version-history leads with v0.1.1; v0.1.0 demoted. VERSION - buddy.php header 0.1.0 → 0.1.1 - BUDDY_VERSION constant 0.1.0 → 0.1.1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user