Skip to content

Kap's wardrobe: skins unlocked by achievements - #22

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

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

Conversation

@nannndev

Copy link
Copy Markdown
Owner

Summary

  • 16 items: 7 keycap colours and 9 accessories (head: headphones, party hat, halo; eyes: pixel shades, nerd glasses, monocle; wear: scarf, headband, cape).
  • Each item is unlocked by an achievement, so progress, sync and unlock moments reuse the badge system.
  • The Wardrobe dialog opens from:
    • a new "Wardrobe" button in the streak panel,
    • the command palette,
    • the achievement toast, which now says "New for Kap: …".
  • The chosen look is stored in codey_kap_look and synced as an account slice. Kap wears it in the header button, streak panel and streak celebration.
  • sanitizeLook drops locked or unknown items, so a stale or synced look never shows gear that isn't earned.

Test plan

  • vitest: 182 tests pass, including new wardrobe tests. Every requirement maps to a real achievement goal.
  • tsc -b and the build pass.
  • Browser check on desktop and mobile: locked items show their unlock goal, toggling works, the look persists, and a stored locked item is dropped.

🤖 Generated with Claude Code

https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu


Generated by Claude Code

…table)

KapMascot takes an optional look; without one Kap renders as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
16 items across keycap colour, head, eyes and wear, each unlocked by an
achievement. The Wardrobe opens from the streak panel, the command palette
and the achievement toast (which names what a badge unlocks). The look is
stored per device, synced to the account, and Kap wears it in the header,
streak panel and streak celebration. Locked or unknown items are dropped
from a stored look, so synced data can never show gear not yet earned.

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 9:30am UTC

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

This branch was successfully deployed

1 active deployment
Preview — 7bbeea91 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