Skip to content

feat(giveback): all-time leaderboard tab + fix causes-breakdown colours#6318

Merged
idoshamun merged 4 commits into
mainfrom
feat/giveback-leaderboard-breakdown-colors
Jul 14, 2026
Merged

feat(giveback): all-time leaderboard tab + fix causes-breakdown colours#6318
idoshamun merged 4 commits into
mainfrom
feat/giveback-leaderboard-breakdown-colors

Conversation

@tsahimatsliah

@tsahimatsliah tsahimatsliah commented Jul 14, 2026

Copy link
Copy Markdown
Member

What

Two giveback changes, both behind the existing featureGiveback flag.

1. All-time leaderboard tab — a dedicated Leaderboard tab (between Rewards and Causes) showing ranked contribution standings:

  • Medal-tinted rank chips for the podium (gold/silver/bronze), avatar, name, amount unlocked.
  • The viewer's own row is tinted, plus a "your rank" recap with the exact gap to the next place and a Take action CTA (falls back to a "hold the crown" line at feat: turn links in comments to anchor elements #1).

2. Causes-breakdown colour fix — in the "Where the money will go" donut, cabbage (purple) and bacon (pink) sat adjacent in SLICE_COLORS, so a typical 4-slice chart painted two near-identical magenta tones (e.g. Open source vs Mental health). The palette is reordered so the earliest slices are maximally distinct hues and the two magenta-family tones sit at opposite ends. Colours/tokens are unchanged — order only.

Data

No backend leaderboard endpoint exists yet, so standings are placeholder (marked with a TODO), isolated in useGivebackLeaderboard — only that hook changes when the endpoint lands. The "You" row is stitched in from the real logged-in profile so the recap feels personal.

Where to see it

Storybook: Features/Giveback/Leaderboard.

Notes

Supersedes #6316 (leaderboard) and #6317 (colour fix), combined into one clean PR off main.

🤖 Generated with Claude Code

Preview domain

https://feat-giveback-leaderboard-breakd.preview.app.daily.dev

…olours

Adds a dedicated "Leaderboard" tab (between Rewards and Causes) showing
the all-time contribution standings: medal-tinted podium rank chips,
the viewer's own tinted row, and a "your rank" recap with the exact gap
to the next place and a "Take action" CTA. Standings are placeholder
until a backend leaderboard endpoint lands - isolated in
useGivebackLeaderboard so only that hook changes when it does. The whole
surface stays behind the existing featureGiveback flag. Storybook:
Features/Giveback/Leaderboard.

Also fixes the "Where the money will go" donut, where cabbage (purple)
and bacon (pink) sat adjacent in SLICE_COLORS and a typical 4-slice
chart painted two near-identical magenta tones. Reorder the palette so
the earliest slices are maximally distinct hues and the two
magenta-family tones sit at opposite ends; colours/tokens unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jul 14, 2026 12:09pm
storybook Building Building Preview Jul 14, 2026 12:09pm

Request Review

@idoshamun
idoshamun merged commit 10c946d into main Jul 14, 2026
11 checks passed
@idoshamun
idoshamun deleted the feat/giveback-leaderboard-breakdown-colors branch July 14, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants