Add an interview mode filter to interview progress
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
- 78/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- html, javascript, rust
Hướng nghiên cứu
Start with web/progress.js and the existing problemId filter tests in tests/browser/progress.test.js; then trace the filter wiring in web/app.js and the Filter attempts controls in web/index.html. Add mode filtering to the progress model and cover the UI behavior for account and device history in tests/browser/lobby.test.js. Done when Coding, Whiteboard, and All modes filter the attempts and related progress views, including when combined with existing filters.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Observed behavior
Interview progress's "Filter attempts" section offers Problem, Difficulty, Language, and Duration filters (web/index.html:2041-2067), but no filter for interview mode. A Coding (editor) attempt and a Whiteboard attempt sit mixed together in Past attempts and the phase-score charts, even though they score different things (a whiteboard report scores "Board work", not "Coding", per the row labels in #604) and use an unrelated workflow: no editor, no code, no test runner.
Expected behavior
Candidates should be able to restrict Interview progress to only Coding attempts or only Whiteboard attempts. The selection should combine with the existing Problem, Difficulty, Language and Duration filters, and apply consistently to Past attempts, the phase-score charts, topic counts, and weakness summaries, the same way the existing filters already do. Selecting "All modes" should restore the current, unfiltered behavior.
Reproduction
- Complete at least one Coding-mode interview and one Whiteboard-mode interview.
- Open Interview progress.
- Observe that Filter attempts has no control to separate the two; Past attempts and the charts mix both kinds of attempt together.
Environment
- Source revision: 628237f.
Initial analysis
normalizeProgressEntry()inweb/progress.jsalready reads and normalizesinterviewModeper attempt (entry.interviewMode ?? entry.report?.interviewMode, throughlib.js'sinterviewMode()), so the value is already present on every normalized entry; no storage or server change is needed.progressModelFrom()'smatches(entry, key)helper (web/progress.js:178-189) already applies one generic filter toproblemId,difficulty,languageanddurationMin; adding"interviewMode"to that list follows the same one-line pattern as each existing filter.progressOptions()(web/progress.js:307-337) would need to also return the distinctinterviewModevalues present in history, the same way it already does fordifficulty,languageanddurationMin.web/index.html's Filter attempts fieldset (web/index.html:2041-2067) would need one more<select>, alongside Problem/Difficulty/Language/Duration.web/app.jswires each existing<select>throughsyncFilter()and folds its value into the filters object passed toprogressModelFrom()(web/app.js:1925-1943, 2607-2612); a Mode select would follow the same wiring, usinglib.js's existinginterviewMode()/modeIsWhiteboard()helpers for the two option labels ("Coding", "Whiteboard").
This mirrors the Problem filter added by #389 (PR #501, commit cb6678a), which used this same four-piece pattern (progressOptions, progressModelFrom's matches, the fieldset markup, and app.js's syncFilter wiring) for a different field.
Proposed change
Add a Mode select to Filter attempts, defaulting to "All modes", with "Coding" and "Whiteboard" options sourced from saved history. Combine it with the existing Problem, Difficulty, Language and Duration filters in progressModelFrom(). Apply the resulting attempts consistently to Past attempts, the phase-score charts, topic counts, weakness summaries, and the attempt count. Refresh the options when history changes; a mode with no remaining attempts drops out of the options the same way other filter values already do.
Validation plan
- Add model regression tests in
tests/browser/progress.test.jsforinterviewModefiltering alone and combined with the existing filters, mirroring theproblemIdtests already there. - Add UI interaction coverage in
tests/browser/lobby.test.jsfor both account and device history, selecting "Coding" / "Whiteboard" / "All modes" and asserting Past attempts and the charts narrow accordingly, mirroring the existing#progress-languagecoverage. - Run
./scripts/test.shand report results, including anything skipped.
- Ngôn ngữ chính
- Rust
- Star
- 223
- Fork
- 148
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 225
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
-
Show recorded scores in past attempt rowsCó thể đã có người làm @liehcheng đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sysprog21/codetrial#604 · 4 bình luận · 1 người được giao ·
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Let candidates filter problems to their saved listCó thể đã có người làm @hszzt đã nhận hôm nay. Đang mở
sysprog21/codetrial#616 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Report credits an inaccurate problem restatement as a strengthCó thể đã có người làm @jserv đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
sysprog21/codetrial#613 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Jim's compact card covers a text box's controls on an expanded Example drawingCó thể đã có người làm @Disesfgewu đã nhận hôm nay. Đang mở
sysprog21/codetrial#609 · 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ự
-
area:frontend kind:bug priority:p2 ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
storytold/vectorcraft#6143 · 1 bình luận ·
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 76/100
rubys/roundhouse#1917 ·
-
Độ 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 2 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày