From cffda9a5a771ec328c6f226f267211fa8d4d81c8 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Wed, 18 Mar 2026 23:08:27 +0100 Subject: [PATCH] feat: add InlineEdit, ConfirmDialog, MultiSelect to Inventory demos Co-Authored-By: Claude Sonnet 4.6 --- .../Inventory/sections/CompositesSection.tsx | 45 +++++++++++++++++++ .../Inventory/sections/PrimitivesSection.tsx | 13 ++++++ 2 files changed, 58 insertions(+) diff --git a/src/pages/Inventory/sections/CompositesSection.tsx b/src/pages/Inventory/sections/CompositesSection.tsx index a3f8cfb..c2c8d44 100644 --- a/src/pages/Inventory/sections/CompositesSection.tsx +++ b/src/pages/Inventory/sections/CompositesSection.tsx @@ -8,6 +8,7 @@ import { BarChart, Breadcrumb, CommandPalette, + ConfirmDialog, DataTable, DetailPanel, Dropdown, @@ -17,6 +18,7 @@ import { LineChart, MenuItem, Modal, + MultiSelect, Popover, ProcessorTimeline, ShortcutsBar, @@ -208,6 +210,13 @@ export function CompositesSection() { ] const [activeFilters, setActiveFilters] = useState([{ label: 'Live', value: 'live' }]) + // ConfirmDialog + const [confirmOpen, setConfirmOpen] = useState(false) + const [confirmDone, setConfirmDone] = useState(false) + + // MultiSelect + const [multiValue, setMultiValue] = useState(['admin']) + // 15. Modal const [modalOpen, setModalOpen] = useState(false) @@ -294,6 +303,21 @@ export function CompositesSection() { /> + {/* 2b. ConfirmDialog */} + + + {confirmDone && Deleted!} + setConfirmOpen(false)} + onConfirm={() => { setConfirmOpen(false); setConfirmDone(true) }} + message={'Delete project "my-project"? This cannot be undone.'} + confirmText="my-project" + /> + + {/* 3. AreaChart */} + {/* 15b. MultiSelect */} + +
+ + + Selected: {multiValue.join(', ') || 'none'} + +
+
+ {/* 16. Popover */}

Primitives

@@ -328,6 +332,15 @@ export function PrimitivesSection() {
+ {/* 15b. InlineEdit */} + +
+ + {}} placeholder="Click to add name..." /> + {}} disabled /> +
+
+ {/* 16. KeyboardHint */}