From 7f6ece90f8b8079130e770a887cda7f5d3f63900 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Mon, 7 Apr 2025 17:19:58 +0530 Subject: [PATCH] Conditionally render testing feature based on use testing flag --- apps/rowboat/app/projects/layout/components/sidebar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/rowboat/app/projects/layout/components/sidebar.tsx b/apps/rowboat/app/projects/layout/components/sidebar.tsx index 5a73e2e0..0ce1faca 100644 --- a/apps/rowboat/app/projects/layout/components/sidebar.tsx +++ b/apps/rowboat/app/projects/layout/components/sidebar.tsx @@ -16,6 +16,7 @@ import { } from "lucide-react"; import { getProjectConfig } from "@/app/actions/project_actions"; import { useTheme } from "@/app/providers/theme-provider"; +import { USE_TESTING_FEATURE } from '@/app/lib/feature_flags'; interface SidebarProps { projectId: string; @@ -56,12 +57,12 @@ export default function Sidebar({ projectId, useRag, useAuth, collapsed = false, icon: WorkflowIcon, requiresProject: true }, - { + ...(USE_TESTING_FEATURE ? [{ href: 'test', label: 'Test', icon: PlayIcon, requiresProject: true - }, + }] : []), ...(useRag ? [{ href: 'sources', label: 'RAG',