From be20b189a380a4fd932d100ed08a2e38f5d67ce6 Mon Sep 17 00:00:00 2001 From: shad Date: Sun, 14 Jun 2026 18:24:49 +0400 Subject: [PATCH] feat(cmdk): polished command palette - real go-to list + clean hints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User brief: 'normal businessman could use this'. The command palette was already wired but leaked engineering jargon and missed half the scenes. - 'Scenes' renamed 'Go to'; now lists all 14 user-reachable scenes (was 5). Hubs, Documents, Approvals, Chat, Assistant, Explainer, Geo - all keyboard-reachable. - Endpoint strings ('POST /api/runtime/transactions', 'demo.flow- master.ai', 'bundled JSON') removed from hints. Replaced with buyer-safe equivalents like 'writes to EA2' / 'for developers'. - Real-actions group: hints simplified, less raw IDs. - Dropped 'Dispatch sidekick agent · coming soon' (dead stub). - 'Data mode' group renamed 'Preferences' and simplified to 3 options (refresh live, theme toggle, dev console). --- src/components/CommandBar.tsx | 91 ++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 39 deletions(-) diff --git a/src/components/CommandBar.tsx b/src/components/CommandBar.tsx index cc85c91..580b8bd 100644 --- a/src/components/CommandBar.tsx +++ b/src/components/CommandBar.tsx @@ -69,79 +69,102 @@ export default function CommandBar() { )} - + { setScene("landing"); close(); }}> - Landing + Home { setScene("mission"); close(); }}> Mission Control + live work-items + process graph - { setScene("history"); close(); }}> - Run History + { setScene("approvals"); close(); }}> + Approvals queue + work waiting on you { setScene("studio"); close(); }}> - Process Wizard - design & publish a new process + Process Creation Wizard + describe → publish → run + + { setScene("documents"); close(); }}> + Documents + data shapes per process + + { setScene("hub-procurement"); close(); }}> + Procurement hub + + { setScene("hub-hr"); close(); }}> + People hub + + { setScene("hub-it"); close(); }}> + IT hub + + { setScene("geo-attendance"); close(); }}> + Attendance map + + { setScene("chat"); close(); }}> + Team chat + + { setScene("agent"); close(); }}> + Command Assistant + + { setScene("explainer"); close(); }}> + What is FlowMaster? + + { setScene("history"); close(); }}> + Run history { setScene("settings"); close(); }}> Settings - + {mode === "live" ? ( { refreshLive(); close(); }}> - Refresh live scenarios - re-fetch demo.flow-master.ai + Refresh live data ) : ( { setMode("live"); close(); }}> - Switch to LIVE mode (fetch demo.flow-master.ai) - in-browser + Switch to live mode )} - { setMode("snapshot"); close(); }}> - Switch to SNAPSHOT mode - bundled JSON + { setTheme(theme === "dark" ? "light" : "dark"); close(); }}> + Switch to {theme === "dark" ? "light" : "dark"} theme { setConsoleOpen(true); close(); }}> - Open live API console - stream every fetch - - { setTheme(theme === "dark" ? "light" : "dark"); close(); }}> - Toggle theme - {theme === "dark" ? "→ light" : "→ dark"} + Open API console + for developers - + {sc?.live ? ( { close(); - if (mode !== "live") { pushToast("warn", "Switch to LIVE mode to start a real instance."); return; } + if (mode !== "live") { pushToast("warn", "Switch to live mode to start a real instance."); return; } await startInstance(sc.defKey, `Started via Mission Control · ${new Date().toLocaleString()}`); }} > - Start new instance of "{sc.defName}" - POST /api/runtime/transactions + Start an instance of "{sc.defName}" + writes to EA2 ) : ( Start new instance - switch to a LIVE scenario first + switch to a live scenario first )} {canActLive && firstActionId && ( { close(); await executeAction(sc!.headlineTx!, firstActionId); }} > - Execute "{firstActionId}" on headline tx - {sc?.headlineTx?.slice(0, 8)} · real + Submit "{firstActionId}" on the headline case + live · writes to EA2 )} { setScene("settings"); close(); }}> - Sign in as different user + Sign in as someone else Settings → identity @@ -175,17 +198,7 @@ export default function CommandBar() { )} - - { - close(); - pushToast("info", `Sidekick dispatch endpoint not yet wired — see Studio for process-level changes.`); - }} - > - Dispatch sidekick agent - coming soon - - +