From 5628546d4a5eaf722f1b6716466a162d7402f75b Mon Sep 17 00:00:00 2001 From: alpha Date: Mon, 23 Nov 2026 21:24:08 -0600 Subject: [PATCH 1/8] feat(app-state): expose hasContextData to renderer The renderer summary carries only a flag, like hasProfileData, so the full job context stays out of the broadcast. Refs #156 Co-Authored-By: Claude Opus 5.5 --- src/main/services/app-state.service.ts | 1 + src/main/types/app-state.ts | 1 + src/renderer/hooks/use-app-state.tsx | 2 +- src/renderer/types/app-state.ts | 1 + test/app-state.test.mjs | 22 ++++++++++++++-------- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/main/services/app-state.service.ts b/src/main/services/app-state.service.ts index a94f1b0b..84f4fb29 100644 --- a/src/main/services/app-state.service.ts +++ b/src/main/services/app-state.service.ts @@ -163,6 +163,7 @@ export class AppStateService { // needs the trim at all, to keep whitespace from reading as a set profile. hasProfileData: interviewConfig.profileData.length > 0 && interviewConfig.profileData.trim() !== '', + hasContextData: interviewConfig.context.length > 0 && interviewConfig.context.trim() !== '', }, }; } diff --git a/src/main/types/app-state.ts b/src/main/types/app-state.ts index 60ee72dd..193bf564 100644 --- a/src/main/types/app-state.ts +++ b/src/main/types/app-state.ts @@ -86,6 +86,7 @@ export interface InterviewConfig { export interface InterviewConfigSummary { fullName: string; hasProfileData: boolean; + hasContextData: boolean; } export interface AppState { diff --git a/src/renderer/hooks/use-app-state.tsx b/src/renderer/hooks/use-app-state.tsx index 836dc360..771dcb72 100644 --- a/src/renderer/hooks/use-app-state.tsx +++ b/src/renderer/hooks/use-app-state.tsx @@ -45,7 +45,7 @@ class AppStateManager { userRole: raw.userRole, providedLLMModel: raw.providedLLMModel, creditsPerMinute: raw.creditsPerMinute, - interviewConfig: raw.interviewConfig ?? { fullName: '', hasProfileData: false }, + interviewConfig: raw.interviewConfig ?? { fullName: '', hasProfileData: false, hasContextData: false }, interviewConfigLoaded: raw.interviewConfigLoaded ?? false, // Defaults false, which is the safe direction: a main process that does not send it offers // the wizard rather than silently retiring it. diff --git a/src/renderer/types/app-state.ts b/src/renderer/types/app-state.ts index 74174029..44a29f91 100644 --- a/src/renderer/types/app-state.ts +++ b/src/renderer/types/app-state.ts @@ -29,6 +29,7 @@ export interface InterviewConfig { export interface InterviewConfigSummary { fullName: string; hasProfileData: boolean; + hasContextData: boolean; } export interface AppState { diff --git a/test/app-state.test.mjs b/test/app-state.test.mjs index f80130ac..4f2f5034 100644 --- a/test/app-state.test.mjs +++ b/test/app-state.test.mjs @@ -46,6 +46,7 @@ export async function run() { const view = appStateService.getRendererState(); check('renderer view exposes fullName', view.interviewConfig.fullName === 'Jane'); check('renderer view exposes hasProfileData', view.interviewConfig.hasProfileData === true); + check('renderer view exposes hasContextData', view.interviewConfig.hasContextData === true); check('renderer view drops profileData', !('profileData' in view.interviewConfig)); check('renderer view drops context', !('context' in view.interviewConfig)); check('renderer view keeps the loaded flag', view.interviewConfigLoaded === true); @@ -89,6 +90,17 @@ export async function run() { 'whitespace-only profile is not reported as set', appStateService.getRendererState().interviewConfig.hasProfileData === false ); + check( + 'empty context is reported as unset', + appStateService.getRendererState().interviewConfig.hasContextData === false + ); + appStateService.updateState({ + interviewConfig: { fullName: 'Jane', profileData: 'cv', context: ' \n\t ' }, + }); + check( + 'whitespace-only context is not reported as set', + appStateService.getRendererState().interviewConfig.hasContextData === false + ); // Clear resets the state through setPlaceholderState. It is the one mutator that used to skip // the broadcast, so the reset landed in main and the renderer kept showing the old content @@ -165,10 +177,7 @@ export async function run() { ); appStateService.updateState({ creditsPerMinute: 12 }); - check( - 'creditsPerMinute is applied', - appStateService.getState().creditsPerMinute === 12 - ); + check('creditsPerMinute is applied', appStateService.getState().creditsPerMinute === 12); check( 'creditsPerMinute reaches the renderer view', appStateService.getRendererState().creditsPerMinute === 12 @@ -178,10 +187,7 @@ export async function run() { const beforeRepeatedPing = sent.length; appStateService.updateState({ creditsPerMinute: 12 }); appStateService.flushRenderer(); - check( - 'an unchanged creditsPerMinute does not rebroadcast', - sent.length === beforeRepeatedPing - ); + check('an unchanged creditsPerMinute does not rebroadcast', sent.length === beforeRepeatedPing); return failures; } From 456dbd1a3d91d6e2685224de74661b0323d5c858 Mon Sep 17 00:00:00 2001 From: alpha Date: Mon, 23 Nov 2026 21:24:18 -0600 Subject: [PATCH 2/8] feat: confirm interview context before starting The job context is account-wide and outlives the interview it was written for, so a set context is not necessarily a current one. Ask before every live and mock start, with copy for both the empty and the set case. Live asks on the home screen before navigating to /main; the command palette's live start now routes through home for the same reason. Mock asks on Start in the setup dialog, ahead of the headphone notice. Refs #156 Co-Authored-By: Claude Opus 5.5 --- .../components/custom/command-palette.tsx | 4 +- .../custom/context-reminder-dialog.tsx | 104 ++++++++++++++++++ .../custom/mock-interview-setup-dialog.tsx | 24 +++- .../hooks/use-mock-interview-setup-form.ts | 14 ++- src/renderer/i18n/locales/de.ts | 14 +++ src/renderer/i18n/locales/en.ts | 14 +++ src/renderer/i18n/locales/es.ts | 14 +++ src/renderer/i18n/locales/fr.ts | 14 +++ src/renderer/i18n/locales/ja.ts | 13 +++ src/renderer/i18n/locales/ko.ts | 13 +++ src/renderer/i18n/locales/pt.ts | 14 +++ src/renderer/i18n/locales/ru.ts | 14 +++ src/renderer/i18n/locales/zh.ts | 13 +++ src/renderer/pages/home/index.tsx | 25 ++++- 14 files changed, 288 insertions(+), 6 deletions(-) create mode 100644 src/renderer/components/custom/context-reminder-dialog.tsx diff --git a/src/renderer/components/custom/command-palette.tsx b/src/renderer/components/custom/command-palette.tsx index c14e33ef..23e5d1cd 100644 --- a/src/renderer/components/custom/command-palette.tsx +++ b/src/renderer/components/custom/command-palette.tsx @@ -191,8 +191,10 @@ export function CommandPalette() { {t.commandPalette.startMock} )} + {/* Through home, like the mock entry: the context confirmation is asked there, + before anything navigates to `/main`. */} run(() => navigate('/main', { state: { autoStartLive: true } }))} + onSelect={() => run(() => navigate('/', { state: { openLiveStart: true } }))} > {t.commandPalette.startLive} diff --git a/src/renderer/components/custom/context-reminder-dialog.tsx b/src/renderer/components/custom/context-reminder-dialog.tsx new file mode 100644 index 00000000..34ac3e19 --- /dev/null +++ b/src/renderer/components/custom/context-reminder-dialog.tsx @@ -0,0 +1,104 @@ +import { FileText, Play } from 'lucide-react'; + +import { Button } from '@/components/ui/button'; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from '@/components/ui/dialog'; +import { useT } from '@/i18n'; + +interface ContextReminderDialogProps { + open: boolean; + onOpenChange: (open: boolean) => void; + /** Picks the copy: an empty context is reported as missing, a set one is asked about. */ + hasContext: boolean; + onProceed: () => void; + onEditContext: () => void; + /** + * Esc or a click on the overlay. Kept apart from `onOpenChange(false)` for the same reason the + * headphone notice keeps it apart: both buttons close through that too. + */ + onCancel?: () => void; +} + +/** + * Raised before every live and mock session to confirm the account's job context fits it. + * + * The context is one account-wide value that outlives the interview it was written for, so a + * set context is not a current one: a candidate moving between applications starts the next + * interview against the last job description, and every suggestion is quietly tailored to the + * wrong role. Nothing downstream can tell, so it is asked every time, like the headphone notice. + */ +export default function ContextReminderDialog({ + open, + onOpenChange, + hasContext, + onProceed, + onEditContext, + onCancel, +}: ContextReminderDialogProps) { + const t = useT(); + const copy = hasContext + ? { + title: t.contextReminder.setTitle, + description: t.contextReminder.setDescription, + edit: t.contextReminder.review, + proceed: t.contextReminder.confirm, + } + : { + title: t.contextReminder.title, + description: t.contextReminder.description, + edit: t.contextReminder.edit, + proceed: t.contextReminder.proceed, + }; + + const handleDismiss = () => { + onOpenChange(false); + onCancel?.(); + }; + + const handleEdit = () => { + onOpenChange(false); + onEditContext(); + }; + + const handleProceed = () => { + onOpenChange(false); + onProceed(); + }; + + return ( + (next ? onOpenChange(true) : handleDismiss())}> + + +
+ +
+ {copy.title} + + {copy.description} + +
+ +

