commit 8a003ed58a24525b4d75d040f3e6da7df2a4b8b8
parent ed42862a36c5fc149c2c441a613baab56dccdb5e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 19 Oct 2026 16:07:12 -0400
umtool: the clip editor's Room at its edges shows the choice at once, until the view comes back
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/umtool/components/projects/review/ClipEditor.tsx b/umtool/components/projects/review/ClipEditor.tsx
@@ -266,10 +266,13 @@ export default function ClipEditor({
};
// Room at this clip's edges (release 36 lane E): off writes `room: false`;
// on again removes the override when the cut has room, else turns both edges on.
+ // The box shows the choice at once (roomDraft) until the view comes back.
+ const [roomDraft, setRoomDraft] = useState<{ clip: string; on: boolean } | null>(null);
const setRoom = (on: boolean) => {
const cutHas = !!(view.room?.tail || view.room?.head);
const room = on ? (cutHas ? null : { tail: true, head: true }) : cutHas ? false : null;
- void write({ op: "room", clip: clip.id, room }, on ? "Room at this clip's edges" : "No room at this clip's edges");
+ setRoomDraft({ clip: clip.id, on });
+ void write({ op: "room", clip: clip.id, room }, on ? "Room at this clip's edges" : "No room at this clip's edges").finally(() => setRoomDraft(null));
};
const setCrop = (crop: number[] | null, aspect?: number) => {
void write({ op: "vertical", clip: clip.id, crop, ...(crop && aspect ? { aspect: Math.round(aspect * 10000) / 10000 } : {}) }, crop ? "Saved the short's framing" : "The short is framed from the centre");
@@ -523,7 +526,7 @@ export default function ClipEditor({
{join > 0 && !clip.montage && (
<div className="flex flex-wrap items-center gap-3 text-[12px] text-text-2" data-editor-room={roomEdges ? `${roomEdges.tail ? "tail" : ""}${roomEdges.head ? " head" : ""}`.trim() : "off"}>
<label className="inline-flex items-center gap-1.5 text-text">
- <input type="checkbox" data-clip-room="" checked={!!roomEdges} disabled={busy} onChange={(e) => setRoom(e.target.checked)} />
+ <input type="checkbox" data-clip-room="" checked={roomDraft?.clip === clip.id ? roomDraft.on : !!roomEdges} disabled={busy} onChange={(e) => setRoom(e.target.checked)} />
Room at its edges
</label>
{shade.tail && (