Skip to content

Commit 43a804e

Browse files
feat(whispering): show mode-specific instructions
Previously the instruction text always showed manual recording instructions ('Click the microphone or press Space') regardless of which recording mode was selected. This was confusing in Upload File mode where there's no microphone button. Now the instructions update based on the selected mode: - Manual: 'Click the microphone or press Space/global shortcut' - Voice Activated: 'Click the microphone or press V to start a voice activated session' - Upload File: 'Drag files here or click to browse. Press global shortcut to start recording instead' Co-authored-by: Harsh Kumar <[email protected]>
1 parent dcb25f9 commit 43a804e

File tree

1 file changed

+57
-20
lines changed

1 file changed

+57
-20
lines changed

apps/whispering/src/routes/(app)/+page.svelte

Lines changed: 57 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -320,35 +320,72 @@
320320
{/if}
321321

322322
<div class="xs:flex hidden flex-col items-center gap-3">
323-
<p class="text-foreground/75 text-center text-sm">
324-
Click the microphone or press
325-
{' '}<Link
326-
tooltip="Go to local shortcut in settings"
327-
href="/settings/shortcuts/local"
328-
>
329-
<Kbd.Root
330-
>{getShortcutDisplayLabel(
331-
settings.value['shortcuts.local.toggleManualRecording'],
332-
)}</Kbd.Root
323+
{#if settings.value['recording.mode'] === 'manual'}
324+
<p class="text-foreground/75 text-center text-sm">
325+
Click the microphone or press
326+
{' '}<Link
327+
tooltip="Go to local shortcut in settings"
328+
href="/settings/shortcuts/local"
333329
>
334-
</Link>{' '}
335-
to start recording here.
336-
</p>
337-
{#if window.__TAURI_INTERNALS__}
338-
<p class="text-foreground/75 text-sm">
339-
Press
330+
<Kbd.Root
331+
>{getShortcutDisplayLabel(
332+
settings.value['shortcuts.local.toggleManualRecording'],
333+
)}</Kbd.Root
334+
>
335+
</Link>{' '}
336+
to start recording here.
337+
</p>
338+
{#if window.__TAURI_INTERNALS__}
339+
<p class="text-foreground/75 text-sm">
340+
Press
341+
{' '}<Link
342+
tooltip="Go to global shortcut in settings"
343+
href="/settings/shortcuts/global"
344+
>
345+
<Kbd.Root
346+
>{getShortcutDisplayLabel(
347+
settings.value['shortcuts.global.toggleManualRecording'],
348+
)}</Kbd.Root
349+
>
350+
</Link>{' '}
351+
to start recording anywhere.
352+
</p>
353+
{/if}
354+
{:else if settings.value['recording.mode'] === 'vad'}
355+
<p class="text-foreground/75 text-center text-sm">
356+
Click the microphone or press
340357
{' '}<Link
341-
tooltip="Go to global shortcut in settings"
342-
href="/settings/shortcuts/global"
358+
tooltip="Go to local shortcut in settings"
359+
href="/settings/shortcuts/local"
343360
>
344361
<Kbd.Root
345362
>{getShortcutDisplayLabel(
346-
settings.value['shortcuts.global.toggleManualRecording'],
363+
settings.value['shortcuts.local.toggleVadRecording'],
347364
)}</Kbd.Root
348365
>
349366
</Link>{' '}
350-
to start recording anywhere.
367+
to start a voice activated session.
351368
</p>
369+
{:else if settings.value['recording.mode'] === 'upload'}
370+
<p class="text-foreground/75 text-center text-sm">
371+
Drag files here or click to browse.
372+
</p>
373+
{#if window.__TAURI_INTERNALS__}
374+
<p class="text-foreground/75 text-sm">
375+
Press
376+
{' '}<Link
377+
tooltip="Go to global shortcut in settings"
378+
href="/settings/shortcuts/global"
379+
>
380+
<Kbd.Root
381+
>{getShortcutDisplayLabel(
382+
settings.value['shortcuts.global.toggleManualRecording'],
383+
)}</Kbd.Root
384+
>
385+
</Link>{' '}
386+
to start recording instead.
387+
</p>
388+
{/if}
352389
{/if}
353390
<p class="text-muted-foreground text-center text-sm font-light">
354391
{#if !window.__TAURI_INTERNALS__}

0 commit comments

Comments
 (0)