Skip to content

Kap on share cards, in the player's Wardrobe look - #23

Merged
nannndev merged 3 commits into
mainfrom
claude/exciting-bell-qakqv7
Sep 27, 2026
Merged

nannndev merged 3 commits into
mainfrom
claude/exciting-bell-qakqv7

Conversation

@nannndev

Copy link
Copy Markdown
Owner

Summary

  • Kap's artwork moves to src/utils/kap-art.ts as SVG markup shared by the app and the API. The React mascot draws its accessories from the same strings, so the cards and the app always match. Flame tiers move to src/utils/flame-tiers.ts, and streak.ts re-exports them.
  • Server cards (run, profile, challenge) show the owner's Kap on a tile in the amber panel:
    • The look is read from the owner's synced account prefs (sync.slices.kapLook).
    • Only items their synced achievements unlock are kept.
    • It falls back to the plain Kap when prefs can't be read.
  • The weekly recap and duel canvas cards draw the local look and current flame.
  • CARD_VERSION is bumped to 5 so cached previews refresh. The share-card test now reads the constant instead of hardcoding the version.

Test plan

  • vitest: 185 tests pass, including new kap-look tests.
  • tsc -b, the API typecheck and the build pass.
  • Rendered the profile, run and challenge OG images locally with @vercel/og, plus the duel canvas card in the browser.
  • The Wardrobe still renders accessories identically.

🤖 Generated with Claude Code

https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu


Generated by Claude Code

Kap's artwork moves to src/utils/kap-art.ts as SVG markup shared by the
app and the API; the React mascot draws accessories from the same strings.
Server cards (run, profile, challenge) read the look from the owner's
synced account prefs, limited to items their synced achievements unlock,
and fall back to the plain Kap. The weekly recap and duel cards draw the
local look. CARD_VERSION 5 refreshes cached previews.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codetype Ready Ready Preview Sep 27, 2026 10:02am UTC

@nannndev
nannndev merged commit 3464333 into main Sep 27, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — b4d51286 Deployed Sep 27, 2026 by vercel[bot]
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.

2 participants