diff --git a/surfsense_web/app/dashboard/api-key/api-key-client.tsx b/surfsense_web/app/dashboard/api-key/api-key-client.tsx
deleted file mode 100644
index 9163b52d8..000000000
--- a/surfsense_web/app/dashboard/api-key/api-key-client.tsx
+++ /dev/null
@@ -1,185 +0,0 @@
-"use client";
-
-import { IconCheck, IconCopy, IconKey } from "@tabler/icons-react";
-import { ArrowLeft } from "lucide-react";
-import { AnimatePresence, motion } from "motion/react";
-import { useRouter } from "next/navigation";
-import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
-import { Button } from "@/components/ui/button";
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
-import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
-import { useApiKey } from "@/hooks/use-api-key";
-
-const fadeIn = {
- hidden: { opacity: 0 },
- visible: { opacity: 1, transition: { duration: 0.4 } },
-};
-
-const staggerContainer = {
- hidden: { opacity: 0 },
- visible: {
- opacity: 1,
- transition: {
- staggerChildren: 0.1,
- },
- },
-};
-
-const ApiKeyClient = () => {
- const { apiKey, isLoading, copied, copyToClipboard } = useApiKey();
- const router = useRouter();
- return (
-
-
-
- API Key
-
- Your API key for authenticating with the SurfSense API.
-
-
-
-
-
-
- Important
-
- Your API key grants full access to your account. Never share it publicly or with
- unauthorized users.
-
-
-
-
-
-
-
- Your API Key
- Use this key to authenticate your API requests.
-
-
-
- {isLoading ? (
-
- ) : apiKey ? (
-
-
-
- {apiKey}
-
-
-
-
-
-
-
- {copied ? (
-
- ) : (
-
- )}
-
-
-
-
- {copied ? "Copied!" : "Copy to clipboard"}
-
-
-
-
- ) : (
-
- No API key found.
-
- )}
-
-
-
-
-
-
- How to use your API key
-
-
-
-
- Authentication
-
- Include your API key in the Authorization header of your requests:
-
-
-
- Authorization: Bearer {apiKey || "YOUR_API_KEY"}
-
-
-
-
-
-
-
-
-
-
router.push("/dashboard")}
- className="flex items-center justify-center h-10 w-10 rounded-lg bg-primary/10 hover:bg-primary/30 transition-colors"
- aria-label="Back to Dashboard"
- type="button"
- >
-
-
-
-
- );
-};
-
-export default ApiKeyClient;
diff --git a/surfsense_web/app/dashboard/api-key/client-wrapper.tsx b/surfsense_web/app/dashboard/api-key/client-wrapper.tsx
deleted file mode 100644
index 4397005ef..000000000
--- a/surfsense_web/app/dashboard/api-key/client-wrapper.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-"use client";
-
-import dynamic from "next/dynamic";
-import { useEffect, useState } from "react";
-
-// Loading component with animation
-const LoadingComponent = () => (
-
-
-
Loading API Key Management...
-
-);
-
-// Dynamically import the ApiKeyClient component
-const ApiKeyClient = dynamic(() => import("./api-key-client"), {
- ssr: false,
- loading: () => ,
-});
-
-export default function ClientWrapper() {
- const [isMounted, setIsMounted] = useState(false);
-
- useEffect(() => {
- setIsMounted(true);
- }, []);
-
- if (!isMounted) {
- return ;
- }
-
- return ;
-}
diff --git a/surfsense_web/app/dashboard/api-key/page.tsx b/surfsense_web/app/dashboard/api-key/page.tsx
deleted file mode 100644
index 26e0560de..000000000
--- a/surfsense_web/app/dashboard/api-key/page.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-"use client";
-
-import ClientWrapper from "./client-wrapper";
-
-export default function ApiKeyPage() {
- return ;
-}
diff --git a/surfsense_web/app/dashboard/searchspaces/page.tsx b/surfsense_web/app/dashboard/searchspaces/page.tsx
deleted file mode 100644
index b40eb5d82..000000000
--- a/surfsense_web/app/dashboard/searchspaces/page.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-"use client";
-
-import { useAtomValue } from "jotai";
-import { motion } from "motion/react";
-import { useRouter } from "next/navigation";
-import { createSearchSpaceMutationAtom } from "@/atoms/search-spaces/search-space-mutation.atoms";
-import { SearchSpaceForm } from "@/components/search-space-form";
-import { trackSearchSpaceCreated } from "@/lib/posthog/events";
-
-export default function SearchSpacesPage() {
- const router = useRouter();
- const { mutateAsync: createSearchSpace } = useAtomValue(createSearchSpaceMutationAtom);
-
- const handleCreateSearchSpace = async (data: { name: string; description?: string }) => {
- const result = await createSearchSpace({
- name: data.name,
- description: data.description || "",
- });
-
- // Track search space creation
- trackSearchSpaceCreated(result.id, data.name);
-
- // Redirect to the newly created search space's onboarding
- router.push(`/dashboard/${result.id}/onboard`);
-
- return result;
- };
-
- return (
-
-
-
-
-
- );
-}
diff --git a/surfsense_web/messages/en.json b/surfsense_web/messages/en.json
index 535efca5d..57f03a0fb 100644
--- a/surfsense_web/messages/en.json
+++ b/surfsense_web/messages/en.json
@@ -666,13 +666,9 @@
"no_archived_chats": "No archived chats",
"error_archiving_chat": "Failed to archive chat",
"new_chat": "New chat",
- "select_workspace": "Select Workspace",
"select_search_space": "Select Search Space",
- "invite_members": "Invite members",
"manage_members": "Manage members",
- "workspace_settings": "Workspace settings",
- "search_space_settings": "Search space settings",
- "see_all_workspaces": "See all search spaces",
+ "search_space_settings": "Search Space settings",
"see_all_search_spaces": "See all search spaces",
"expand_sidebar": "Expand sidebar",
"collapse_sidebar": "Collapse sidebar",
diff --git a/surfsense_web/messages/zh.json b/surfsense_web/messages/zh.json
index f7ee458e4..89cb7813a 100644
--- a/surfsense_web/messages/zh.json
+++ b/surfsense_web/messages/zh.json
@@ -660,13 +660,9 @@
"view_all_notes": "查看所有笔记",
"add_note": "添加笔记",
"new_chat": "新对话",
- "select_workspace": "选择工作空间",
"select_search_space": "选择搜索空间",
- "invite_members": "邀请成员",
"manage_members": "管理成员",
- "workspace_settings": "工作空间设置",
"search_space_settings": "搜索空间设置",
- "see_all_workspaces": "查看所有搜索空间",
"see_all_search_spaces": "查看所有搜索空间",
"expand_sidebar": "展开侧边栏",
"collapse_sidebar": "收起侧边栏",