From 4c2896a83355b2562c5ff05b9fe71dae59eb6f12 Mon Sep 17 00:00:00 2001
From: manvi
Date: Wed, 22 Apr 2026 18:51:43 +0530
Subject: [PATCH 1/2] Added river name in the waterbody analysis report and
also added "river" with the river name in the waterbody side panel
---
src/components/kyl_waterbodypanel.jsx | 2 +-
src/components/water_project_dashboard.jsx | 42 +++++++++++++++++++++-
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/src/components/kyl_waterbodypanel.jsx b/src/components/kyl_waterbodypanel.jsx
index c8cafe59..45fbbc6e 100644
--- a/src/components/kyl_waterbodypanel.jsx
+++ b/src/components/kyl_waterbodypanel.jsx
@@ -28,7 +28,7 @@ const KYLWaterbodyPanel = ({ waterbody, onBack, hideBackButton = false }) => {
and is situated {waterbody?.properties?.on_drainage_line === 1 ? "on" : "off"} the drainage line,
belonging to stream order {waterbody?.properties?.max_stream_order}.
{waterbody?.properties?.waterbody_type === "river" && (
- <> This waterbody falls on {waterbody?.properties?.waterbody_type_name} .>
+ <> This waterbody falls on {waterbody?.properties?.waterbody_type_name} river.>
)}
diff --git a/src/components/water_project_dashboard.jsx b/src/components/water_project_dashboard.jsx
index bc6f3417..db4f5f3c 100644
--- a/src/components/water_project_dashboard.jsx
+++ b/src/components/water_project_dashboard.jsx
@@ -1398,6 +1398,8 @@ const mwsSheet = XLSX.utils.json_to_sheet(mwsData, {
saveAs(blob, fileName);
};
+
+ console.log(activeSelectedWaterbody)
return (
@@ -1431,9 +1433,47 @@ const mwsSheet = XLSX.utils.json_to_sheet(mwsData, {
)}
+
+
+ {isTehsilMode && activeSelectedWaterbody && (
+
+
+
+ Waterbody Insights:
+ {" "}
+ This waterbody extends over{" "}
+
+ {Number(
+ activeSelectedWaterbody?.properties?.area_ored ??
+ activeSelectedWaterbody?.areaOred ?? 0
+ ).toFixed(2)} hectares
+ {" "}
+ and is situated on the drainage line, belonging to{" "}
+
+ stream order{" "}
+ {activeSelectedWaterbody?.properties?.max_stream_order ??
+ activeSelectedWaterbody?.maxStreamOrder ?? "N/A"}
+ .
+ {(activeSelectedWaterbody?.properties?.waterbody_type ??
+ activeSelectedWaterbody?.waterbody_type) === "river" ? (
+ <>
+ This waterbody falls on{" "}
+
+ {activeSelectedWaterbody?.properties?.waterbody_type_name ??
+ activeSelectedWaterbody?.waterbody_type_name ??
+ "N/A"}
+ river.
+ >
+ ) : (
+ <>This waterbody does not fall on any river.>
+ )}.
+
+
+
+ )}
{/* ====================== TOP BUTTONS + SUMMARY ====================== */}
-
+
{mode === "project" && (
From 98dee6b94f7c41a97e45553dedb8a2075a70859f Mon Sep 17 00:00:00 2001
From: manvi
Date: Wed, 22 Apr 2026 18:56:56 +0530
Subject: [PATCH 2/2] Just added space.
---
src/components/water_project_dashboard.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/water_project_dashboard.jsx b/src/components/water_project_dashboard.jsx
index db4f5f3c..229856f3 100644
--- a/src/components/water_project_dashboard.jsx
+++ b/src/components/water_project_dashboard.jsx
@@ -1465,7 +1465,7 @@ const mwsSheet = XLSX.utils.json_to_sheet(mwsData, {
river.
>
) : (
- <>This waterbody does not fall on any river.>
+ <> This waterbody does not fall on any river.>
)}.