Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…om into doc's drawing code
A pure move, no logic change. Only doc and the crates above it use them,
and crates/geom only shrinks (CONTRIBUTING.md:25-26).
- crates/geom/src/table.rs -> crates/doc/src/drawing/table_layout.rs
(doc already has drawing/table.rs, the saved SheetTable record), with
table_tests.rs -> table_layout_tests.rs;
- crates/geom/src/revision.rs and revision_tests.rs -> crates/doc/src/drawing/.
Paths only:
- the moved files name geom's items as solidcraft_geom::...; revision.rs
reads the layout as super::table_layout (`self as table`, so its
table::Row and table::Filter lines stay as they were);
- RevisionRow::sheet keeps geom's id reader (solidcraft_geom::ids::option),
so a bad id gives the same message as before;
- geom: the two mod lines go, and cell::is_snake_case becomes pub (the
layout and the title block share that one rule);
- doc, engine and ui-egui callers use solidcraft_doc::drawing::{table_layout,
revision} (doc's own files: super::...).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: truePre-merge checks:
|
| Check name | Status | Explanation |
|---|---|---|
| Existing Defaults Unchanged | The check fails only if the PR changes a UX default (setting or preference values, command or tool behaviour in normal use, default UI layout or behaviour, shortcuts). The PR's own commit 15da792 i… |
Full details: Existing Defaults Unchanged
-
Explanation
The check fails only if the PR changes a UX default (setting or preference values, command or tool behaviour in normal use, default UI layout or behaviour, shortcuts). The PR's own commit 15da792 is a pure move. It has 23 files changed, 37 insertions and 37 deletions. Inspecting the diff shows only path and import changes: the four files are renamed from crates/geom/src to crates/doc/src/drawing. Other edits are
solidcraft_geom::ids::optionandsolidcraft_doc::drawing::...paths,#[path = "table_layout_tests.rs"],pub modlines, andis_snake_casegoing frompub(crate)topub. The#[serde(default, ...)]attribute keeps its default; only its path changes. Theui-eguipanels change is an import path move. None of these alters a setting value, a command's usual behaviour, a layout, a shortcut, or a saved default. The description's "Changes a default: no" matches the code. The check does not apply to changes that are purely additive, and this PR adds nothing user-facing. Note: the local checkout'sorigin/maincomparison is noisy because main has moved on, so I relied on the PR commit's own diff against its parent.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
…-labs#13058 Four files conflicted (params.rs twice): - expr.rs: main split the uncached evaluation so driven dimensions can seed it (tangency-labs#14426); `eval_params_uncached` keeps this PR's pub(crate) and note, for a configuration's definitions. - params.rs, change_params_atomic: this PR's one lookup (param_target, stored_expression), with main's refusal of a read-only driven dimension parameter first. - params.rs, param_defs: main's walk of input expressions (tangency-labs#1147, no String per input) with this PR's input_def; the design's length unit is read once per call (design_length_unit), as main does, and input_def takes it. - drawing/table.rs: this PR's check for every kind that lists a source (Kind::of), with main's allowance for a list placed unbound before the drawing has a source (is_unbound). - drawing_workspace/browser.rs: this PR's family and general table rows, read with tr!. Three gaps git merged without a conflict, which the doc compile found: - config.rs: the merge kept both import lines; this PR's line already names BTreeMap, BTreeSet and HashMap, so main's shorter one goes. - drawing/table_tests.rs: main gave ConfigRow a fixed id (tangency-labs#14750); this PR's family-table tests now give each row its own id, as main's tests do. - drawing/table_layout_tests.rs: main added Filter::ballooned; this PR's two filter literals say ballooned: None. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
#22250 merged first, so the one line I said I'd change is now on main: |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change
A drawing's sheet tables (parts lists and revision tables) are laid out by code that still lived in
crates/geom, the geometry crate, along with the drawing's revision record. This PR moves that code tocrates/doc/src/drawing/, next to the rest of the drawing code. It's a pure move: nothing works differently, and nothing on screen or in a saved file changes.Fixes #22853
Why:
crates/kernel,crates/smlibandcrates/geomonly shrink toward the seam (ops, tess, record); please don't grow them").cargo xtask app-geometryflags nothing in it.crates/geom/src/table.rscrates/doc/src/drawing/table_layout.rscrates/geom/src/table_tests.rscrates/doc/src/drawing/table_layout_tests.rscrates/geom/src/revision.rscrates/doc/src/drawing/revision.rscrates/geom/src/revision_tests.rscrates/doc/src/drawing/revision_tests.rsI picked
table_layoutbecause doc already hasdrawing/table.rs, the savedSheetTablerecord. The four files are git renames (97% to 100% similar), sogit log --followand blame keep their history.What changes besides the move, all paths:
modlines go.cell::is_snake_casebecomespub, because the table layout and the title block share that one naming rule.drawing.rsgetspub mod revision;andpub mod table_layout;in its sorted group.super::instead ofsolidcraft_geom::.revision.rsimports the layout assuper::table_layout::{self as table, ..}, so its owntable::Rowlines stay as they were.solidcraft_doc::drawing::{table_layout, revision}.drawing_workspace/panels.rsmoves from thegeom::{import block to thedoc::drawing::{one. That's the only touch on @Nathan-Dane's drawing UI, and it changes nothing there but the path.A revision row's
sheetid still reads through geom's id reader (solidcraft_geom::ids::option), so a bad id gives the same message as before. geom can't keep a re-export under the old paths: geom would then depend on doc, a higher layer (cargo xtask layers). So every caller changes here.Changes a default: no
Validation
Local, Windows,
--profile ci, on 15da792 (main a9ff9fe):cargo check(one crate at a time, upward):--lib: pending (the run is queued; this stays a draft until it passes).cargo test -p solidcraft-doc --lib -- drawing::table_layout::tests drawing::revision::tests: pending (the run is queued; this stays a draft until it passes).drawing_table_paper::testsandcmd::drawing_revision::tests, 14 by name: pending (the run is queued; this stays a draft until it passes).a_model_is_computed_without_the_display_crates): pending (the run is queued; this stays a draft until it passes).cargo xtask app-geometry: pending (the run is queued; this stays a draft until it passes). The four files call none of the flagged methods, andxtask/app-geometry.txtdoesn't change.cargo xtask lists: pending (the run is queued; this stays a draft until it passes).cargo xtask cion this head: pending (the run is queued; this stays a draft until it passes).git grepfinds no use ofgeom::tableorgeom::revisionleft incrates/,apps/orxtask/. That includes thesolidcraft_engine::geom::re-export.No planted faults: no logic changed, so a fault would only test geom's code again. No new tests, and no existing test line changed.
Screenshots of the behavior (when observable)
None. Nothing visible changes.
Integration status
On main a9ff9fe, checked against all 763 open PRs on 26 Nov. Outside the moved files, the move changes 21 lines in 19 files. A PR touching one of them needs a one-line fix:
cargo xtask testtakes 10 minutes instead of 19, heavy tests left to the merge queue" (Tests:cargo xtask testtakes 10 minutes instead of 19, heavy tests left to the merge queue #19676). It also has a text conflict on the same loop line.language: "fr"keeps English labels in the title block, tables and view labels #19884)" (Drawings: a drawing's built-in text follows its language (#19884) #22084).I'll send @mariogeiger and @KazW the one-line fix once this lands. #13058 and #22084 merge main in on top of it, so their table and revision work lands in doc.
Follow-up, not here:
crates/geom/src/ids.rs:7-8still gives "a revision record's rows" as the reason ids live in geom. After the move, the reason is the title block'simagefield (title_block.rs:96). It's a one-comment change.Next, building on this PR: "Drawings: the title block and cell content move from the geometry crate to the drawing code (#23140)" (#23141) moves the title block and cell content to doc the same way.