feat(ui): canvas authoring by right-click menu and + insertion points; steps edit in a slide-in panel and show what they do

This commit is contained in:
sam committed 2026-10-05 01:23:58 +11:00
1 parent 23ae254bd7
commit 75cf1115e7
14 files changed
+716 -379

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<script setup lang="ts">
import { Handle, Position } from "@vue-flow/core";
import AddStepMenu from "./AddStepMenu.vue";
defineProps<{ data: { types: string[]; editable: boolean; onInsert: (type: string) => void } }>();
</script>
<template>
<div class="flex w-8 justify-center">
<Handle type="target" :position="Position.Top" class="!opacity-0" />
<AddStepMenu v-if="data.editable" :types="data.types" label="Add a step at the end" @pick="data.onInsert" />
<span v-else class="size-2 rounded-full bg-border" aria-hidden="true" />
</div>
</template>