validating-ui-features
БесплатноБез исполняемых скриптовНе проверенProvides step-by-step procedures for validating UI features - theme toggle, new chat, cancel stream, markdown rendering, and token usage info.
Об этом скилле
Validating UI Features
CRITICAL: Load this skill before running any UI validation tests.
Prerequisites
- Local dev servers running (Backend: 8080, Frontend: 5173)
- Playwright MCP tools available
- Authenticated user session (MSAL popup completed)
Quick Test Commands
| Test | Command |
|---|---|
| Start servers | VS Code task: Start Dev (VS Code Terminals) |
| Navigate | browser_navigate to http://localhost:5173 |
| Check state | Look for 🔄 entries in browser console |
Test 1: Theme Toggle (Settings Panel)
Purpose
Verify the Settings panel opens and theme switching works correctly.
UI Flow
ChatInput toolbar → Settings button (gear) → SettingsPanel drawer → ThemePicker dropdown
Steps
- Navigate to
http://localhost:5173 - Wait for authentication and agent metadata load
- Find Settings button in ChatInput toolbar (gear icon, aria-label="Settings")
- Click Settings button
- Verify SettingsPanel drawer opens from right side
- Verify "Appearance" section visible with ThemePicker
- Click ThemePicker dropdown (currently shows "Light" or saved preference)
- Select "Dark" option
- Verify Theme changes:
- Background becomes dark (≈
rgb(32, 31, 30)) - Text becomes light
- No console errors
- Background becomes dark (≈
- Select "Light" option
- Verify Theme changes back:
- Background becomes light (≈
rgb(255, 255, 255)) - Text becomes dark
- Background becomes light (≈
- Select "System" option
- Verify Theme matches OS preference
- Close Settings panel (X button or click outside)
Console Evidence
// No errors should appear
// LocalStorage updated:
localStorage.getItem('ai-foundry-theme') // "Dark", "Light", or "System"
DOM Changes
<body>FluentProvider styles update- CSS variables change:
--colorNeutralBackground1,--colorNeutralForeground1
Pass Criteria
- Settings panel opens/closes without errors
- All three theme options selectable
- Visual theme changes immediately on selection
- Theme persists after closing panel
Test 2: New Chat Button
Purpose
Verify the New Chat button clears messages and resets conversation state.
UI Flow
Send message → Wait for response → Click New Chat button → Verify reset
Prerequisites
- At least one message exchange completed
Steps
- Send a test message:
"Hello, testing new chat button" - Wait for assistant response to complete (status:
idle) - Verify New Chat button is enabled (not grayed out)
- Click New Chat button (ChatAdd icon, aria-label="New chat")
- Verify immediate changes:
- Messages array cleared (empty chat area)
- StarterMessages component visible (agent intro + prompts)
- Input field focused and empty
- New Chat button now disabled (no messages to clear)
Console Evidence
🔄 [timestamp] CHAT_CLEAR
Action: {type: CHAT_CLEAR}
Changes: {
chat.messages.length: N → 0
}
Pass Criteria
- Button disabled when no messages
- Button enabled after first message
- Click clears all messages instantly
- StarterMessages reappear
- conversationId reset to null
- Input field receives focus
- No console errors
Test 3: Cancel Stream (Stop Button)
Purpose
Verify streaming can be cancelled mid-response.
UI Flow
Send long prompt → While streaming → Click Stop button → Verify cancellation
Steps
- Start a new chat (or use existing)
- Send a prompt that triggers a long code response:
Write a comprehensive Python script that calculates Fibonacci numbers using 5 different methods: recursive, memoized, iterative, matrix exponentiation, and Binet's formula. Include detailed docstrings, type hints, performance benchmarks, and unit tests for each method. - Immediately observe:
- Status changes to
streaming - Stop button becomes enabled (aria-label="Cancel response")
- Send button becomes disabled
- Text chunks appearing in assistant message
- Status changes to
- Click Stop button while streaming is active
- Verify cancellation:
- Streaming stops immediately
- Partial response preserved (not deleted)
- Status returns to
idle - Send button re-enabled
- Stop button disabled again
Keyboard Shortcut
- Press
Escapekey during streaming → should also cancel
Console Evidence
🔄 [timestamp] CHAT_CANCEL_STREAM
Action: {type: CHAT_CANCEL_STREAM}
Changes: {
chat.status: streaming → idle,
chat.streamingMessageId: "xxx" → undefined
}
Edge Cases
- Very fast response may complete before cancel → OK, not an error
- Multiple rapid clicks → should be idempotent
Pass Criteria
- Stop button disabled when not streaming
- Stop button enabled during streaming
- Click stops stream immediately
- Partial response text preserved
- Status returns to id
Установить validating-ui-features в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл validating-ui-features?
Provides step-by-step procedures for validating UI features - theme toggle, new chat, cancel stream, markdown rendering, and token usage info.
Как установить скилл validating-ui-features?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validating-ui-features запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic