You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add Storybook story for voice input without API key
- Add providersConfig option to setupSimpleChatStory helper
- Add VoiceInputNoApiKey story showing disabled mic with tooltip
- Documents user education for missing OpenAI key
/** Voice input button shows user education when OpenAI API key is not set */
216
+
exportconstVoiceInputNoApiKey: AppStory={
217
+
render: ()=>(
218
+
<AppWithMocks
219
+
setup={()=>{
220
+
setupSimpleChatStory({
221
+
messages: [],
222
+
// No OpenAI key configured - voice button should be disabled with tooltip
223
+
providersConfig: {
224
+
anthropic: {apiKeySet: true},
225
+
// openai deliberately missing
226
+
},
227
+
});
228
+
}}
229
+
/>
230
+
),
231
+
parameters: {
232
+
docs: {
233
+
description: {
234
+
story:
235
+
"Shows the voice input button in disabled state when OpenAI API key is not configured. Hover over the mic icon in the chat input to see the user education tooltip.",
236
+
},
237
+
},
238
+
},
239
+
};
240
+
215
241
/** Streaming/working state with pending tool call */
0 commit comments