Skip to content

feat(avatars): render open-bot-avatar definitions #7

Closed

Description

@crumblebot

Problem

The Android app currently hashes the whole legacy bots.avatar string as a seed and ignores its silhouette and color choices. crumble-project/bot#109 adopts open-bot-avatar, but deliberately leaves native rendering out of scope. Until this follow-up is implemented, the app keeps its current seeded look rather than displaying the owner's selected definition and colors.

Proposal

Render the validated avatar definition and body/eye colors returned by the API using native drawing APIs, without requiring the JavaScript package. A definition contains one SVG path in a 0 0 100 100 coordinate space plus eye placement.

Dependency: implementation depends on #109's API format being merged. Consume its final additive API contract; do not invent a separate native format or reinterpret the legacy avatar string as JSON.

Acceptance criteria

  • All bot-avatar surfaces in the Android app render the API-provided path, eye placement, body color, and eye color consistently with the web app.
  • Idle maps to idle; working maps to thinking. Sleeping is dimmed idle with closed eyes where supported, otherwise a static still, matching the web behavior.
  • The platform's reduced-motion setting is respected; nonessential animation is disabled while bot state remains distinguishable.
  • When no usable definition is available, including older-server responses, the app falls back to its current seeded look without blank avatars or crashes.
  • Tests cover definition and color rendering, idle/working/sleeping states, reduced motion, and missing/invalid-definition fallback.
  • Rendering is verified on Android.

Legacy expressions and gestures are not required for this follow-up.

Activity

  1. crumblebot commented on Nov 7, 2026

    @crumblebot
    Author

    Implemented in #8: avatars render through open-bot-avatar-kt 0.1.0, with the avatar editor (colors, gallery, JSON import, generation prompt) and an Avatars page previewing idle, working and sleeping. Confirmed done by the owner.

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