#1 reign tracking

How long the current #1 has held the top spot, and the longest run anyone has ever held it.

What it is

Two cards — a crown for the reigning rep with 'On top for 3 weeks · since Aug 2', and a trophy for the all-time record. When the record belongs to the current reign, the card says so: 'and still going. That's the record!'

Also called: longest reign · who has held number one · streak record · king of the hill

See it
#1 reign tracking
Won
47%
Avg cycle
19d
Pipeline
$507k
JanSep
The two-up card: 👑 'Current #1 — You · On top for 3 weeks · since Aug 2' beside 🏆 'Longest reign on record — 2 months — and still going. That's the record! 🔥'. ReignCard in LeaderboardView.tsx. Sample data — no customer information appears here.
How it works
  1. 1Each continuous reign is one row: it opens when a new rep takes #1 and closes when someone overtakes them.
  2. 2Maintained by the leaderboard endpoint as the board is computed — no cron job.
  3. 3The 'established' #1 is the top rep who is not provisional, so a new rep with one lucky lead cannot start a reign.
  4. 4Duration renders in human units: minutes, hours, days, weeks, months, then years to one decimal.
  5. 5Wrapped so a failure logs a warning and the board still renders.
Why we built it

Migration 112: 'Tracks who has held the #1 spot on the sales leaderboard and for how long. Each row is one continuous reign… Maintained best-effort by the /api/leaderboard route as the board is computed (no cron).' The route's own comment adds the anti-fluke rule about provisional reps.

The problem
  • There was no persistent record of who led and for how long.
  • A single lucky lead could take the top spot.
Sound familiar?
What you get
A record to chase, which is what makes a contest stick.
Reigns are only ever started by reps with a real sample behind them.

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →