From f1a956b35e220fd8faefb0e38506a8b2c0dd9ec5 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 3 Oct 2026 00:48:41 -0400 Subject: [PATCH] Fix command palette demo: pass flat commands as documented; use documentation IP in demo --- base.html | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/base.html b/base.html index 45d8a14..55d2609 100644 --- a/base.html +++ b/base.html @@ -745,7 +745,7 @@
Inline Messages
-
Database connection refused on 10.10.10.50
+
Database connection refused on 192.0.2.50
Ticket #123456789 updated successfully
Rate limit: 80% consumed (40/50 req/min)
Auto-refresh active — updates every 30s
@@ -1761,28 +1761,13 @@ Storage array link-down on `compute-storage-01`. // Command palette demo commands lt.cmdPalette.init([ - { - group: 'Navigation', - items: [ - { icon: '⌂', label: 'Dashboard', kbd: 'G D', action: () => lt.toast.info('→ Dashboard') }, - { icon: '⊞', label: 'All Tickets', kbd: 'G T', action: () => lt.toast.info('→ Tickets') }, - { icon: '★', label: 'Saved Filters', action: () => lt.toast.info('→ Filters') }, - ] - }, - { - group: 'Actions', - items: [ - { icon: '+', label: 'New Ticket', kbd: 'N', action: () => lt.toast.success('New ticket form') }, - { icon: '⤓', label: 'Export CSV', action: () => lt.modal.open('export-modal') }, - { icon: '⟳', label: 'Refresh Data', kbd: 'R', action: () => lt.toast.info('Refreshing...') }, - ] - }, - { - group: 'Help', - items: [ - { icon: '?', label: 'Keyboard Shortcuts', kbd: '?', action: () => lt.modal.open('lt-keys-help') }, - ] - }, + { id: 'go-dashboard', group: 'Navigation', icon: '⌂', label: 'Dashboard', kbd: 'G D', action: () => lt.toast.info('→ Dashboard') }, + { id: 'go-tickets', group: 'Navigation', icon: '⊞', label: 'All Tickets', kbd: 'G T', action: () => lt.toast.info('→ Tickets') }, + { id: 'go-filters', group: 'Navigation', icon: '★', label: 'Saved Filters', action: () => lt.toast.info('→ Filters') }, + { id: 'new-ticket', group: 'Actions', icon: '+', label: 'New Ticket', kbd: 'N', action: () => lt.toast.success('New ticket form') }, + { id: 'export-csv', group: 'Actions', icon: '⤓', label: 'Export CSV', action: () => lt.modal.open('export-modal') }, + { id: 'refresh', group: 'Actions', icon: '⟳', label: 'Refresh Data', kbd: 'R', action: () => lt.toast.info('Refreshing...') }, + { id: 'keys-help', group: 'Help', icon: '?', label: 'Keyboard Shortcuts', kbd: '?', action: () => lt.modal.open('lt-keys-help') }, ]); // Range slider live value display