From b3085c2b3d5a5c8f0f7f33859482a5b94313be28 Mon Sep 17 00:00:00 2001 From: atrincas Date: Tue, 17 Dec 2024 15:06:37 +0100 Subject: [PATCH] Added infobutton content for project overview filters --- client/src/constants/tooltip.tsx | 79 +++++++++++++++++++ .../overview/header/parameters/index.tsx | 9 +++ 2 files changed, 88 insertions(+) diff --git a/client/src/constants/tooltip.tsx b/client/src/constants/tooltip.tsx index f3888794..1fd6d3c4 100644 --- a/client/src/constants/tooltip.tsx +++ b/client/src/constants/tooltip.tsx @@ -80,6 +80,85 @@ export const FILTERS = { COST: "Total cost (incl. CAPEX and OPEX)", ABATEMENT_POTENTIAL: "Estimation of the total amount of CO2e abatement that is expected during the life of the project. Used to determine whether the scale justifies the development costs", + PROJECT_SIZE: ( +
+

+ Project size refers to the scale of restoration or conservation efforts, + measured in hectares, and is determined using a standardized approach to + ensure comparability across different ecosystems and project types. +

+

+ Sizes are defined based on their "carbon equivalency" — the + impact a conservation project has on carbon emissions is aligned with an + equivalent restoration effort. +

+

+ For instance, "medium" projects involve 500 hectares of + restored mangroves, salt marshes, or seagrass, compared to conservation + efforts that avoid the loss of approximately 20,000 ha of mangroves, + 4,000 ha of salt marshes, or 2,000 ha of seagrass. +

+

+ This method allows for meaningful "apples-to-apples" + comparisons across project activities and ecosystem types. +

+
+ ), + CARBON_PRICING_TYPE: ( +
+

+ The Carbon Price Type defines the pricing approach used to calculate the + cost of carbon credits, which impacts project costs, including + contributions to the “community benefit sharing fund.” There are two + pricing archetypes available: +

+ +

+ These two options allow for flexible cost assessments based on + standardized market values or project-specific operational needs. +

+
+ ), + COST_TYPE: ( +
+

+ The Cost Type defines the method used to calculate and present project + costs. It offers two approaches to understand the financial requirements + of a project: +

+ +

+ These two cost perspectives offer different insights into project + affordability and financial planning. +

+
+ ), }; export const MAP_LEGEND = diff --git a/client/src/containers/overview/header/parameters/index.tsx b/client/src/containers/overview/header/parameters/index.tsx index 3bab65cc..4cfc095d 100644 --- a/client/src/containers/overview/header/parameters/index.tsx +++ b/client/src/containers/overview/header/parameters/index.tsx @@ -9,8 +9,11 @@ import { FILTER_KEYS } from "@/app/(overview)/constants"; import { Parameter, useGlobalFilters } from "@/app/(overview)/url-store"; import { filtersSchema } from "@/app/(overview)/url-store"; +import { FILTERS } from "@/constants/tooltip"; + import { INITIAL_COST_RANGE } from "@/containers/overview/filters/constants"; +import InfoButton from "@/components/ui/info-button"; import { Label } from "@/components/ui/label"; import { Select, @@ -25,6 +28,7 @@ export const PROJECT_PARAMETERS: Parameter[] = [ key: FILTER_KEYS[1], label: "Project size", className: "w-[125px]", + tooltipContent: FILTERS.PROJECT_SIZE, options: [ { label: PROJECT_SIZE_FILTER.SMALL, @@ -44,6 +48,7 @@ export const PROJECT_PARAMETERS: Parameter[] = [ key: FILTER_KEYS[2], label: "Carbon pricing type", className: "w-[195px]", + tooltipContent: FILTERS.CARBON_PRICING_TYPE, options: [ { label: PROJECT_PRICE_TYPE.MARKET_PRICE, @@ -60,6 +65,7 @@ export const PROJECT_PARAMETERS: Parameter[] = [ key: FILTER_KEYS[3], label: "Cost", className: "w-[85px]", + tooltipContent: FILTERS.COST_TYPE, options: [ { label: COST_TYPE_SELECTOR.TOTAL, @@ -94,6 +100,9 @@ export default function ParametersProjects() { {PROJECT_PARAMETERS.map((parameter) => (
+ + {parameter.tooltipContent} +