mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
Use neutral voice dictation demo prompt
This commit is contained in:
@@ -47,7 +47,7 @@ describe('VoiceDictationFeatureTipVisual', () => {
|
||||
expect(prompt?.textContent).toBe('R')
|
||||
await act(async () => vi.runAllTimers())
|
||||
expect(prompt?.textContent).toBe(
|
||||
'Refactor the voice setup flow and add coverage for the permission states.'
|
||||
'Review this diff for edge cases and add tests for anything you find.'
|
||||
)
|
||||
expect(vi.getTimerCount()).toBe(0)
|
||||
|
||||
@@ -69,7 +69,7 @@ describe('VoiceDictationFeatureTipVisual', () => {
|
||||
const { container, root } = await renderVisual()
|
||||
|
||||
expect(container.textContent).toContain(
|
||||
'Refactor the voice setup flow and add coverage for the permission states.'
|
||||
'Review this diff for edge cases and add tests for anything you find.'
|
||||
)
|
||||
expect(container.innerHTML).not.toContain('animate-waveform')
|
||||
expect(setTimeoutSpy).not.toHaveBeenCalled()
|
||||
|
||||
@@ -14,7 +14,7 @@ export function VoiceDictationFeatureTipVisual(): JSX.Element {
|
||||
const shortcut = useShortcutKeyDetails('voice.dictation')
|
||||
const dictatedPrompt = translate(
|
||||
'featureTips.voice.demoPrompt',
|
||||
'Refactor the voice setup flow and add coverage for the permission states.'
|
||||
'Review this diff for edge cases and add tests for anything you find.'
|
||||
)
|
||||
const [typedLength, setTypedLength] = useState(0)
|
||||
const effectiveTypedLength = reducedMotion ? dictatedPrompt.length : typedLength
|
||||
|
||||
@@ -14689,7 +14689,7 @@
|
||||
},
|
||||
"featureTips": {
|
||||
"voice": {
|
||||
"demoPrompt": "Refactor the voice setup flow and add coverage for the permission states.",
|
||||
"demoPrompt": "Review this diff for edge cases and add tests for anything you find.",
|
||||
"startDictation": "Start dictation",
|
||||
"agentPromptTitle": "Agent prompt",
|
||||
"listening": "Listening...",
|
||||
|
||||
Reference in New Issue
Block a user