feat(ui): [CPU] chip + tooltip on voice slot card (PR-15)#186
Merged
Conversation
Surfaces the kokoro:cpu constraint locked in plan §1 #2 + ADR-0008 §2 as a small "[CPU]" chip with hover/focus tooltip on the voice slot card's TTS sub-section. Hard-coded to provider === 'kokoro' per plan; no device-detection logic. GPU-accelerated TTS lands in v0.3. Chip also added to SlotCard.vue header for any custom kokoro slot operators add outside the capability surface — same disclosure, same neutral slate palette (info, not warning). Both chips share verbatim copy: "Kokoro TTS runs on CPU in v0.2. GPU-accelerated TTS is planned for v0.3." A11y: chip is focusable with `tabindex="0"` so keyboard users see the native title= tooltip; aria-label carries the full disclosure for screen-reader users. Tests: ui/tests/e2e/specs/lemonade-voice-chip.spec.ts — kokoro present → chip visible + correct aria-label; non-kokoro provider → chip absent; tooltip text matches the brief verbatim. Mocks /api/capabilities to mount VoiceCard's TTS sub-section in isolation. Plan §11 PR-15. ADR-0008 §2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR-15 of the hal0 v0.2 Lemonade migration — last of Phase 4. Surfaces the locked
kokoro:cpuconstraint as a small[CPU]chip with tooltip on the voice slot card.selection.tts.provider === 'kokoro'.provider === 'kokoro', so custom kokoro slots operators create outside the capability surface get the same disclosure.provider === 'kokoro'per plan §1 fix(ci): clear ruff lint + format errors blocking CI #2 — no device-detection logic. GPU-accelerated TTS lands in v0.3.tabindex="0") so keyboard users see the nativetitle=tooltip;aria-labelcarries the full disclosure for screen-reader users.Tooltip copy (verbatim):
Kokoro TTS runs on CPU in v0.2. GPU-accelerated TTS is planned for v0.3.References: plan §1 #2, §11 PR-15 (
docs/internal/lemonade-adoption-plan-2026-05-22.md); ADR-0008 §2 (docs/internal/adr/0008-lemonade-adoption.md).Test plan
tests/e2e/specs/lemonade-voice-chip.spec.ts— 3 cases:dashboard-lemonade-state.spec.ts,slot-lifecycle.spec.ts,dashboard.spec.tsall greenpytest tests/— 1616 passed, 8 skipped (no Python touched)npm run buildclean🤖 Generated with Claude Code