diff --git a/web/ce/components/workspace/index.ts b/web/ce/components/workspace/index.ts
index ab13bb3907e..d68c6eca2f5 100644
--- a/web/ce/components/workspace/index.ts
+++ b/web/ce/components/workspace/index.ts
@@ -2,4 +2,5 @@ export * from "./edition-badge";
export * from "./upgrade-badge";
export * from "./billing";
export * from "./delete-workspace-section";
+export * from "./sidebar";
export * from "./members";
diff --git a/web/ce/components/workspace/sidebar/app-search.tsx b/web/ce/components/workspace/sidebar/app-search.tsx
new file mode 100644
index 00000000000..6ab92b99604
--- /dev/null
+++ b/web/ce/components/workspace/sidebar/app-search.tsx
@@ -0,0 +1,26 @@
+import { observer } from "mobx-react";
+import { Search } from "lucide-react";
+// helpers
+import { cn } from "@/helpers/common.helper";
+// hooks
+import { useAppTheme, useCommandPalette } from "@/hooks/store";
+
+export const AppSearch = observer(() => {
+ // store hooks
+ const { sidebarCollapsed } = useAppTheme();
+ const { toggleCommandPaletteModal } = useCommandPalette();
+
+ return (
+
+ );
+});
diff --git a/web/ce/components/workspace/sidebar/index.ts b/web/ce/components/workspace/sidebar/index.ts
index d9edcc13d30..c22f296a210 100644
--- a/web/ce/components/workspace/sidebar/index.ts
+++ b/web/ce/components/workspace/sidebar/index.ts
@@ -1,3 +1,4 @@
+export * from "./app-search";
export * from "./extended-sidebar-item";
export * from "./helper";
export * from "./sidebar-item";
diff --git a/web/core/components/home/widgets/links/use-links.tsx b/web/core/components/home/widgets/links/use-links.tsx
index a2ad8a0cc84..2f2a9c78f37 100644
--- a/web/core/components/home/widgets/links/use-links.tsx
+++ b/web/core/components/home/widgets/links/use-links.tsx
@@ -42,9 +42,9 @@ export const useLinks = (workspaceSlug: string) => {
});
toggleLinkModal(false);
} catch (error: any) {
- console.error("error", error?.data?.url?.error);
+ console.error("error", error?.data?.error);
setToast({
- message: error?.data?.url?.error ?? t("links.toasts.not_created.message"),
+ message: error?.data?.error ?? t("links.toasts.not_created.message"),
type: TOAST_TYPE.ERROR,
title: t("links.toasts.not_created.title"),
});
diff --git a/web/core/components/workspace/sidebar/quick-actions.tsx b/web/core/components/workspace/sidebar/quick-actions.tsx
index c0c8eee9c78..150c08d6838 100644
--- a/web/core/components/workspace/sidebar/quick-actions.tsx
+++ b/web/core/components/workspace/sidebar/quick-actions.tsx
@@ -1,7 +1,7 @@
import { useRef, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
-import { ChevronUp, PenSquare, Search } from "lucide-react";
+import { PenSquare } from "lucide-react";
import { EUserPermissions, EUserPermissionsLevel } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
// types
@@ -14,6 +14,8 @@ import { cn } from "@/helpers/common.helper";
// hooks
import { useAppTheme, useCommandPalette, useEventTracker, useProject, useUserPermissions } from "@/hooks/store";
import useLocalStorage from "@/hooks/use-local-storage";
+// plane web components
+import { AppSearch } from "@/plane-web/components/workspace";
export const SidebarQuickActions = observer(() => {
const { t } = useTranslation();
@@ -27,7 +29,7 @@ export const SidebarQuickActions = observer(() => {
const { workspaceSlug: routerWorkspaceSlug } = useParams();
const workspaceSlug = routerWorkspaceSlug?.toString();
// store hooks
- const { toggleCreateIssueModal, toggleCommandPaletteModal } = useCommandPalette();
+ const { toggleCreateIssueModal } = useCommandPalette();
const { sidebarCollapsed: isSidebarCollapsed } = useAppTheme();
const { setTrackElement } = useEventTracker();
const { joinedProjectIds } = useProject();
@@ -98,17 +100,7 @@ export const SidebarQuickActions = observer(() => {
{t("sidebar.new_work_item")}
)}
-
+
>
);
diff --git a/web/ee/components/workspace/index.ts b/web/ee/components/workspace/index.ts
index 94a16694754..b0b8ffd3ad0 100644
--- a/web/ee/components/workspace/index.ts
+++ b/web/ee/components/workspace/index.ts
@@ -2,3 +2,4 @@ export * from "./edition-badge";
export * from "./upgrade-badge";
export * from "./billing";
export * from "./delete-workspace-section";
+export * from "./sidebar";