Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/renderer/components/custom/settings/mock-hints-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Checkbox } from '@/components/ui/checkbox';
import { useMockLiveSuggestions } from '@/hooks/use-mock-live-suggestions';

/**
* Whether a practice interview also shows what the live assistant would have answered, on the
* Whether a mock interview also shows what the live assistant would have answered, on the
* configuration page and in the first-run wizard.
*
* The same row shape `TranscriptPanelField` uses, and here for the same reason the setting has a
Expand All @@ -15,17 +15,18 @@ export function MockHintsField() {
return (
<label className="flex cursor-pointer items-center justify-between gap-3 rounded-lg border p-3">
<div>
<p className="text-sm font-medium">Show hints in practice interviews</p>
<p className="text-sm font-medium">Show hints in mock interviews</p>
<p className="text-xs text-muted-foreground">
Puts what the live assistant would have answered beside each practice question, so you can
compare it against your own. Turn it off to answer unprompted - you can switch it either
way from the session bar mid-practice. This changes nothing about a real interview.
Puts what the live assistant would have answered beside each mock interview question, so
you can compare it against your own. Turn it off to answer unaided - either way, you can
switch it mid-session from the mock interview bar. This changes nothing about a real
interview.
</p>
</div>
<Checkbox
checked={enabled}
onCheckedChange={(v) => setEnabled(v === true)}
aria-label="Show hints in practice interviews"
aria-label="Show hints in mock interviews"
/>
</label>
);
Expand Down
8 changes: 4 additions & 4 deletions src/renderer/hooks/use-mock-live-suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import { toast } from 'sonner';
import { useConfigStore } from './use-config-store';

/**
* Whether a mock session also generates what the live assistant would have suggested, plus a
* toggle that persists the change.
* Whether a mock interview also generates what the live assistant would have suggested, plus
* setters that persist a change.
*
* Absent means **on**, the same direction `hintOnlyMode` is read in, and the main-process store
* backfills the same default - so the two sides agree about a config written before the setting
* existed. Turning it off is what a candidate does for the run where composing the answer
* unaided is the point, and it is asked in the first-run wizard rather than only discoverable
* on the session bar.
*
* Shared by the session bar, the configuration page and the onboarding wizard. `toggle` reads
* the store imperatively so it stays referentially stable.
* Shared by the mock interview bar, the configuration page and the onboarding wizard. `toggle`
* reads the store imperatively so it stays referentially stable.
*/
export function useMockLiveSuggestions() {
const { config } = useConfigStore();
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/configuration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ZoomField } from '@/components/custom/settings/zoom-field';
import { Button } from '@/components/ui/button';

/**
* How the interview runs: the microphone, the language, how suggestions read, whether practice
* How the interview runs: the microphone, the language, how suggestions read, whether mock
* interviews show them at all, and whether the transcript is docked.
*
* Every control here writes straight through to the config store as it is changed - there is no
Expand Down
6 changes: 3 additions & 3 deletions src/renderer/pages/onboarding/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ const STEPS: Step[] = [
},
{
id: 'mock-hints',
label: 'Practice',
title: 'Hints while you practise?',
label: 'Mock interview',
title: 'Hints in a mock interview?',
description:
'Practice interviews are the ones you run against yourself. This decides whether they hand you the answer as well.',
'A mock interview is where you practise against the AI interviewer. This decides whether it hands you the answer as well.',
},
{
id: 'zoom',
Expand Down