Let candidates save and switch between named session setups

未关闭
#591 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@domin67 已经在做这个了。

开始于 2026年11月5日。

评估

这个 Issue 还没有评估数据。

描述

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.

主要语言
Rust
星标
223
派生
148
平均合并
1 天 11 小时
30 天内合并 PR
224

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。