From c7915e2c3d0d10bf4f5b6bbd5f1ede836b17a48b Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 17 Nov 2025 10:10:26 +0530 Subject: [PATCH] feat: launch command palette --- frontend/components.d.ts | 1 + frontend/src/components/AppSidebar.vue | 49 +++++++++++++------ .../CommandPalette/CommandPalette.vue | 10 ++++ frontend/src/stores/settings.js | 2 + frontend/src/utils/index.js | 5 ++ 5 files changed, 52 insertions(+), 15 deletions(-) create mode 100644 frontend/src/components/CommandPalette/CommandPalette.vue diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 374bf990..fd58e52a 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -42,6 +42,7 @@ declare module 'vue' { CodeEditor: typeof import('./src/components/Controls/CodeEditor.vue')['default'] CollapseSidebar: typeof import('./src/components/Icons/CollapseSidebar.vue')['default'] ColorSwatches: typeof import('./src/components/Controls/ColorSwatches.vue')['default'] + CommandPalette: typeof import('./src/components/CommandPalette/CommandPalette.vue')['default'] ContactUsEmail: typeof import('./src/components/ContactUsEmail.vue')['default'] CouponDetails: typeof import('./src/components/Settings/Coupons/CouponDetails.vue')['default'] CouponItems: typeof import('./src/components/Settings/Coupons/CouponItems.vue')['default'] diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index 9334c63e..31bd5e0b 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -173,6 +173,7 @@ :currentStep="currentStep" /> + diff --git a/frontend/src/stores/settings.js b/frontend/src/stores/settings.js index 539a292f..e8b4ba70 100644 --- a/frontend/src/stores/settings.js +++ b/frontend/src/stores/settings.js @@ -5,6 +5,7 @@ import { sessionStore } from './session' export const useSettings = defineStore('settings', () => { const isSettingsOpen = ref(false) + const isCommandPaletteOpen = ref(false) const activeTab = ref(null) const allowGuestAccess = createResource({ @@ -50,6 +51,7 @@ export const useSettings = defineStore('settings', () => { return { isSettingsOpen, + isCommandPaletteOpen, activeTab, allowGuestAccess, preventSkippingVideos, diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index fb24c9f7..13cb4e7e 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -403,6 +403,11 @@ export function getUserTimezone() { export function getSidebarLinks() { return [ + { + label: 'Search', + icon: 'Search', + to: 'Search', + }, { label: 'Courses', icon: 'BookOpen',