Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Let the candidate undo Continue without camera in the preflight

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

维护者通常 1 天内回复

@HALA1028 已经在做这个了。

开始于 2026年10月16日。

评估

这个 Issue 还没有评估数据。

描述

Observed behavior

In the media preflight of an unrecorded interview, clicking "Continue without camera" marks the camera step as done ("Not used (no_device)" or "Not used (denied)") and hides the button. Nothing on the page brings the camera back before the interview starts. A candidate who clicks it by mistake, or who plugs in or frees a camera afterwards, can only reload the page or go back to the lobby and start over.

Expected behavior

Until "Start interview" is pressed, the candidate can switch back to using the camera, and the camera step returns to its normal check.

Reproduction
  1. Run codetrial web and start an unrecorded interview.
  2. In the media preflight, click "Continue without camera".
  3. Look for a way to use the camera again before starting.
Environment

OS: Windows 10
Browser: Google Chrome 152

Initial analysis

The skip handler in web/interview.js sets cameraSkipped, calls pool.disable("video") and writes the Meet presentation choice back to off. refresh() then keeps #camera-skip hidden with recordingEnabled || cameraSkipped, a line tests/browser/dom-contract.test.js pins. createDevicePool in web/devices.js has disable(kind) but no counterpart, so a disabled device is never requested again. The skip is only read when the preflight resolves, so undoing it before Start would not affect any report.

Proposed change

Turn the skip button into a toggle ("Use camera" once skipped), add an enable(kind) to the device pool that clears disabled and requests the device again, and restart the face check when the new track arrives. The Meet presentation box stays unchecked after an undo rather than restoring a choice the candidate never made again. Tests: a device pool test that a re-enabled device is requested again, and a preflight test that skipping and then undoing leaves the camera step pending until a live track arrives. I would like to work on this if the direction looks right.

主要语言
Rust
星标
160
派生
64
平均合并
1 天 10 小时
30 天内合并 PR
116

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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