Let candidates save and switch between named session setups

Aperta
#591 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@domin67 ci sta già lavorando.

Dal 5/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Problem

CodeTrial currently remembers only the most recently used session settings.

Try Again can restore the settings from one past attempt, but neither behavior
allows candidates to keep multiple reusable configurations.

Candidates who practice under different interview scenarios must repeatedly
reconfigure the lobby whenever they switch between them.

For example, a candidate may regularly use:

  • a 30-minute coding-only session using the editor;
  • a 60-minute coding-and-behavioral session using the whiteboard; and
  • a 45-minute coding-and-behavioral session using the editor, with code
    execution and syntax highlighting disabled.

Recreating these combinations requires changing Session length, Interview
format, and several Editor options each time.

Desired outcome

Allow candidates to save the current session configuration under a name.

For example, a candidate could save:

  • Quick coding
  • Full mock
  • Whiteboard practice

Candidates can switch between saved setups by selecting a different name from
the list. The corresponding session settings should update immediately.

Proposed first scope

Add a browser-local Saved setups control to the "Set up your session" panel.

A saved setup would include only controls already shown in that panel:

  • session duration;
  • coding-only or coding-and-behavioral loop;
  • editor or whiteboard mode;
  • example drawing and candidate-led coding;
  • editor options.

Candidates should be able to save, switch between, update, and delete saved
setups. Selecting a different setup name should immediately restore its
settings.

The UI should clearly state that saved setups are kept only in the current
browser.

Prototype

A local prototype demonstrates the proposed interaction.

The Presets control opens the Saved setups dialog. Candidates can save the
current settings under a name, select a saved name to immediately restore its
settings, or delete a saved setup.

Lobby
Image
Saved setups
Image
Acceptance criteria
  • Candidates can save multiple session configurations under different names.
  • Selecting a saved setup immediately restores its Session length, Interview
    format, and Editor options.
  • Saving with an existing name updates that setup instead of creating a
    duplicate.
  • Switching setups does not change the selected problem, difficulty filters,
    or optional interview context.
  • Saved setups remain available after reloading the lobby.
  • Existing last-used-setting and Try Again behavior remains unchanged.
Relationship to existing work

This is a follow-up to issue #207 and PR #269, not a replacement for them.
Those changes remember the latest lobby settings and restore settings from a
past attempt. This proposal adds multiple user-named configurations.

If this scope fits the project's lobby workflow direction, please assign the
issue to me. I will wait for scope confirmation before opening a pull request.

Lingua principale
Rust
Stelle
223
Fork
148
Merge medio
1g 11h
PR unite (30g)
224

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.