Skip to content

Confirm interview context, inline password change, soft UI style - #157

Merged
alpha5611331 merged 8 commits into
mainfrom
feat/context-confirm
Nov 24, 2026
Merged

alpha5611331 merged 8 commits into
mainfrom
feat/context-confirm

Conversation

@alpha5611331

@alpha5611331 alpha5611331 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Closes #156

Summary

  • Context confirmation before every session. A dialog asks whether the account's job context fits this interview, with a shortcut to the account page. The wording depends on whether context is set ("Is your context up to date?") or empty ("No interview context set").

    • Live: asked on the home screen before navigating to /main. The command palette's "Start live interview" now routes through home, the way its mock entry already does.
    • Mock: asked on Start in the setup dialog, ahead of the headphone notice.
  • hasContextData added to the renderer's InterviewConfigSummary, the same way as hasProfileData. The full context stays out of the broadcast. Pinned in test/app-state.test.mjs.

  • Account fields: Profile and Context textareas are shorter, and each label names what belongs in it: Profile (CV, resume, LinkedIn, etc.), Context (job description, conversation history, cover letter, etc.). This also applies to the first-run wizard, which shares these fields.

  • Back/forward gestures blocked: mouse side buttons, Alt+Left/Right (Windows/Linux), Cmd+[ / Cmd+] (macOS), and the Browser Back/Forward keys. Option+Left/Right is left alone on macOS because it moves the cursor by a word. The in-app Back button is unaffected.

  • Password change, in place. The password moves into the sign-in card on the account page and opens inline instead of in a dialog, so the profile's Save no longer reads as covering it. Enter submits, a mismatch shows under the confirm field, and a server error clears as you type.

  • Forgot your current password, while signed in. /auth/forgot-password sends a signed-in user home, so a forgotten current password used to be a dead end. The section now emails a reset code to the account address. A reset ends every session, so it asks the save-history guard first, like any sign-out, and signs out here once it succeeds.

  • Account page layout. The profile-completeness card is gone (and its strings). An identity header with initials sits on top, and the profile fields share one card with their Save button.

  • Soft, filled component style. Shared primitives move to borderless filled inputs, a larger base radius (0.5rem to 0.75rem, which rounds every rounded-* in the app), and two new raised-surface utilities, surface and surface-overlay, instead of borders. Heights and paddings are unchanged, so the control bar's fixed slots do not move. Side effects worth knowing: outline buttons are now borderless grey, secondary buttons (only the payment Copy buttons) are a light orange, dropdown labels are small muted text, and tooltips lost their arrow and gained a 4px offset.

New strings are in all 9 locales. The non-English text was written by Claude and needs a native-speaker pass.

Test plan

  • pnpm lint, tsc for both configs, pnpm build, pnpm test:main
  • Home > live card: dialog shows; Review context goes to /account; confirm starts the session; Esc stays on home
  • Command palette > Start live interview: same dialog on home
  • Mock setup > Start: dialog, then headphone notice; Esc returns to the setup form
  • Copy switches between the empty and set context cases
  • Account > Change password: wrong current password shows inline and clears on typing; success collapses the form
  • Account > Forgot your password?: code arrives; reset asks to save an unsaved interview, then lands on sign-in
  • Dialogs, menus, selects, tooltips and the live control bar look right in both light and dark mode
  • Mouse back button and Alt+Left do nothing; Option+Left still moves by word in a textarea on macOS

🤖 Generated with Claude Code

alpha5611331 and others added 4 commits November 23, 2026 21:24
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
Mouse side buttons, Alt+Left/Right, Cmd+[ / Cmd+] and the Browser
Back/Forward keys traversed history past the app's own navigation.
Option+Left/Right is left alone on macOS, where it moves the caret by a
word. The in-app Back button routes through the router and is unaffected.

Refs #156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Gitar is working

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

Gitar

alpha5611331 and others added 4 commits November 23, 2026 21:27
Show the opening of each field so confirming the context is a glance
rather than a recollection. Fetched over account:get on open, since the
app state carries only a summary; each field is sliced before render.
A failed fetch hides the preview instead of reading as "Not set".

Refs #156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Password moves into the sign-in card and opens in place instead of
a dialog, so the profile Save no longer reads as covering it.

Signed-in users could not reach /auth/forgot-password, so a forgotten
current password was a dead end. The section now emails a reset code
to the account address, asks the save-history guard first, and signs
out after the reset since it ends every session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared primitives move to borderless filled inputs, rounder radius
and raised `surface` / `surface-overlay` utilities instead of borders.
Account page drops the completeness card and its strings, gains an
identity header, and keeps profile fields and Save in one card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Account page scrolls through the route container again, so the
  scrollbar stays hidden and the header sticky, like Configuration.
- Password section: no toast beside the inline error when sending a
  reset code fails, and the submit label no longer reads "Changing"
  while the code is being sent.
- Dialog close button sits in the corner so the larger hit area does
  not crowd titles; tooltips get a 4px offset now the arrow is gone.
- Context reminder preview matches the filled surface style.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alpha5611331 alpha5611331 changed the title Confirm interview context before starting a session Confirm interview context, inline password change, soft UI style Nov 24, 2026
@alpha5611331
alpha5611331 merged commit 33691ba into main Nov 24, 2026
1 check passed
@alpha5611331
alpha5611331 deleted the feat/context-confirm branch November 24, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirm interview context before starting a session

1 participant