Repository navigation
feat(web): add custom bot avatar colors - #258
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
49fe135 to
e0e453b
Compare
Greptile SummaryThis change adds reusable custom avatar color selection across bot creation, avatar editing, and desktop onboarding. The picker accepts validated six-digit hexadecimal colors, supports pointer and keyboard adjustment of saturation, brightness, and hue, and selects avatar eye contrast from the body color. Confidence Score: 5/5Safe to merge. The previous accessibility thread was resolved by leoisadev1 without an explanatory reply; because greptile-apps differs from the resolver, it was manually resolved without explanation. The current picker exposes saturation and brightness with the selected hex value, fully addressing the reported screen-reader behavior. Reviews (2): Last reviewed commit: "fix(web): announce avatar color dimensio..." | Re-trigger Greptile |
Bot avatar colors were limited to the preset palette, and dark custom colors could leave the face unreadable.
This adds a reusable custom color picker alongside the existing presets in bot creation, avatar editing, and desktop onboarding. Custom colors persist as validated six-digit hex values, and the shared avatar renderer now chooses white or near-black eyes from the body color's relative luminance for stronger contrast.
Verification:
pnpm exec vp test run apps/web/src/components/roster/BotAvatarView.test.tsx apps/web/src/components/roster/avatarColorPicker.logic.test.ts apps/web/src/components/roster/roster.logic.test.ts apps/web/src/components/onboarding/desktopOnboarding.logic.test.tspnpm --filter @t3tools/web typecheckvp lintfor all changed filesImplemented with GPT-5.6 Sol in the Codex harness through T3 Code.