From 1e7e8c292282a352455e816f35b5864c61f7395b Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 3 Apr 2026 12:00:03 +0100 Subject: [PATCH 1/2] [#802] Redesign stats as 3-col boxes in header info panel Replace the separate market stats section with 3 bordered stat boxes (Market Cap, Supply Minted, Deadline) matching the profile page box style. On desktop, boxes sit inside the info panel next to the Moleskine cover. On mobile, they stack as a 3-col grid below the info rows. Fixes #802 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/story/[storylineId]/page.tsx | 61 +++++++++++++--------------- 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/src/app/story/[storylineId]/page.tsx b/src/app/story/[storylineId]/page.tsx index 1feb325a..95007e27 100644 --- a/src/app/story/[storylineId]/page.tsx +++ b/src/app/story/[storylineId]/page.tsx @@ -333,48 +333,45 @@ function StoryHeader({ - - - {/* Market stats */} - {priceInfo && ( -
-
-
-
+ {/* Stat boxes — inside info panel on desktop, below info rows */} + {priceInfo && ( +
+
-
- - Supply Minted - - - {formatSupply(priceInfo.totalSupply)} tokens - +
+
{formatSupply(priceInfo.totalSupply)}
+
Supply Minted
-
- {storyline.sunset ? ( -
- Story complete - - {storyline.plot_count} {storyline.plot_count === 1 ? "plot" : "plots"} total - -
- ) : storyline.last_plot_time ? ( -
- - Next Plot Publish Deadline - - +
+ {storyline.sunset ? ( + <> +
{storyline.plot_count}
+
Complete
+ + ) : storyline.last_plot_time ? ( + <> +
+ +
+
Deadline
+ + ) : ( + <> +
+
Deadline
+ + )}
- ) : null} -
+
+ )}
- )} +
{!storyline.sunset && ( )} From f21c18feaae6c7d1c5a6e53bd73227ed3b1928b0 Mon Sep 17 00:00:00 2001 From: Cho Young-Hwi Date: Fri, 3 Apr 2026 12:03:08 +0100 Subject: [PATCH 2/2] [#802] Fix MarketCapBox to match profile stat box pattern Flip MarketCapBox from label-then-value to value-then-label layout, matching the profile page stat box pattern (text-sm font-bold value on top, text-[9px] text-muted label below). All 3 stat boxes now render consistently. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/components/MarketCapBox.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/MarketCapBox.tsx b/src/components/MarketCapBox.tsx index fa32fd79..2c231d51 100644 --- a/src/components/MarketCapBox.tsx +++ b/src/components/MarketCapBox.tsx @@ -33,18 +33,16 @@ export function MarketCapBox({ const changePercent = priceChange?.changePercent ?? null; return ( -
- - Market Cap - - + <> +
{formatUsdValue(marketCapUsd)} {changePercent !== null && ( - = 0 ? "text-accent" : "text-error"}`}> + = 0 ? "text-accent" : "text-error"}`}> {changePercent >= 0 ? "+" : ""}{changePercent.toFixed(1)}% )} - -
+
+
Market Cap
+ ); }