feat(web): Outliner Data menu selects a collection's objects
Wire the desktop OUTLINER_OT_collection_objects_select/deselect pair into the Data menu for collection rows. The engine call site now copies the operator idname the way wm_operator_create does, so the shared exec reads the right branch and Deselect really deselects; the two operations also join the id-operation whitelist, protocol union, worker gate and feedback messages. Headed case [outliner-collection-select-web] opens Mount (Payload and KeyLight nest under their parent row like the desktop tree), checks the fixture's initial Payload selection, then deselects, re-selects and deselects Parts' objects through data-selected on the rows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const EXPECTED_CASES = ["outliner-tree-baseline-web", "outliner-tools-baseline-web", "outliner-mirror-baseline-web", "outliner-metrics-web", "outliner-display-mode-web", "outliner-filter-web", "outliner-restrict-web", "outliner-select-keys-web", "outliner-delete-web", "outliner-box-select-web", "outliner-id-operation-web", "outliner-id-clipboard-web", "outliner-collection-delete-web", "outliner-mode-dot-web", "outliner-rename-bone-web", "outliner-eyedropper-web", "outliner-fake-user-purge-web", "outliner-asset-ops-web", "outliner-liboverride-web", "outliner-make-local-web", "outliner-select-hierarchy-web", "outliner-delete-hierarchy-web", "outliner-collection-new-web"];
|
||||
const EXPECTED_CASES = ["outliner-tree-baseline-web", "outliner-tools-baseline-web", "outliner-mirror-baseline-web", "outliner-metrics-web", "outliner-display-mode-web", "outliner-filter-web", "outliner-restrict-web", "outliner-select-keys-web", "outliner-delete-web", "outliner-box-select-web", "outliner-id-operation-web", "outliner-id-clipboard-web", "outliner-collection-delete-web", "outliner-mode-dot-web", "outliner-rename-bone-web", "outliner-eyedropper-web", "outliner-fake-user-purge-web", "outliner-asset-ops-web", "outliner-liboverride-web", "outliner-make-local-web", "outliner-select-hierarchy-web", "outliner-delete-hierarchy-web", "outliner-collection-new-web", "outliner-collection-select-web"];
|
||||
/* Desktop Layout geometry the metrics case must reproduce (batch 2: UI sizes). */
|
||||
const GEOMETRY_GOLDEN = path.join(REPO_ROOT, "tests/golden/OUTLINER-DESKTOP-METRICS/outliner-metrics.json");
|
||||
const errors = [];
|
||||
|
||||
@@ -54,6 +54,7 @@ const KNOWN_CASES = [
|
||||
{ id: "outliner-select-hierarchy-web", title: /\[outliner-select-hierarchy-web\]/ },
|
||||
{ id: "outliner-delete-hierarchy-web", title: /\[outliner-delete-hierarchy-web\]/ },
|
||||
{ id: "outliner-collection-new-web", title: /\[outliner-collection-new-web\]/ },
|
||||
{ id: "outliner-collection-select-web", title: /\[outliner-collection-select-web\]/ },
|
||||
];
|
||||
|
||||
function usage() {
|
||||
|
||||
Reference in New Issue
Block a user