+ {t.contextReminder.hint} +

+ + + + + +
+
+ ); +} diff --git a/src/renderer/components/custom/mock-interview-setup-dialog.tsx b/src/renderer/components/custom/mock-interview-setup-dialog.tsx index f6e605e5..35fabba7 100644 --- a/src/renderer/components/custom/mock-interview-setup-dialog.tsx +++ b/src/renderer/components/custom/mock-interview-setup-dialog.tsx @@ -1,3 +1,4 @@ +import ContextReminderDialog from '@/components/custom/context-reminder-dialog'; import HeadphoneNoticeDialog from '@/components/custom/headphone-notice-dialog'; import { MockInterviewSetupFields } from '@/components/custom/mock-interview-setup-fields'; import { Button } from '@/components/ui/button'; @@ -41,6 +42,11 @@ export function MockInterviewSetupDialog({ starting, headphoneNoticeOpen, setHeadphoneNoticeOpen, + hasContext, + contextReminderOpen, + setContextReminderOpen, + confirmContext, + editContext, handleStartClick, startAfterNotice, } = form; @@ -54,7 +60,10 @@ export function MockInterviewSetupDialog({ Only `open` is computed; this component stays mounted either way, so the form state lives through the notice and comes back untouched if the candidate cancels out of it. */} - + {t.mock.setup.title} @@ -74,6 +83,19 @@ export function MockInterviewSetupDialog({ + {/* No onCancel: backing out returns to the setup form, which stays mounted underneath. */} + { + onOpenChange(false); + editContext(); + }} + /> + { if (!checkCanStart()) return; - setHeadphoneNoticeOpen(true); + // The questions and the scoring are framed by the account's job context, which may still + // describe the last application rather than this one. + setContextReminderOpen(true); }; + const confirmContext = () => setHeadphoneNoticeOpen(true); + + const editContext = () => navigate('/account'); + return { seniority, setSeniority, @@ -125,6 +132,11 @@ export function useMockInterviewSetupForm(onStart: (setup: MockInterviewSetup) = starting, headphoneNoticeOpen, setHeadphoneNoticeOpen, + hasContext: appState?.interviewConfig?.hasContextData ?? false, + contextReminderOpen, + setContextReminderOpen, + confirmContext, + editContext, handleStartClick, startAfterNotice, }; diff --git a/src/renderer/i18n/locales/de.ts b/src/renderer/i18n/locales/de.ts index e5719781..21b6f246 100644 --- a/src/renderer/i18n/locales/de.ts +++ b/src/renderer/i18n/locales/de.ts @@ -777,6 +777,20 @@ export const de: Translation = { permissionGate: { title: 'Berechtigungen erforderlich', + contextReminder: { + title: 'Kein Interviewkontext hinterlegt', + description: + 'Vorschläge entstehen dann nur aus deinem Profil, ohne die Stelle zu kennen, für die du dich bewirbst.', + hint: 'Füge die Stellenbeschreibung, Notizen aus früheren Runden, ein Anschreiben oder andere Infos zu diesem Interview hinzu, damit die Antworten darauf zugeschnitten sind.', + edit: 'Kontext hinzufügen', + proceed: 'Trotzdem starten', + setTitle: 'Ist dein Kontext aktuell?', + setDescription: + 'Vorschläge richten sich nach dem Kontext in deinem Konto. Beschreibt er noch ein früheres Interview, passen die Antworten zur falschen Stelle.', + review: 'Kontext prüfen', + confirm: 'Er ist aktuell', + }, + microphone: 'Mikrofon', micChecking: 'Wird geprüft…', micGranted: 'Zugriff erlaubt', diff --git a/src/renderer/i18n/locales/en.ts b/src/renderer/i18n/locales/en.ts index 924ec456..520d14ff 100644 --- a/src/renderer/i18n/locales/en.ts +++ b/src/renderer/i18n/locales/en.ts @@ -787,6 +787,20 @@ export const en = { permissionGate: { title: 'Permissions Required', + contextReminder: { + title: 'No interview context set', + description: + 'Suggestions will be written from your profile alone, without knowing the role you are interviewing for.', + hint: 'Add the job description, notes from earlier rounds, a cover letter, or anything else about this interview for answers tailored to it.', + edit: 'Add context', + proceed: 'Start anyway', + setTitle: 'Is your context up to date?', + setDescription: + 'Suggestions are tailored to the context saved on your account. If it still describes an earlier interview, answers will be written for the wrong role.', + review: 'Review context', + confirm: 'It is up to date', + }, + microphone: 'Microphone', micChecking: 'Checking…', micGranted: 'Access granted', diff --git a/src/renderer/i18n/locales/es.ts b/src/renderer/i18n/locales/es.ts index ddc0309e..39baa6af 100644 --- a/src/renderer/i18n/locales/es.ts +++ b/src/renderer/i18n/locales/es.ts @@ -774,6 +774,20 @@ export const es: Translation = { permissionGate: { title: 'Permisos necesarios', microphone: 'Micrófono', + contextReminder: { + title: 'No has añadido contexto de la entrevista', + description: + 'Las sugerencias se basarán solo en tu perfil, sin conocer el puesto al que aspiras.', + hint: 'Añade la descripción del puesto, notas de rondas anteriores, una carta de presentación o cualquier otro dato de esta entrevista para recibir respuestas adaptadas.', + edit: 'Añadir contexto', + proceed: 'Empezar igualmente', + setTitle: '¿Tu contexto está actualizado?', + setDescription: + 'Las sugerencias se adaptan al contexto guardado en tu cuenta. Si aún describe una entrevista anterior, las respuestas apuntarán al puesto equivocado.', + review: 'Revisar contexto', + confirm: 'Está actualizado', + }, + micChecking: 'Comprobando…', micGranted: 'Acceso concedido', micBlocked: 'Actívalo en Ajustes del Sistema y pulsa Comprobar de nuevo', diff --git a/src/renderer/i18n/locales/fr.ts b/src/renderer/i18n/locales/fr.ts index 936e4333..3e11ada6 100644 --- a/src/renderer/i18n/locales/fr.ts +++ b/src/renderer/i18n/locales/fr.ts @@ -778,6 +778,20 @@ export const fr: Translation = { permissionGate: { title: 'Autorisations requises', + contextReminder: { + title: 'Aucun contexte d’entretien', + description: + 'Les suggestions seront rédigées à partir de votre profil seul, sans connaître le poste visé.', + hint: 'Ajoutez l’offre d’emploi, des notes des tours précédents, une lettre de motivation ou tout autre élément sur cet entretien pour des réponses adaptées.', + edit: 'Ajouter un contexte', + proceed: 'Démarrer quand même', + setTitle: 'Votre contexte est-il à jour ?', + setDescription: + 'Les suggestions s’appuient sur le contexte enregistré dans votre compte. S’il décrit encore un entretien précédent, les réponses viseront le mauvais poste.', + review: 'Vérifier le contexte', + confirm: 'Il est à jour', + }, + microphone: 'Micro', micChecking: 'Vérification…', micGranted: 'Accès autorisé', diff --git a/src/renderer/i18n/locales/ja.ts b/src/renderer/i18n/locales/ja.ts index 51e9a3d4..ef0db75b 100644 --- a/src/renderer/i18n/locales/ja.ts +++ b/src/renderer/i18n/locales/ja.ts @@ -759,6 +759,19 @@ export const ja: Translation = { permissionGate: { title: '権限が必要です', + contextReminder: { + title: '面接のコンテキストが未設定です', + description: '応募する職種がわからないまま、プロフィールだけを元に提案が作成されます。', + hint: '求人票、これまでの面接のメモ、カバーレターなど、この面接に関する情報を追加すると、より的確な回答になります。', + edit: 'コンテキストを追加', + proceed: 'このまま開始', + setTitle: 'コンテキストは最新ですか?', + setDescription: + '提案はアカウントに保存されたコンテキストに合わせて作成されます。以前の面接の内容のままだと、別の職種向けの回答になります。', + review: 'コンテキストを確認', + confirm: '最新です', + }, + microphone: 'マイク', micChecking: '確認中…', micGranted: '許可されています', diff --git a/src/renderer/i18n/locales/ko.ts b/src/renderer/i18n/locales/ko.ts index f843b614..77685d1d 100644 --- a/src/renderer/i18n/locales/ko.ts +++ b/src/renderer/i18n/locales/ko.ts @@ -747,6 +747,19 @@ export const ko: Translation = { permissionGate: { title: '권한이 필요합니다', + contextReminder: { + title: '면접 컨텍스트가 설정되지 않았습니다', + description: '지원하는 직무를 모른 채 프로필만으로 제안이 작성됩니다.', + hint: '채용 공고, 이전 면접 메모, 자기소개서 등 이번 면접에 관한 정보를 추가하면 더 잘 맞는 답변을 받을 수 있습니다.', + edit: '컨텍스트 추가', + proceed: '그냥 시작', + setTitle: '컨텍스트가 최신인가요?', + setDescription: + '제안은 계정에 저장된 컨텍스트에 맞춰 작성됩니다. 이전 면접 내용이 그대로라면 다른 직무에 맞는 답변이 나옵니다.', + review: '컨텍스트 확인', + confirm: '최신입니다', + }, + microphone: '마이크', micChecking: '확인 중…', micGranted: '허용됨', diff --git a/src/renderer/i18n/locales/pt.ts b/src/renderer/i18n/locales/pt.ts index a4bc9989..e29fce1f 100644 --- a/src/renderer/i18n/locales/pt.ts +++ b/src/renderer/i18n/locales/pt.ts @@ -759,6 +759,20 @@ export const pt: Translation = { permissionGate: { title: 'Permissões necessárias', + contextReminder: { + title: 'Nenhum contexto da entrevista', + description: + 'As sugestões serão escritas só a partir do seu perfil, sem saber a vaga para a qual você está concorrendo.', + hint: 'Adicione a descrição da vaga, anotações de etapas anteriores, uma carta de apresentação ou qualquer outra informação sobre esta entrevista para respostas sob medida.', + edit: 'Adicionar contexto', + proceed: 'Começar assim mesmo', + setTitle: 'Seu contexto está atualizado?', + setDescription: + 'As sugestões seguem o contexto salvo na sua conta. Se ele ainda descreve uma entrevista anterior, as respostas serão escritas para a vaga errada.', + review: 'Revisar contexto', + confirm: 'Está atualizado', + }, + microphone: 'Microfone', micChecking: 'Verificando…', micGranted: 'Acesso concedido', diff --git a/src/renderer/i18n/locales/ru.ts b/src/renderer/i18n/locales/ru.ts index d976bb64..17a8cb92 100644 --- a/src/renderer/i18n/locales/ru.ts +++ b/src/renderer/i18n/locales/ru.ts @@ -801,6 +801,20 @@ export const ru: Translation = { permissionGate: { title: 'Нужны разрешения', + contextReminder: { + title: 'Контекст интервью не задан', + description: + 'Подсказки будут строиться только по вашему профилю, без знания должности, на которую вы проходите интервью.', + hint: 'Добавьте описание вакансии, заметки с прошлых этапов, сопроводительное письмо или что-то ещё об этом интервью, чтобы ответы были точнее.', + edit: 'Добавить контекст', + proceed: 'Всё равно начать', + setTitle: 'Контекст актуален?', + setDescription: + 'Подсказки опираются на контекст, сохранённый в аккаунте. Если он описывает прошлое интервью, ответы будут написаны под другую должность.', + review: 'Проверить контекст', + confirm: 'Он актуален', + }, + microphone: 'Микрофон', micChecking: 'Проверяем…', micGranted: 'Доступ разрешён', diff --git a/src/renderer/i18n/locales/zh.ts b/src/renderer/i18n/locales/zh.ts index c3b94a6c..23090dc3 100644 --- a/src/renderer/i18n/locales/zh.ts +++ b/src/renderer/i18n/locales/zh.ts @@ -727,6 +727,19 @@ export const zh: Translation = { permissionGate: { title: '需要权限', + contextReminder: { + title: '尚未设置面试背景', + description: '建议将仅根据你的个人资料生成,而不了解你应聘的职位。', + hint: '添加职位描述、之前轮次的笔记、求职信或与本次面试相关的其他信息,以获得更有针对性的回答。', + edit: '添加背景', + proceed: '仍然开始', + setTitle: '面试背景是最新的吗?', + setDescription: + '建议会根据账户中保存的背景生成。如果它仍是上一场面试的内容,回答将针对错误的职位。', + review: '检查背景', + confirm: '已是最新', + }, + microphone: '麦克风', micChecking: '检查中…', micGranted: '已授权', diff --git a/src/renderer/pages/home/index.tsx b/src/renderer/pages/home/index.tsx index 737fc56e..3ea06124 100644 --- a/src/renderer/pages/home/index.tsx +++ b/src/renderer/pages/home/index.tsx @@ -3,6 +3,7 @@ import { useEffect, useRef, useState } from 'react'; import { useLocation, useNavigate } from 'react-router-dom'; import { AmbientBackground } from '@/components/custom/ambient-background'; +import ContextReminderDialog from '@/components/custom/context-reminder-dialog'; import { MockInterviewSetupDialog } from '@/components/custom/mock-interview-setup-dialog'; import { useAppState } from '@/hooks/use-app-state'; import { useCommandPaletteStore } from '@/hooks/use-command-palette'; @@ -151,6 +152,7 @@ export default function HomePage() { ); const [mockSetupOpen, setMockSetupOpen] = useState(false); + const [liveContextOpen, setLiveContextOpen] = useState(false); // "Practise again" on the mock report has nowhere of its own to configure the next session, so // it comes back here with a flag rather than making the candidate find the card again. Guarded @@ -158,8 +160,8 @@ export default function HomePage() { // `/main`: a Back to this entry then finds nothing to reopen. const consumedNavKey = useRef(null); useEffect(() => { - const navState = location.state as { openMockSetup?: boolean } | null; - if (!navState?.openMockSetup) return; + const navState = location.state as { openMockSetup?: boolean; openLiveStart?: boolean } | null; + if (!navState?.openMockSetup && !navState?.openLiveStart) return; if (consumedNavKey.current === location.key) return; // Consumed before the checks below, not after: the flag is spent either way, so that clearing @@ -167,6 +169,13 @@ export default function HomePage() { consumedNavKey.current = location.key; navigate(location.pathname, { replace: true, state: null }); + // The command palette's live start, sent here so the context is confirmed before `/main`. + if (navState.openLiveStart) { + if (liveSessionActive) navigate('/main'); + else if (!mockSessionActive) setLiveContextOpen(true); + return; + } + if (liveSessionActive) return; // "Practise again" sits on a report the candidate is still reading when the backend can be // rolled back under them. @@ -200,8 +209,10 @@ export default function HomePage() { // `/main`'s control panel runs the start sequence on arrival. Handed through router state // rather than started here so there is exactly one implementation of it. Already running, // this is just the way back to the interview. + // Asked here rather than on `/main`, so reviewing the context is a step to the account page + // and not a start abandoned halfway through on the live console. if (liveSessionActive) navigate('/main'); - else navigate('/main', { state: { autoStartLive: true } }); + else setLiveContextOpen(true); }; // The dialog has already validated and shown its own headphone notice by the time this runs. @@ -310,6 +321,14 @@ export default function HomePage() { + navigate('/main', { state: { autoStartLive: true } })} + onEditContext={() => navigate('/account')} + /> + Date: Mon, 23 Nov 2026 21:24:19 -0600 Subject: [PATCH 3/8] feat(account): shorter profile and context fields Shrink both textareas and name what belongs in each beside the label: Profile (CV, resume, ...) and Context (job description, ...). Refs #156 Co-Authored-By: Claude Opus 5.5 --- .../components/custom/settings/profile-fields.tsx | 15 ++++++++++++--- src/renderer/i18n/locales/de.ts | 6 ++++-- src/renderer/i18n/locales/en.ts | 6 ++++-- src/renderer/i18n/locales/es.ts | 9 ++++++--- src/renderer/i18n/locales/fr.ts | 6 ++++-- src/renderer/i18n/locales/ja.ts | 6 ++++-- src/renderer/i18n/locales/ko.ts | 6 ++++-- src/renderer/i18n/locales/pt.ts | 6 ++++-- src/renderer/i18n/locales/ru.ts | 6 ++++-- src/renderer/i18n/locales/zh.ts | 6 ++++-- 10 files changed, 50 insertions(+), 22 deletions(-) diff --git a/src/renderer/components/custom/settings/profile-fields.tsx b/src/renderer/components/custom/settings/profile-fields.tsx index 3a974cb2..a7c5a1e6 100644 --- a/src/renderer/components/custom/settings/profile-fields.tsx +++ b/src/renderer/components/custom/settings/profile-fields.tsx @@ -38,6 +38,11 @@ function FieldLimitNotice({ value, max }: { value: string; max: number }) { ); } +/** What belongs in a field, beside its name rather than in it, so the short name still reads alone. */ +function FieldKinds({ text }: { text: string }) { + return ({text}); +} + function RequiredMark() { return (