Files
OneCAD/crates/ui-egui/tests/scenarios/sketch_on_moved_component_face.json
T
bherbruckandClaude Opus 5.5 d10312b7fd Command ids are SolveCraft's own: 173 ids that were another product's internal command ids become dotted, lower-case ids (<area>.<thing>[.<variant>]: solid.extrude, sketch.rectangle.two_point, sheet.flange, joint.drive, ...), in the registry, toolbar, dialogs, shortcuts, palette, control channel, MCP, examples, scenarios and docs
The old ids live only in crates/engine/src/legacy_ids.rs (the legacy migration table): find_command maps them, so old scripts, recipes and control calls keep working, and saved shortcuts, recent and pinned commands are migrated on load (designs store no command ids). Parity maps the observed catalog ids to ours through xtask/data/fusion-ids.tsv. The agent rule now reads: our own dotted id, never another product's. Cargo.toml's repository points at github.com/bherbruck/solvecraft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 12:17:23 +00:00

113 lines
1.5 KiB
JSON

[
{
"pending": "a root-active sketch on a face of a moved component lands in body-local coordinates (solvecraft-dialogs)"
},
{
"note": "A box in a new component, the component moved +100 in x, the root active: a sketch on the box's top face projects the face's edges where the face is (x 100-140), not at the body's own coordinates (x 0-40)."
},
{
"call": "engine.execute",
"params": {
"command": "component.create",
"params": {}
}
},
{
"call": "engine.execute",
"params": {
"command": "solid.box",
"params": {
"length": 40,
"width": 30,
"height": 10,
"corner": [
0,
0,
0
]
}
}
},
{
"call": "engine.execute",
"params": {
"command": "component.activate",
"params": {
"component": 0
}
}
},
{
"call": "engine.execute",
"params": {
"command": "occurrence.move",
"params": {
"occurrence": 2,
"translate": [
100,
0,
0
]
}
}
},
{
"call": "ui.view",
"params": {
"view": "fit"
}
},
{
"expect": {
"bbox": {
"body": "Body1",
"min": [
100,
0,
0
],
"max": [
140,
30,
10
]
}
}
},
{
"start": "sketch.create"
},
{
"click": {
"world": [
120,
15,
10
]
}
},
{
"expect": {
"sketching": true
}
},
{
"expect": {
"linked_world_range": {
"x": [
100,
140
],
"y": [
0,
30
],
"z": [
10,
10
]
}
}
}
]