[K4][6][8] Panel-Aktionen, Typ-CRUD und App-Handler erzeugen Ops direkt (usePanelHostBase, useProjectActions, Split/Boolean/Sperren/Kategorien/Kollisionsmarken/Layout/Einstellungen); neuer Helfer replaceWithMany
Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
14 files changed
+477
-455
No files matched your search
@@ -3,9 +3,15 @@
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { sampleProject } from "../model/sampleProject";
|
||||
import { isLocked, setLocked, setLockedForMembers } from "./objectLock";
|
||||
import { isLocked, lockMembersOps, lockOps } from "./objectLock";
|
||||
import type { MemberKind } from "./groupActions";
|
||||
import { applyOps } from "../core/ops";
|
||||
import type { Project, Wall, Drawing2D } from "../model/types";
|
||||
|
||||
const setLocked = (p: Project, kind: MemberKind, id: string, locked: boolean) => applyOps(p, lockOps(p, kind, id, locked));
|
||||
const setLockedForMembers = (p: Project, m: Partial<Record<MemberKind, string[]>>, locked: boolean) =>
|
||||
applyOps(p, lockMembersOps(p, m, locked));
|
||||
|
||||
const wall: Wall = {
|
||||
id: "w1",
|
||||
type: "wall",
|
||||
|
||||
Reference in new issue
Block a user