Repository navigation
Conversation
Walkthrough
Merge Risk:
|
…urrent drawings
…urrent drawings
…current drawings
…awings integration
|
Hi @CamWight and @Nathan-Dane, I've opened draft PR #16310 for the drawing dimension status warnings and explicit repair UI in #15776. Tests 138b through 143 have passed. I've also started Test 144 against the latest The PR is still a draft, as the manual GUI checks and screenshots are outstanding. Just wanted to let you know it's available now. Feel free to take an early look if you have time. I'll update the PR once the integration test is finished. Thanks, |
…essful integration run
df3b37c to
090c73f
Compare
|
Hi @CamWight and @Nathan-Dane, A quick update on #16310: Test 144 passed against the newer upstream I've now updated the draft PR branch to that tested integration state and removed the temporary test workflow from the PR diff. It is currently up to date with The manual GUI flow and screenshots are still outstanding, so I'm keeping it as a draft. I'll check the official PR CI on the updated head as well. Thanks, |
|
Progress update – Drawing dimension repair UI (#15776) The earlier automated engine, status lifecycle, repair confirmation, and undo regression tests passed (through Test 144). We have since been working on automated GUI acceptance testing for the full Repair → Review → Confirm → Undo flow. Current findings:
The latest failures do not establish a defect in the underlying engine repair command. The full mouse-driven GUI acceptance test remains incomplete. Next steps:
The PR remains a draft while these integration and GUI validation issues are being resolved. No changes to the engine or geometry behavior are proposed as part of this update. |
… (T158/T160/T161)
|
Hi @CamWight, I've finished the Drawing UI integration for #15776 and pushed the updated implementation to this draft PR. The dimension status and explicit repair flow are now integrated with the newer drawing panels. I also added a GUI acceptance test covering Repair → Review → Confirm → Undo. I ran the integration and drawing-workspace regression checks on the fork. The final check (T162) used the current PR commit ( Test run: https://github.com/Benny1496/solidcraft/actions/runs/43692600071 Could you take a look at the changes and check whether the implementation and UI behavior fit what you had in mind? I'd appreciate any feedback or adjustments you'd like me to make. I'll leave the PR in draft until you've had a chance to review it. Thanks! |
CamWight
left a comment
There was a problem hiding this comment.
Hi @Benny1496, thanks for this, and sorry for the wait. The engine side is just what we had in mind. The status comes from drawing.status, it inspects only what needs attention and never guesses a sheet, and the repair waits for an explicit confirm and makes one undo step. The acceptance test on the real M2 plate through the visible buttons is great, so let's keep all of that.
Let's get it onto the latest drawings first. The branch carries older copies of drawing_workspace.rs and lib.rs (from before #16229), so it conflicts and mod panels; has no panels.rs. After a rebase, your own change there is about 140 lines.
For the UI, let's bring it in line with the rest of the Browser. Build the card from the UI kit's parts, put its words in a catalog in assets/locales/pending/, and show the dimension the way a user knows it (its text, the view's label, the sheet's name) instead of ids and JSON. The engine already says which reference is lost, so the repair can offer that slot rather than a typed field. The confirm should go through app.run, so it waits for a save in progress like every other command. @Nathan-Dane, the card's place and look in the Browser is yours. Would you like it as a section there, or somewhere else?
Happy to pair on any of it. I've put the smaller notes (mod order, fmt, a per-frame parse) on the lines below.
| ui.heading("Drawing status"); | ||
| ui.label(format!("Status unavailable: {error}")); | ||
| }); | ||
| } else if let Some(snapshot) = app.drawing_workspace.status_controller.snapshot() { |
There was a problem hiding this comment.
This runs every frame, and snapshot() parses the status JSON again each time (from_status plus with_inspections). The expensive refresh already runs only when the revision or the drawing changes, which is just right. Let's parse once in refresh and keep the DrawingAttention, so snapshot() can hand back a reference.
| let generation = controller.invalidate(); | ||
| let status = session.execute("drawing.status", &json!({})).map_err(|error| error.to_string())?; | ||
| if !controller.accept_status(generation, status) { | ||
| return Err("Drawing status generation changed during refresh".to_owned()); |
There was a problem hiding this comment.
refresh invalidates and accepts in the same synchronous call, so I think the generation can't change in between and this branch can't happen. Shall we leave the generation and late-response handling out until something is async? If you'd rather keep it for later, a line in the doc comment saying why would help the next reader.
|
|
||
| /// Projects one engine response; never guesses a dimension's sheet from its order. | ||
| /// Malformed entries are ignored rather than assigned fabricated identifiers. | ||
| pub fn from_status(status: &Value) -> DrawingAttention { |
There was a problem hiding this comment.
The keys match the engine's DrawingStatusResult, DimensionStatusResult and ViewStatusResult today (crates/engine/src/schema/drawing_scene.rs). If a field is renamed there, though, the card goes quiet and no test notices. Two ways that would work: add Deserialize to those three types and read them with serde_json::from_value, or keep this parse and add one test that runs drawing.status on a real drawing and checks that every dimension comes through. The first keeps the rule in one place.
| pub(crate) mod display_lod; | ||
| pub mod drawing_jobs; | ||
| pub mod drawing_sheet_page; | ||
| pub mod drawing_attention_card; |
There was a problem hiding this comment.
Small one: cargo xtask lists wants the mod lines in sorted order, so in this group drawing_attention_card, drawing_dimension_repair and drawing_dimension_status (in that order) go before drawing_jobs, and drawing_repair_ui goes between drawing_jobs and drawing_sheet_page.
| ui.label("Confirm replacing this reference. This modifies the drawing and creates an undo step."); | ||
| if ui.button("Confirm repair").clicked() { | ||
| let status = snapshot.dimensions.iter().find(|d| d.id == id).map(|d| d.status.as_str()).unwrap_or(""); | ||
| let candidate = state.candidates[state.candidate_index].clone(); |
There was a problem hiding this comment.
The index is kept in range today, but AGENTS.md's "Never crash" asks for get() on input-driven indexes, so let's use state.candidates.get(state.candidate_index) with an early return.
| use super::*; | ||
| use crate::scenario::Harness; | ||
| #[test] | ||
| fn repair_lost_bore_through_visible_buttons_review_confirm_and_undo() { |
There was a problem hiding this comment.
cargo fmt will want to reindent this test (the fn sits at column 0, and the JSON lines are long). Also, AGENTS.md "Where tests go" asks for test names that say what they show rather than a ticket number, so the module could be called something like repair_through_the_browser instead of repair_gui_acceptance_t158.
|
Hi @CamWight, thank you for the detailed review and the clear guidance. We're working through your points now, starting with bringing the branch up to date with We'll also coordinate the card's placement with @Nathan-Dane rather than making that decision independently. Once the changes are implemented and tested, we'll update this PR and let you know as soon as possible so you can take another look. Thanks again! |
|
Thanks @Benny1496, this has come a long way. The repair now goes through A few things would make it read as a finished part of the Drawing workspace:
On the card's place and its marks, @Nathan-Dane's answer on D07/D26 leads. Happy to pair on any of this. |
|
Hi CamWight, Thanks for the detailed feedback and for offering to help. I've started working through your suggestions on a separate development branch. The readable dimension names and repair candidates, the translation key changes, and the UI kit adjustments are now implemented there. Test 230 is currently running to check those changes. I'm deliberately leaving PR #16310 unchanged until we've verified the new work. For the attention card's placement and status icons, I'd prefer to wait for Nathan-Dane's guidance on D07/D26 before making further decisions. I'd be glad to coordinate with you on picking replacement geometry directly on the drawing sheet once Nathan has weighed in, so we can avoid duplicating work. Thanks again for your support! |
|
Hi CamWight, A quick update on your latest review suggestions. We've implemented several improvements on a separate development branch:
We ran a dedicated GitHub Actions preflight for these changes. After fixing issues in formatting, test setup, and Rust compilation, Test 230 passed: The changes are available here: PR #16310 has not been updated. We'd like to wait for Nathan-Dane's guidance on D07/D26 before deciding on the attention card's placement, status icons, and direct replacement-geometry picking on the sheet. Removing the now-unused The successful run covers the automated preflight and targeted tests; it is not a new full visual GUI walkthrough of the revised interface. I wanted to share the progress and test evidence now, without changing the PR branch. Thanks again for the helpful review and offer to coordinate! |
|
Holding this until the 1280x720 screenshots and the drawing UI spec references I asked for are in; then Nate takes a look at the repair flow. |
|
Not held any more. Two steps left:
Nate has the UI look; he reviews the repair flow from the 1280x720 screenshots in the description. |
Co-authored-by: Benny1496 <163034806+Benny1496@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I merged main into your branch ( |
|
I merged main into your branch. The only red check was Format and repository checks, which failed on two quarantined tests whose dates had run out on main (renewed in #22368), not on anything in your change. CI runs again on the new head. |
|
Thanks for sticking with this. The head here (
After that push, Nate reviews the look from the 1280x720 screenshots already in the description. Nothing else is needed from you. |
|
Hi @bherbruck, thanks for your support and for merging the changes from main into the PR branch. I've now integrated the prepared review fixes locally on top of the current PR head. The repair candidates have readable names, the translation keys are named by area, and the unused Your changes have been preserved during the integration. The targeted local regression tests are running now. Once the necessary checks pass, I'll update the PR so @Nathan-Dane can review the repair flow. Thanks again for your patience and support! |
|
Thanks, that sounds like exactly what's needed. Nothing has reached this PR's branch yet; the head is still
Then Nate reviews the look from the 1280x720 screenshots in the description. |
|
Hi @bherbruck, The targeted regression tests and native GUI checks at both 1280×720 and 1024×640 have now passed. The merge conflict has also been resolved without losing your changes. Before pushing the changes to PR #16310, I have two quick questions:
Latest test results: The four earlier local GPU test failures were also reproduced without our changes, and all four subsequently passed on GitHub Actions with our patch applied: Once these two points are clarified, I'd like to update the PR and add the latest screenshots for Nathan's final UI review. Thanks again for your help and patience! |
|
@Benny1496 yes to both. |
|
@bherbruck Thanks for confirming the translation keys. The review fixes are now pushed ( @Nathan-Dane I've updated the PR description with the requested 1280 × 720 screenshots of the attention warning and repair dropdown, plus the confirmation and repaired states. The targeted validation passed (167/167), and the native repair/undo flow was verified. The official PR checks are green; CI is still running. The UI is ready for your review. Thanks! |
|
Superseded below: #16310 (comment) @Benny1496 where this stands: |
|
Evidence from an independent replay of I ran
The first Xvfb launch required 1280 × 720 native captures |
|
Hi @nullifyr, Thanks for taking the time to test my PR independently and for sharing the detailed results and screenshots. I'm particularly glad to see that the repaired reference is preserved after saving and reopening the design, and that the Drawing UI tests passed. I really appreciate your help! |
|
I read the description and looked at the images and it's not quite clear how and when this menu is opened. I can create a design for this. Could you explain how it is triggered so I can do this best? Thank you! |
|
Hi @Nathan-Dane, Thanks for taking a look! I'd really appreciate your help with the design. I'm happy to move this to one of the standard panel types. The current overlay was mainly a way to make the status and repair workflow accessible in the Drawing workspace; its placement and appearance aren't meant to be final. How the status panel is triggered
How the repair workflow is triggered
A concrete example On the M2 checkpoint plate, the original hole has a Ø10 dimension. Deleting the hole makes its reference Lost, while the last valid measurement remains available. Creating another hole at the same location does not automatically reconnect it. The user opens the status panel, chooses Repair for that dimension, selects the replacement rim, reviews and confirms the repair. The dimension then reads Ø10.00 again. Undo restores the lost state, and redo restores the repaired reference. For the design, I think the main things to preserve are a discoverable status indicator, a clear distinction between update warnings and repairable references, enough space for several affected dimensions, and the explicit confirmation step. It would also be useful if the repair controls didn't obscure too much of the drawing or prevent the user from selecting replacement model geometry. The current expanded overlay takes up quite a bit of space at smaller window sizes (for example, 1024 × 640). I'm very open to your suggestions on placement, whether the details and repair controls belong in the same standard panel or separate ones, and how the selection/review flow should look. I'll be happy to adapt the implementation to your design. Thanks again for your help! |
|
@Benny1496 an update on where this stands, since Nate looked at it: he'd like the status and repair panel to be one of the app's standard panel types instead of the custom overlay, and offered to make the design for it. Your reply explaining how the panel is triggered is what he needed, so nothing is needed from you right now. Next step is Nate's design; once he posts it here, the change on your side is moving the panel onto that standard type, and then it goes to review. |




Change
The Drawing workspace now highlights dimensions whose model references were lost, became ambiguous, or need attention after a model change. This is the UI part of #15776.
The attention card reads the existing
drawing.statuscommand and shows affected dimensions with their views and sheets.Repair is never automatic. The user can choose an engine-provided replacement reference or a single selected model edge or face, review the choice, and explicitly confirm it. The status is refreshed afterward, and the repair can be undone in one step.
The changes are limited to the Drawing UI, translations, attribution, and related tests. Existing Drawing behavior is preserved; there are no geometry or kernel changes.
Changes a default: no
Validation
1e324fb83477b36148a0d80d24867590dba8ab68. All 12 product paths verified, including independent reconstruction of the two overlapping files. No builds or functional tests in this step. Run.Screenshots of the behavior (when observable)
Native app screenshots from Test 252, all at 1280 × 720.
1. Drawing status — lost dimension
2. Repair dropdown — readable candidate names
3. Explicit repair confirmation
4. After repair — all current
Full Test 252 evidence artifact.
At 1024 × 640, the repair controls were accessible during the GUI test, although the expanded card occupies a substantial portion of the drawing area. Final placement remains open for UI review.
Integration status
Published PR head:
ef1296bcb384de826e6ff02ba1cc2914d578face.Verified product tree:
d7147766458b95f296ea99677d928fcb916c1683.The existing PR history and bherbruck's changes were preserved. The final product diff against the pinned integration base contains 12 paths, with no test workflow files or kernel changes. Review fixes include readable candidate labels, the approved
ui.drawing_attention.*andui.drawing_repair.*keys, and removal of the unused repair confirmation function.CamWight previously confirmed his six review points were addressed. The PR remains open for Nathan's UI review and maintainer approval.
Summary by CodeRabbit