feat(web): Outliner deletes objects from the keymap and the Data menu

The desktop Outliner binds outliner.delete to X and Del and also carries
it in the context/Data menu; the web data menu only offered rename and
Remap Users. Both entries now run the existing deleteObject edit for the
object row under the cursor or keyboard focus, so the deletion travels
through the same native Main transaction as the viewport delete.

The headed case [outliner-delete-web] deletes one object with X and one
through the Data menu entry, checking the native row set shrinks and the
labels disappear; receipt OUTLINER-HEADED-20261130-082221 (NOT_CLAIMED,
9/9). Collection rows still lack Delete Hierarchy, which stays queued.
The armature panel regression keeps failing identically at HEAD and is
tracked as pre-existing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-11-30 08:23:47 +08:00
parent 3294a872ef
commit 48d9965bb2
4 changed files with 41 additions and 7 deletions

View File

@@ -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"];
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"];
/* 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 = [];

View File

@@ -39,6 +39,7 @@ const KNOWN_CASES = [
{ id: "outliner-filter-web", title: /\[outliner-filter-web\]/ },
{ id: "outliner-restrict-web", title: /\[outliner-restrict-web\]/ },
{ id: "outliner-select-keys-web", title: /\[outliner-select-keys-web\]/ },
{ id: "outliner-delete-web", title: /\[outliner-delete-web\]/ },
];
function usage() {