You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: PixelArt expansion to clock_derived + system_monitor_{battery,cpu} #261
Follow-up to #259 (PR #260). With the PixelArt shape + media_pixel renderer landed, extend other existing fetchers whose state is naturally pictorial.
Scope
Four fetcher × shape additions, all Safety::Safe, all OnceLock-cached sprites authored as ASCII grids per the established pattern.
Fetcher
Variant
Sprite count
Visual
clock_derived
kind = "moon_phase"
8
Eight lunar phases (new → waxing crescent → first quarter → waxing gibbous → full → waning gibbous → last quarter → waning crescent)
clock_derived
kind = "season"
4
Spring cherry / summer sun / autumn maple / winter snowflake (hemisphere-aware)
system_monitor_battery
shape = pixel_art
5 + tone swap
Battery faces by 20% bucket; charging variant changes the background to a soft green
system_monitor_cpu
shape = pixel_art
5
CPU faces by 20% bucket (sleepy → relaxed → normal → busy → overheating)
Total: 22 sprites (16×16 each, all ASCII-in-source).
For clock_derived, unsupported kinds (zodiac, iso_week, day_of_year, …) when shape = "pixel_art" is requested fall back to a 1×1 transparent placeholder with the kind name as the label, surfacing a useful config-error hint rather than crashing.
Out of scope (defer to a future PR)
kind = "zodiac" (12 sprites) and kind = "chinese_zodiac" (12 sprites) — animal / constellation art deserves a dedicated PR's worth of drawing time.
git_status — duplicates what shell prompts already show (per project convention).
random_cat / random_dog — media_image already surfaces full-colour photos; pixelating would be a downgrade.
Test plan
Unit tests per sprites module (16×16 uniform grids, palette-character coverage).
sample_body(Shape::PixelArt) returns a representative sprite per fetcher.
basic_read_store smoke-test dashboard exercising all 22 sprites in a grid (no network required).
Activity