From 474f64293e84a5bc6a7366f934eac0ba57b3eac6 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sat, 8 Nov 2025 16:05:46 +0000
Subject: feat: Add what's new modal in the sidebar (#2099)

* Refactor sidebar release modal to use React Query

* fixes

* fix manual server override
---
 apps/web/components/shared/sidebar/Sidebar.tsx | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

(limited to 'apps/web/components/shared/sidebar/Sidebar.tsx')

diff --git a/apps/web/components/shared/sidebar/Sidebar.tsx b/apps/web/components/shared/sidebar/Sidebar.tsx
index 21d3ea48..bf5a626b 100644
--- a/apps/web/components/shared/sidebar/Sidebar.tsx
+++ b/apps/web/components/shared/sidebar/Sidebar.tsx
@@ -1,10 +1,10 @@
-import Link from "next/link";
 import { useTranslation } from "@/lib/i18n/server";
 import { TFunction } from "i18next";
 
 import serverConfig from "@karakeep/shared/config";
 
 import SidebarItem from "./SidebarItem";
+import SidebarVersion from "./SidebarVersion";
 import { TSidebarItem } from "./TSidebarItem";
 
 export default async function Sidebar({
@@ -32,18 +32,7 @@ export default async function Sidebar({
         </ul>
       </div>
       {extraSections}
-      <Link
-        href={
-          serverConfig.serverVersion === "nightly"
-            ? `https://github.com/karakeep-app/karakeep`
-            : `https://github.com/karakeep-app/karakeep/releases/tag/v${serverConfig.serverVersion}`
-        }
-        target="_blank"
-        rel="noopener noreferrer"
-        className="mt-auto flex items-center border-t pt-2 text-sm text-gray-400 hover:underline"
-      >
-        Karakeep v{serverConfig.serverVersion}
-      </Link>
+      <SidebarVersion serverVersion={serverConfig.serverVersion} />
     </aside>
   );
 }
-- 
cgit v1.2.3-70-g09d2

