Jim's compact card covers the right side of Add a case and Test results
Maintainer thường phản hồi trong vòng 1 ngày
@EnjouWang đang làm issue này rồi.
Từ ngày 21/11/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- css, javascript, playwright, rust
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 236
- Fork
- 153
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 187
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sysprog21/codetrial
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unify Java harness validation error messagesCó thể đã có người làm @weichieh0204 đã nhận hôm nay. Đang mở
sysprog21/codetrial#872 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inferred void class operations are never checked against the starter's return typeCó thể đã có người làm @papaya0112 đã nhận hôm nay. Đang mở
sysprog21/codetrial#871 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteCó thể đã có người làm @BOBOGUAGUA428 đã nhận hôm nay. Đang mở
sysprog21/codetrial#869 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#59692 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Retire stale Python-parity labels in Rust ingress and auth testsCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
JoshCLWren/comic-pile#5874 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:ready unit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nonagenticai/conveyor#787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày