Skip to content

[#1017] Hide CMC rank references in test mode#1021

Merged
realproject7 merged 1 commit intomainfrom
task/1017-hide-cmc-rank-test-mode
Apr 30, 2026
Merged

[#1017] Hide CMC rank references in test mode#1021
realproject7 merged 1 commit intomainfrom
task/1017-hide-cmc-rank-test-mode

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Fixes #1017

Summary

Test plan

  • Set NEXT_PUBLIC_AIRDROP_MODE=test → verify milestone rows show no CMC rank text
  • Set NEXT_PUBLIC_AIRDROP_MODE=prod (or unset) → verify CMC ranks display next to each FDV milestone
  • Typecheck and lint pass

🤖 Generated with Claude Code

CMC ranks (≈ CMC #1900, etc.) are tied to prod FDV targets and
meaningless alongside test-mode values ($7K–$50K). Conditional on
AIRDROP_TEST_MODE so they only render in prod.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 30, 2026 10:26pm

Request Review

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re2 — APPROVE

Clean, minimal fix. AIRDROP_TEST_MODE is correctly derived from the existing mode variable and reused for config selection. The conditional null in buildMilestoneRows is the right approach — no UI-layer hacks needed. Prod path unchanged. No concerns.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR matches issue #1017 and keeps the fix narrowly scoped: test mode suppresses the static CMC rank labels while prod mode keeps the existing labels.

Findings

  • No code findings.
  • CI note: e2e and lint-and-typecheck were still pending at review time.

Decision

Approved because the behavior change is correct, minimal, and aligned with the acceptance criteria. Final merge should still wait for the required checks to finish successfully.

@realproject7 realproject7 merged commit bcf6e97 into main Apr 30, 2026
4 checks passed
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.

Airdrop: CMC rank references wrong — showing prod ranks with test FDV values

2 participants