Add a Copy results action to the coding test panel

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

维护者通常 1 天内回复

@seallllllllll 已经在做这个了。

开始于 2026年11月6日。

评估

这个 Issue 还没有评估数据。

描述

Motivation

Candidates running coding tests may need to reuse compiler diagnostics or failed test results while debugging their solutions. Currently, copying the output requires manually selecting text in the test results panel.

A dedicated Copy results action would make it easier to preserve diagnostic information without changing the test execution workflow.

Desired behavior

Add a Copy results action to the existing Test results panel.

The action should:

  • Copy the current test results as plain text, preserving line breaks and diagnostic messages.
  • Display brief confirmation after a successful copy.
  • Display an accessible error message when clipboard access fails.
  • Be unavailable when no test results exist.
  • Avoid changing test execution, result filtering, candidate code, or interview state.

Scope

The first version would be limited to the coding test results panel. It would not introduce downloads, persistent test history, new test execution behavior, or changes to the final report.

The implementation would reuse existing UI conventions and include browser tests covering successful copying, clipboard failure, and unavailable results.

Acceptance criteria

  1. A candidate can copy the displayed test results with one action.
  2. The copied text preserves the relevant diagnostic information and line breaks.
  3. Clipboard failures do not clear or modify existing results.
  4. The action is unavailable before results exist.
  5. Existing test execution and result filtering remain unchanged.
  6. Automated browser tests cover the new behavior.
主要语言
Rust
星标
223
派生
148
平均合并
1 天 10 小时
30 天内合并 PR
227

环境准备

从这里开始

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

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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