Top Rep
—
Last Dialed
—
No calls in this period
Outbound Dials
—
Inbound Calls
—
Recorded Call Time
—
Manual SMS
—
Offers Made
—
Deals UC
—
Contracts Signed
—
| Date | Rep | Dials | Talk Time | Manual SMS | Auto SMS | Unknown SMS | Total SMS | Offers |
|---|
One row per rep per day, most recent first. Read from the daily source dispo_daily_history_v2(p_days: 30) and then scoped to the same reporting window the board is showing — Today, Yesterday, Last Week, This Week, Last 7 Days, Last 30 Days or a custom range. Real daily rows only, never built from the period totals. Days with no imported history simply do not appear, and an SMS column the backend has not returned reads as “—”, never 0.
Offers → Contract
—
Contract → Closed
—
Dials → Offer
—
Every metric below is already built into this page. Each one stays in an explicit “awaiting” state — never a zero, never an estimate — until the Supabase reporting function returns that column or accepts that window. The moment it does, the metric appears on the board with no rebuild and no code change.
Last 7 Days filter
Lights up when the function answers p_period: 'last7'. The button is disabled until then.
Custom date range
Lights up when the function accepts p_start_date / p_end_date with p_period: 'custom'.
This page only ever READS the reporting function with the public publishable key. It never triggers a sync, never writes to the database, and never holds a secret. Whether a column appears is decided entirely by the function’s own server-side grants.
Employee totals come from the public Supabase function dispo_leaderboard_v2 (p_period: today · yesterday · last7 · last30 · custom). Employee metrics refresh every 5 seconds, the historical charts every 60 seconds; SMS data syncs from the phone system every ~5 minutes. The Daily Log is read per rep per day from dispo_daily_history_v2 — real daily rows only, never built from the period totals. Conversions render only when the underlying data exists: zero denominators are shown as “—”, never invented. Manager editing is a convenience gate, not secure authentication — do not rely on it to protect anything.
Read-only health check of the public Supabase function that powers this board (public.dispo_leaderboard_v2). Shows the arguments sent, row counts per reporting window and the exact error text if a read is blocked — never credentials, phone numbers or customer data.
Refresh cadence: this dashboard re-queries the function every 60 seconds. Call and SMS source data sync from the phone system roughly every 5 minutes, so the newest activity may take a few minutes to appear. This is not sub-second live tracking.
Switch the reporting window for the entire board. Pick a preset period or a custom date range, then filter by rep.
Custom date range
Sends exactly the From / To range you choose to the reporting function with p_period: 'custom' (Eastern Time). It is never pre-filled with, or matched to, another period such as Last 30 Days. If the backend has not yet enabled the custom parameter, the note below says so plainly and no figure is substituted or invented.