Jim's compact card covers the right side of Add a case and Test results
Mantenedores costumam responder em até 1 dia
@EnjouWang já está trabalhando nisso.
Desde 21/11/2026.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 72/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- css, javascript, playwright, rust
- Domínio
- accessibility, frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Rust
- Estrelas
- 236
- Forks
- 153
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 187
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de sysprog21/codetrial
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Unify Java harness validation error messagesTalvez já em andamento @weichieh0204 assumiu hoje. Aberta
sysprog21/codetrial#872 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Inferred void class operations are never checked against the starter's return typeTalvez já em andamento @papaya0112 assumiu hoje. Aberta
sysprog21/codetrial#871 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteTalvez já em andamento @BOBOGUAGUA428 assumiu hoje. Aberta
sysprog21/codetrial#869 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de sysprog21/codetrial
Issues semelhantes
-
BUG: WebGPU finds no adapter on Linux when a DRM card has no vendor file (ONNX Runtime 1.24.4)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
CyberTimon/RapidRAW#2303 ·
Mantenedores costumam responder em até 1 dia
-
[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 pageTalvez já em andamento @YusufMntm assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
tauri-apps/tauri#16660 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
manaflow-ai/cmux#59692 ·
Mantenedores costumam responder em até 1 dia
-
Retire stale Python-parity labels in Rust ingress and auth testsTalvez já em andamento @github-actions assumiu hoje. Abertafactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
JoshCLWren/comic-pile#5874 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
status:ready unit
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
nonagenticai/conveyor#787 ·
Mantenedores costumam responder em até 1 dia