Jim's compact card covers the right side of Add a case and Test results
维护者通常 1 天内回复
@EnjouWang 已经在做这个了。
开始于 2026年11月21日。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- css, javascript, playwright, rust
调研方向
Start with .jim-stage.compact in web/styles.css and #test-drawer in web/interview.html; compare how issue #512 reserves space for the editor. Reproduce at 1100x800 and inspect the drawer’s scrolling behavior. Done when all Add a case and Test results content can be read and reached without being covered by Jim’s card.
由索引模型根据 Issue 内容生成。
描述
Observed behavior
When Jim's stage is the compact card, below 1200 px wide or beside a narrow editor panel, the card floats over the bottom-right corner of the editor panel, and that corner holds the test drawer. At a 1100x800 viewport after Run tests, the card spans x 816 to 1076 and y 607 to 776, while #test-drawer spans x 393 to 1083 and y 467 to 756, so the right 260 px of the lower part of the drawer are under the card: the right side of the failed cases and of their input, expected and got boxes. Before a run the drawer is shorter and the card covers the right side of the Add a case row instead. In a live interview the card is taller, since it also holds the self-view and the captions, and covers more of the drawer.
Expected behavior
Every part of Add a case and Test results can be read and reached without hiding Jim's card, as the editor can after the change for #512. The maintainer narrowed #512 to the editor and asked for the test drawer to be tracked separately; this issue is that follow-up.
Reproduction
- Open an interview with any problem, for example Chargeback Pair Match in Python, in a window 1100 px wide and 800 px tall, or set the Chrome DevTools device toolbar to 1100x800 at 100% zoom.
- Close the setup check and press Run tests.
- Look at the compact card in the bottom-right corner: it covers the right side of the test results.
CodeTrial version
codetrial 0.1.0 (d349a7e), also seen at e12e406
Environment
OS: Ubuntu 24.04 on WSL2, Windows host
Browser: headless Chromium through Playwright for d349a7e; Chrome on Windows with its fake camera and microphone for e12e406
Language: Python
Interview loop: Practice
Problem: Chargeback Pair Match (first screenshot), Orbital Energy Window (second screenshot)
REACTO or STAR step: any; the layout does not depend on it
Reconnect: none
Sanitized evidence
The first screenshot is the interview page of main at d349a7e, 1100x800, after Run tests. The second is the app at e12e406, 1100x800, where the card also holds the self-view (Chrome's fake camera).
Initial analysis: .jim-stage.compact (web/styles.css:1131 at d349a7e) fixes the card to the bottom-right corner of the window, and #test-drawer (web/interview.html:401) sits below .editor-stack in the same panel, so nothing keeps the drawer's content out from under the card. The change for #512 reserves the card's overlap inside the editor only.
Proposed change
The drawer reserves what the card covers of it, as the editor does after #791; the card stays where it is. reserveJimStageInEditor() already measures the compact card; it also writes the width beside the card, plus the same 6 px gap, as right padding on #candidate-case and #results-body whenever the card overlaps them. Both are ordinary block boxes, so unlike the editor's textarea their right padding narrows what they hold: each result's pre ends before the card, so a long input, which has no spaces to wrap at, scrolls inside it instead of running under the card, and the Expected JSON field moves below Input JSON when the two no longer fit side by side. The bottom is never the cheaper side at the sizes below (at 1100x800 the card covers 149 of the 224 px of #results-body, against 267 of its 690 px width), so only the width is reserved. A card over half the drawer's width, as on a phone, reserves nothing, since #791 already gives the page room to scroll the drawer above it.
Expected output
Measured in headless Chromium at #791's head (0c683f33), on Chargeback Pair Match in Python, with a case added whose input is 90 numbers long ([[0,7,14,...,623],623]) and Expected JSON [88,89], then Run tests and #results-body scrolled to its end. A box is clear when it ends at least 3 px left of the card or above its top. The "after" column is a prototype that pads both boxes by the width beside the card plus 6 px.
| Viewport | Card | Expected JSON field, now | Your case 1's pre, now |
After |
|---|---|---|---|---|
| 1100x800 | x 816-1076, y 607-776 | clear | to x 1058, under the card | field clear; pre to x 801 |
| 1100x800, self-view and a six-sentence caption | x 816-1076, y 433-776 | x 734-1022, y 547-583, under the card | to x 1058, under the card | field below Input JSON, x 409-697; pre to x 801 |
| 1100x600, self-view and caption | x 816-1076, y 233-576 | x 734-1022, y 347-383, under the card | to x 1058, under the card | field below Input JSON, x 409-697; pre to x 801 |
| 1000x700, sidebar stacked, page scrolled to its end | x 716-976, y 507-676 | clear | to x 958, under the card | pre to x 701 |
| 1199x900 | x 915-1175, y 707-876 | clear | to x 1157, under the card | pre to x 900 |
| 390x844, self-view and caption | spans the window | clear | clear, through #791's page room | unchanged |
The card's position and size, and the editor's reservation, do not change.
Validation plan
- A browser test in
tests/browser/interview-layout.test.js, one case per row above: add the long case, run the tests, scroll#results-bodyto its end, and assert that everyprein view there is clear of the card; with Add a case open, assert that#candidate-case-input,#candidate-case-expectedand the Add case button are clear of it. It fails on the five desktop rows without the change and passes on the phone row either way. - Mutants: removing the drawer's padding, the gap, or the half-width condition each fails at least one row.
- Before and after screenshots at 1100x800 with the long case, in the PR.
docs/avatar-contract.md("Placement and pose") extends the editor's paragraph to the drawer.
The change builds on reserveJimStageInEditor() from #791, so its branch starts after #791 is merged.
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- 主要语言
- Rust
- 星标
- 236
- 派生
- 153
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 187
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sysprog21/codetrial 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 70/100
维护者通常 1 天内回复
-
Unify Java harness validation error messages可能已有人在做 @weichieh0204 今天认领。 未关闭
sysprog21/codetrial#872 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Inferred void class operations are never checked against the starter's return type可能已有人在做 @papaya0112 今天认领。 未关闭
sysprog21/codetrial#871 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwrite可能已有人在做 @BOBOGUAGUA428 今天认领。 未关闭
sysprog21/codetrial#869 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 sysprog21/codetrial 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
CyberTimon/RapidRAW#2303 ·
维护者通常 1 天内回复
-
[bug] NSIS installer reads its flags from $CMDLINE, so an unquoted forward-slash path (e.g. C:/Projects/...) triggers passive mode and skips the licence page可能已有人在做 @YusufMntm 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
tauri-apps/tauri#16660 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
manaflow-ai/cmux#59692 ·
维护者通常 1 天内回复
-
Retire stale Python-parity labels in Rust ingress and auth tests可能已有人在做 @github-actions 今天认领。 未关闭factory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
难度 2/5 1-3 小时 新手友好度 82/100
JoshCLWren/comic-pile#5874 · 2 条评论 ·
维护者通常 1 天内回复
-
status:ready unit
难度 2/5 1-3 小时 新手友好度 75/100
nonagenticai/conveyor#787 ·
维护者通常 1 天内回复