feat: show different ui when inside group

This commit is contained in:
2026-05-05 11:11:33 +02:00
parent 85e2fd1a71
commit bff140a764
5 changed files with 34 additions and 11 deletions
@@ -1,6 +1,7 @@
<script lang="ts">
import type { GraphManager } from '$lib/graph-interface/graph-manager.svelte';
import type { NodeInstance } from '@nodarium/types';
import InputSelect from '../../../../../packages/ui/src/lib/inputs/InputSelect.svelte';
type Props = {
manager: GraphManager;
@@ -55,6 +56,22 @@
value={groupName}
oninput={handleRename}
/>
<label for="group-name">Group Inputs</label>
<div>
{#each Object.keys(activeGroup?.inputs ?? {}) as key (key)}
<div class="flex">
<InputSelect
value={activeGroup.inputs?.[key].type}
options={['seed', 'float', 'boolean']}
/>
<input type="text" placeholder="Input {key}" />
<button>
🥊
</button>
</div>
{/each}
</div>
</div>
{/key}
{/if}