From 22f3dec02cce8eed1857ded12c0a7ec86dbf03b2 Mon Sep 17 00:00:00 2001 From: sumona-banerjeee Date: Tue, 10 Mar 2026 12:34:53 +0530 Subject: [PATCH] feat: Added YOLOE model to dropdowns, fixed Radix UI hydration mismatches on the New Analysis page, and resolved the Next.js scroll-behavior: smooth warning. All issues identified have been addressed. --- app/globals.css | 1 - app/layout.tsx | 2 +- app/new-analysis/page.tsx | 7 ++++++- app/upload/page.tsx | 3 +++ components/upload-section.tsx | 5 +++++ 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/globals.css b/app/globals.css index 3029ea6..48c9550 100644 --- a/app/globals.css +++ b/app/globals.css @@ -175,7 +175,6 @@ html { scrollbar-gutter: stable; - scroll-behavior: smooth; } body[data-scroll-locked] { diff --git a/app/layout.tsx b/app/layout.tsx index 04b372b..8cd2598 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -40,7 +40,7 @@ export default function RootLayout({ children: React.ReactNode }>) { return ( - + {children} diff --git a/app/new-analysis/page.tsx b/app/new-analysis/page.tsx index 6c7cd7a..be5f7c8 100644 --- a/app/new-analysis/page.tsx +++ b/app/new-analysis/page.tsx @@ -1,11 +1,16 @@ "use client" import { useRouter } from "next/navigation" -import { ProjectSelectionSection } from "@/components/project-selection-section" +import dynamic from "next/dynamic" import { SidebarNavigation } from "@/components/sidebar-navigation" import { type SessionContext, saveSession } from "@/lib/api" import { TrendingUp } from "lucide-react" +const ProjectSelectionSection = dynamic( + () => import("@/components/project-selection-section").then(mod => mod.ProjectSelectionSection), + { ssr: false } +) + export default function NewAnalysisPage() { const router = useRouter() diff --git a/app/upload/page.tsx b/app/upload/page.tsx index 327ab90..4a87284 100644 --- a/app/upload/page.tsx +++ b/app/upload/page.tsx @@ -318,6 +318,9 @@ export default function UploadPage() { OpenAI SAM 3 Segmentation Model + + YOLOE Open-Vocabulary Detection + diff --git a/components/upload-section.tsx b/components/upload-section.tsx index 6bf831a..29abc2a 100644 --- a/components/upload-section.tsx +++ b/components/upload-section.tsx @@ -334,6 +334,11 @@ export function UploadSection({ onDetectionComplete, onDetectionTypeChange }: Up SAM 3 + +
+ YOLOE +
+