T27-23 — Track the originating tool in plotted-draft state, and cover it with regression tests
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
- 75/100
Hướng nghiên cứu
Read the plotted-draft state and tool-switch path in crates/app/src/editor.rs, especially the review finding at lines 3271-3276. Add regression coverage for Pen → Hotspot and Hotspot → Pen, confirming each test fails with the old behavior; then run cargo test -p app. Done means the draft records its owning tool and switching tools resets or explicitly converts it, with the fix committed alongside its receipt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
T27 row: T27-23
Work package: RP-00 — Inventory, release contract, baseline, task ledger (Phase-2: PR #8 remediation)
Priority: P0
Status: NOT STARTED
Objective
Make the in-progress plotted draft record which tool owns it, so points drawn with one tool cannot be silently folded into a commit made by another.
Acceptance criteria: Draft state records its owning plotting tool; switching tools resets the draft or explicitly converts it; regression tests cover Pen → Hotspot and Hotspot → Pen, and fail against the pre-fix behaviour.
Inputs
crates/app/src/editor.rs (the plotted-draft state and the tool-switch path); the PR #8 review finding on editor.rs:3271-3276.
Authority
The PR #8 review (CodeRabbit Major, data integrity); the repo's rule that a review finding is verified against current code before it is fixed.
Stopping condition
The tests exist, they fail on the old behaviour and pass on the new, and the fix is committed with its receipt.
Verification
cargo test -p app
Evidence and blockers
The finding is real and specific: CodeRabbit's Major on crates/app/src/editor.rs:3271-3276 reports that Pen-drawn points are folded into a Hotspot commit, because the plotted-draft state does not record which tool owns it. PR #8 is still open, and the campaign's P2.4 items "Track the originating tool in draft state", "Reset or explicitly convert drafts on tool changes" and "Add regression tests for Pen-to-Hotspot and reverse switching" are all unchecked.
No fix or regression test exists on any branch yet.
Blocker: none.
Ledger: docs/tasks/T27-23-draft-tool-ownership.md and docs/release/EXECUTION-BOARD.md row T27-23 (these land with PR #12).
Campaign: docs/planning/release-compaign/Cross-Platform Releas.txt.
- Ngôn ngữ chính
- Rust
- Star
- 11
- Fork
- 1
- Merge trung bình
- 9 giờ 48 phút
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 aliasfoxkde/FireCraft
-
documentation release
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aliasfoxkde/FireCraft#58 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
release
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
aliasfoxkde/FireCraft#81 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
aliasfoxkde/FireCraft#80 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement parity
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
aliasfoxkde/FireCraft#79 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
aliasfoxkde/FireCraft#78 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aliasfoxkde/FireCraft
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
software-mansion/pathfinder#3620 ·
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 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
storytold/wordcraft#6211 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
backlog multiple issues priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
storytold/pdfcraft#6911 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
DGNIMPORT: "The DGN model has nothing that can be imported" when the first element streams are emptyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
HakanSeven12/OpenCADStudio#2820 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày