From 544bbbcf0875a742a56fc4d7337635a84a809a0a Mon Sep 17 00:00:00 2001
From: khanavi272-spec
Date: Sun, 28 Jun 2026 00:11:19 +0530
Subject: [PATCH] Add low member count warning for rotational pools
---
frontend/components/group/group-details.tsx | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/frontend/components/group/group-details.tsx b/frontend/components/group/group-details.tsx
index af393fa..ea59f52 100644
--- a/frontend/components/group/group-details.tsx
+++ b/frontend/components/group/group-details.tsx
@@ -324,9 +324,14 @@ export function GroupDetails({ groupId, contractAddress }: GroupDetailsProps) {
return { saved: group.total_saved || 0, target: group.target_amount || 0 };
};
- const stats = getLiveStats();
- const progress = getProgress();
- const targetDisplay = getTargetDisplay();
+const stats = getLiveStats();
+const progress = getProgress();
+const targetDisplay = getTargetDisplay();
+
+const LOW_MEMBER_THRESHOLD = 2;
+const hasLowMemberCount =
+ group.type === "rotational" &&
+ (group.members_count ?? 0) <= LOW_MEMBER_THRESHOLD;
return (
{group.description}
)}
+ {hasLowMemberCount && (
+
+
+
+ This pool has very few members remaining — consider inviting more
+ members or planning for a shorter cycle.
+
+
+)}
+
{isPaused && !isPending(group.contract_address) && (