Skip to content

Draw bot mascots from art the apps ship with - #1513

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/physalis
Nov 27, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/physalis

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

The Mac and iOS apps drew every mascot from the machine: the Rive file,
its color values and the loading stills were all fetched per server, so on
a cold launch with no machine connected the Bots list showed no mascots,
and while they loaded the list showed a server-rendered image laid out at
the Rive canvas's size, zoomed in and cut off at the feet.

CodevisorUI now bundles mascot.riv and the Rive color table, exported from
packages/bot-mascot by bun run mascots:export-art (a script test fails
while the copy is stale). The apps compute the Rive values themselves, and
render stills with Rive into a disk cache keyed by the art's version, so a
bot's mascot draws on the first frame from its cached look alone. The
loading still is the same Rive pose in the same frame as the live figure,
and it stays until the canvas has shown a frame, so the handoff doesn't
jump or blink. A look from a newer server draws the parts this app knows;
unknown items are left out until the app updates. The server's art routes
stay for older apps.

Co-Authored-By: Claude Opus 5.5 [email protected]

The Mac and iOS apps drew every mascot from the machine: the Rive file,
its color values and the loading stills were all fetched per server, so on
a cold launch with no machine connected the Bots list showed no mascots,
and while they loaded the list showed a server-rendered image laid out at
the Rive canvas's size, zoomed in and cut off at the feet.

CodevisorUI now bundles mascot.riv and the Rive color table, exported from
packages/bot-mascot by `bun run mascots:export-art` (a script test fails
while the copy is stale). The apps compute the Rive values themselves, and
render stills with Rive into a disk cache keyed by the art's version, so a
bot's mascot draws on the first frame from its cached look alone. The
loading still is the same Rive pose in the same frame as the live figure,
and it stays until the canvas has shown a frame, so the handoff doesn't
jump or blink. A look from a newer server draws the parts this app knows;
unknown items are left out until the app updates. The server's art routes
stay for older apps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dylanplayer
dylanplayer merged commit a274f13 into main Nov 27, 2026
@dylanplayer
dylanplayer deleted the codevisor/physalis branch November 27, 2026 22:24
dylanplayer added a commit that referenced this pull request Nov 28, 2026
#1513 gave CodevisorUITests its own resources (Fixtures), so the test
target now has its own Bundle.module. The mascot symbol test's
`bundle: .module` stopped meaning CodevisorUI's bundle and looked the
symbols up in the test bundle, which has none, failing checks-swift on
every merge since. The apps were never affected: CodevisorSymbol loads
from CodevisorUI's own bundle, which still has all four symbols.

The test now draws each symbol through CodevisorSymbol.nsImage, the
same lookup the app uses.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant