AppCommandBar

App

Keyboard-first command palette. Opens with ⌘K. Lists the items it gets plus every command registered at runtime with window.__KuiCmdStore.register / registerMany; commands carry group, order and hidden. Sample commands only with demo.

Sample commands (demo, open panel)

Preview
Esc
↑↓ Navigate ↵ Select Esc Close
Code
<%- include('modules/app/AppCommandBar', { demo: true }) %>

Özel items + trigger butonu

Preview
Code
<%- include('modules/app/AppCommandBar', {
  placeholder: 'Search commands…',
  items: [
    { icon: 'fa-solid fa-basket-shopping', label: 'View Orders',   shortcut: 'G O', category: 'Navigation', href: '/orders' },
    { icon: 'fa-solid fa-box',             label: 'Inventory',     shortcut: 'G I', category: 'Navigation', href: '/inventory' },
    { icon: 'fa-solid fa-tag',             label: 'New Sale',      shortcut: 'C N', category: 'Actions' },
    { icon: 'fa-solid fa-file-export',     label: 'Export Report', shortcut: 'C E', category: 'Actions' },
    { icon: 'fa-solid fa-clock-rotate-left', label: 'Order #1042',      category: 'Recent', href: '/orders/1042' },
    { icon: 'fa-solid fa-clock-rotate-left', label: 'Customer: Acme Co', category: 'Recent', href: '/customers/acme' },
  ]
}) %>

Fuzzy search + özel gruplar

Preview
Esc
↑↓ Navigate ↵ Select Esc Close
Code
<%- include('modules/app/AppCommandBar', {
  placeholder: 'Try "kbd", "asgn" or "rls"…',
  items: [
    { icon: 'fa-solid fa-keyboard',            label: 'Open Keyboard Shortcuts',  shortcut: '?',   category: 'Help',        keywords: ['kbd'] },
    { icon: 'fa-solid fa-book',                label: 'Browse Documentation',     shortcut: 'G H', category: 'Help' },
    { icon: 'fa-solid fa-bell',                label: 'Notification Preferences', shortcut: 'G N', category: 'Preferences' },
    { icon: 'fa-solid fa-screwdriver-wrench',  label: 'Assign Reviewer to PR-42', shortcut: 'A R', category: 'Workflows',   keywords: ['asgn'] },
    { icon: 'fa-solid fa-rocket',              label: 'Release & Tag v1.4.0',     shortcut: 'R T', category: 'Workflows',   keywords: ['rls'] },
  ]
}) %>

Registered commands: group, order, hidden

Preview
Code
<%- include('modules/app/AppCommandBar', {
  items: [
    { id: 'go-home', label: 'Go to dashboard', group: 'Navigation', order: 0 },
    { id: 'new-lead', label: 'New lead', group: 'Create', order: 10 },
  ]
}) %>
<script>
  // Any module adds commands at runtime; every palette lists them when it opens.
  var dispose = window.__KuiCmdStore.registerMany([
    { id: 'tel-call', label: 'Call a contact', group: 'Telephony', order: 30, hidden: !canCall, onClick: startCall },
    { id: 'tel-log', label: 'Open call log', group: 'Telephony', order: 31, href: '/calls' },
  ]);
</script>
Source modules/app/CommandPalette/CommandPalette.ejs