Skip to content

feat: PixelArt expansion to clock_derived + system_monitor_{battery,cpu} #261

Open

Description

@unhappychoice

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).

Refs #259, #61 (renderer roadmap — media_pixel already ticked once #260 merges), #62 (System / clock fetchers — note new pixel_art variants).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions