diff --git a/client/src/containers/overview/project-details/index.tsx b/client/src/containers/overview/project-details/index.tsx index 54e5400b..1891264a 100644 --- a/client/src/containers/overview/project-details/index.tsx +++ b/client/src/containers/overview/project-details/index.tsx @@ -2,7 +2,7 @@ import Link from "next/link"; import { PROJECT_SCORE } from "@shared/entities/project-score.enum"; import { useAtom } from "jotai"; -import { ChevronUp, ChevronDown, NotebookPen } from "lucide-react"; +import { ChevronUp, ChevronDown, NotebookPen, Plus } from "lucide-react"; import { renderCurrency, @@ -13,6 +13,8 @@ import { cn } from "@/lib/utils"; import { projectDetailsAtom } from "@/app/(overview)/store"; +import { useFeatureFlags } from "@/hooks/use-feature-flags"; + import ParametersProjects from "@/containers/overview/project-details/parameters"; import BarChart from "@/components/ui/bar-chart"; @@ -141,6 +143,7 @@ const projectData = { export default function ProjectDetails() { const [projectDetails, setProjectDetails] = useAtom(projectDetailsAtom); + const featureFlags = useFeatureFlags(); const handleOpenDetails = (open: boolean) => setProjectDetails({ ...projectDetails, isOpen: open }); @@ -363,17 +366,19 @@ export default function ProjectDetails() {

Scorecard ratings

- {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/*
*/} + {featureFlags["project-comparison"] && ( +
+ + +
+ )}
{projectData.scorecard.map((item, index) => ( @@ -413,17 +418,19 @@ export default function ProjectDetails() {

Cost estimates

- {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/*
*/} + {featureFlags["project-comparison"] && ( +
+ + +
+ )}
{projectData.costEstimates.map((estimate) => ( diff --git a/client/src/hooks/use-feature-flags.ts b/client/src/hooks/use-feature-flags.ts index a833db62..0709f50e 100644 --- a/client/src/hooks/use-feature-flags.ts +++ b/client/src/hooks/use-feature-flags.ts @@ -1,6 +1,7 @@ const FEATURE_FLAGS = { "edit-project": false, "share-information": false, + "project-comparison": false, } as const; type FeatureFlags = typeof FEATURE_FLAGS;