Problem
The Claim Royalties button is completely hidden (return null) when unclaimed royalties are 0 or plot count < 2. Users have no idea this feature exists or what conditions unlock it.
Current behavior
ClaimRoyalties.tsx line 78:
if (unclaimed === BigInt(0) && txState === "idle") return null;
Component renders nothing — users never see it.
Expected behavior
- Always show the Claim Royalties section in the writer dashboard storyline card (below Earnings row)
- Disable the Claim button when conditions aren't met:
unclaimed === 0 → button disabled
plotCount < 2 → button disabled
- Add a tooltip/info icon (ⓘ) next to "Claim Royalties" heading that explains:
- What royalties are: "You earn a percentage of every buy/sell trade on your storyline token"
- When you can claim: "Requires at least 2 chained plots and non-zero unclaimed royalties"
- Current status: e.g. "0/2 plots" or "2/2 plots, 0 WETH unclaimed"
- Show current unclaimed amount even when 0:
Unclaimed: 0 WETH
Tooltip content
Royalties
You earn a share of every trade on your storyline's token.
To claim:
• Chain at least 2 plots (currently: {plotCount})
• Have unclaimed royalties > 0 (currently: {unclaimed} {RESERVE_LABEL})
Acceptance Criteria
Files
src/components/ClaimRoyalties.tsx — remove early return, add disabled state + tooltip
- Possibly a shared
Tooltip component if one doesn't exist
Problem
The Claim Royalties button is completely hidden (
return null) when unclaimed royalties are 0 or plot count < 2. Users have no idea this feature exists or what conditions unlock it.Current behavior
ClaimRoyalties.tsxline 78:Component renders nothing — users never see it.
Expected behavior
unclaimed === 0→ button disabledplotCount < 2→ button disabledUnclaimed: 0 WETHTooltip content
Acceptance Criteria
return null)Files
src/components/ClaimRoyalties.tsx— remove early return, add disabled state + tooltipTooltipcomponent if one doesn't exist