From 94ebbac238756c61ddb079ac9a67adeda230fc64 Mon Sep 17 00:00:00 2001
From: th
Date: Mon, 20 Apr 2026 21:16:25 +0200
Subject: [PATCH] macro-clips slice 4b: button instance dialog
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- ButtonInstanceDialog.vue edits the three instance-scope fields:
label (with uniqueness error surface), disabled flag, onClick
actions via the shared ActionEditor
- commit waits on a successful label set so collisions show inline
instead of silently dropping the rename
- Timeline wires click on a button-instance block to open the dialog
Creation/placement UX (sidebar entry + drag-to-track) and the per-state
layer editor are still deferred — this slice only makes existing
instances editable once something (devtools, later slice) has put them
on a clip track.
Co-Authored-By: Claude Opus 4.7 (1M context)
---
src/components/ButtonInstanceDialog.vue | 218 ++++++++++++++++++++++++
src/components/Timeline.vue | 14 ++
src/i18n/messages.ts | 11 ++
3 files changed, 243 insertions(+)
create mode 100644 src/components/ButtonInstanceDialog.vue
diff --git a/src/components/ButtonInstanceDialog.vue b/src/components/ButtonInstanceDialog.vue
new file mode 100644
index 0000000..7e121ce
--- /dev/null
+++ b/src/components/ButtonInstanceDialog.vue
@@ -0,0 +1,218 @@
+
+
+
+ (v ? null : close())"
+ >
+