diff --git a/src/lib/commandCenter/commandCenter.svelte b/src/lib/commandCenter/commandCenter.svelte index 5fc9aad48..3bae64543 100644 --- a/src/lib/commandCenter/commandCenter.svelte +++ b/src/lib/commandCenter/commandCenter.svelte @@ -24,7 +24,6 @@ diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts index a1cfac8f1..5fd52af27 100644 --- a/src/lib/commandCenter/commands.ts +++ b/src/lib/commandCenter/commands.ts @@ -25,7 +25,9 @@ const groups = [ 'indexes', 'documents', 'teams', - 'security' + 'security', + 'buckets', + 'files' ] as const; export type CommandGroup = (typeof groups)[number]; @@ -39,6 +41,7 @@ type BaseCommand = { icon?: string; rank?: number; nested?: boolean; + keepOpen?: boolean; }; type KeyedCommand = BaseCommand & { @@ -152,7 +155,7 @@ export const commandCenterKeyDownHandler = derived( const rankAndExecute = debounce(() => { const command = getHighestPriorityCommand(); - command.callback(); + command?.callback(); reset.immediate(); }, 200); diff --git a/src/lib/commandCenter/panels/buckets.svelte b/src/lib/commandCenter/panels/buckets.svelte new file mode 100644 index 000000000..06859101c --- /dev/null +++ b/src/lib/commandCenter/panels/buckets.svelte @@ -0,0 +1,9 @@ + + +