From 6f4b40f2891324f708b1c655ac5dba6020df5da0 Mon Sep 17 00:00:00 2001
From: Matias
Date: Tue, 12 Nov 2024 21:34:22 -0300
Subject: [PATCH 1/2] enhance manage support overview section
---
apps/web/components/ProposalCard.tsx | 2 +-
apps/web/components/Proposals.tsx | 53 +++++++++++-----------------
2 files changed, 21 insertions(+), 34 deletions(-)
diff --git a/apps/web/components/ProposalCard.tsx b/apps/web/components/ProposalCard.tsx
index 7e03dc3c6..a6b6e608e 100644
--- a/apps/web/components/ProposalCard.tsx
+++ b/apps/web/components/ProposalCard.tsx
@@ -256,7 +256,7 @@ export function ProposalCard({
/{memberPoolWeight}%{" "}
- ({inputValue}% of your total support)
+ ({inputValue}% of your voting weight)
{/* Support
*/}
diff --git a/apps/web/components/Proposals.tsx b/apps/web/components/Proposals.tsx
index 393d807fe..3c9b53cdb 100644
--- a/apps/web/components/Proposals.tsx
+++ b/apps/web/components/Proposals.tsx
@@ -447,21 +447,14 @@ export function Proposals({
},
{
id: 2,
- name: "Voting weight used",
- stat: calcPoolWeightUsed(memberSupportedProposalsPct),
- className: poolWeightClassName,
- info: "Indicates the portion of your pool weight currently allocated in proposals.",
- },
- {
- id: 3,
- name: "Total support",
+ name: "Your voting weight used",
stat: memberSupportedProposalsPct,
className: `${
memberSupportedProposalsPct >= 100 ?
"bg-secondary-content text-secondary-soft border-secondary-content"
: "bg-primary-content text-primary-soft border-primary-content"
}`,
- info: "Reflects the percentage of your pool weight supporting proposals.",
+ info: "Is the percentage of your pool weight supporting proposals.",
},
];
@@ -653,34 +646,28 @@ function UserAllocationStats({ stats }: { stats: Stats[] }) {
return (
Support Overview
-
+
{stats.map((stat) => (
-
-
-
- {stat.stat} %
-
-
+
+
+ {stat.stat} %
+
+
-
-
{stat.stat} %
+
{stat.stat} %
))}
From de177788ff1a816946d3f7a24fe11703449d4c31 Mon Sep 17 00:00:00 2001
From: Matias
Date: Fri, 15 Nov 2024 19:05:10 -0300
Subject: [PATCH 2/2] fix text
---
apps/web/components/Proposals.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/web/components/Proposals.tsx b/apps/web/components/Proposals.tsx
index 576e60855..915b21908 100644
--- a/apps/web/components/Proposals.tsx
+++ b/apps/web/components/Proposals.tsx
@@ -385,14 +385,14 @@ export function Proposals({
},
{
id: 2,
- name: "Your voting weight used",
+ name: "Voting weight used",
stat: memberSupportedProposalsPct,
className: `${
memberSupportedProposalsPct >= 100 ?
"bg-secondary-content text-secondary-soft border-secondary-content"
: "bg-primary-content text-primary-soft border-primary-content"
}`,
- info: "Is the percentage of your pool weight supporting proposals.",
+ info: "Reflects the percentage of your pool weight supporting proposals.",
},
];