From 26702ac28e4165cebf16b1f09014ae48ef839a1f Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Thu, 2 Apr 2026 15:07:33 +0100 Subject: [PATCH 1/2] [#757] Emphasize USD values in Writer Stats and Activity Stats Writer Stats: Donations Received and Royalties Claimed now show USD first (bold) with PLOT amount in muted parentheses. Activity Stats: Trade Vol and Donated boxes now show USD values using plotUsd price, labels simplified to "Trade Vol" and "Donated" (no PLOT). Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/profile/[address]/page.tsx | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/app/profile/[address]/page.tsx b/src/app/profile/[address]/page.tsx index fff5452d..6f7e2ada 100644 --- a/src/app/profile/[address]/page.tsx +++ b/src/app/profile/[address]/page.tsx @@ -736,21 +736,27 @@ function StoriesTab({
Donations Received:{" "} - - {totalDonations > BigInt(0) ? `${formatPrice(formatUnits(totalDonations, 18))} ${RESERVE_LABEL}` : "—"} - - {totalDonations > BigInt(0) && plotUsd != null && ( - ({formatUsdValue(Number(formatUnits(totalDonations, 18)) * plotUsd)}) + {totalDonations > BigInt(0) ? ( + <> + + {plotUsd != null ? formatUsdValue(Number(formatUnits(totalDonations, 18)) * plotUsd) : `${formatPrice(formatUnits(totalDonations, 18))} ${RESERVE_LABEL}`} + + {plotUsd != null && ( + ({formatPrice(formatUnits(totalDonations, 18))} {RESERVE_LABEL}) + )} + + ) : ( + )}
{claimedRoyalties !== undefined && claimedRoyalties > BigInt(0) && (
Royalties Claimed:{" "} - {formatPrice(formatUnits(claimedRoyalties, 18))} {RESERVE_LABEL} + {plotUsd != null ? formatUsdValue(Number(formatUnits(claimedRoyalties, 18)) * plotUsd) : `${formatPrice(formatUnits(claimedRoyalties, 18))} ${RESERVE_LABEL}`} {plotUsd != null && ( - ({formatUsdValue(Number(formatUnits(claimedRoyalties, 18)) * plotUsd)}) + ({formatPrice(formatUnits(claimedRoyalties, 18))} {RESERVE_LABEL}) )}
)} @@ -1877,16 +1883,16 @@ function ActivityTab({ address }: { address: string }) {
Trades
-
{totalTradeAmount > 0 ? formatPrice(totalTradeAmount) : "—"}
-
Trade Vol ({RESERVE_LABEL})
+
{totalTradeAmount > 0 && plotUsd != null ? formatUsdValue(totalTradeAmount * plotUsd) : totalTradeAmount > 0 ? formatPrice(totalTradeAmount) : "—"}
+
Trade Vol
{donationEntries.length}
Donations
-
{totalDonationAmount > 0 ? formatPrice(totalDonationAmount) : "—"}
-
Donated ({RESERVE_LABEL})
+
{totalDonationAmount > 0 && plotUsd != null ? formatUsdValue(totalDonationAmount * plotUsd) : totalDonationAmount > 0 ? formatPrice(totalDonationAmount) : "—"}
+
Donated
From 5c5805b58fd736ddf113db8c7574ba2dd852ee5b Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Thu, 2 Apr 2026 15:09:57 +0100 Subject: [PATCH 2/2] [#757] Fix T2a review: show dash instead of raw PLOT in Activity Stats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trade Vol and Donated boxes now show "—" when plotUsd is unavailable, avoiding unlabeled PLOT values since labels no longer include "(PLOT)". Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/profile/[address]/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/profile/[address]/page.tsx b/src/app/profile/[address]/page.tsx index 6f7e2ada..b7a71043 100644 --- a/src/app/profile/[address]/page.tsx +++ b/src/app/profile/[address]/page.tsx @@ -1883,7 +1883,7 @@ function ActivityTab({ address }: { address: string }) {
Trades
-
{totalTradeAmount > 0 && plotUsd != null ? formatUsdValue(totalTradeAmount * plotUsd) : totalTradeAmount > 0 ? formatPrice(totalTradeAmount) : "—"}
+
{totalTradeAmount > 0 && plotUsd != null ? formatUsdValue(totalTradeAmount * plotUsd) : "—"}
Trade Vol
@@ -1891,7 +1891,7 @@ function ActivityTab({ address }: { address: string }) {
Donations
-
{totalDonationAmount > 0 && plotUsd != null ? formatUsdValue(totalDonationAmount * plotUsd) : totalDonationAmount > 0 ? formatPrice(totalDonationAmount) : "—"}
+
{totalDonationAmount > 0 && plotUsd != null ? formatUsdValue(totalDonationAmount * plotUsd) : "—"}
Donated