System architecture
Pipeline Aging Board Architecture
- 01Establish a stage-entry
A stage-by-stage aging board that shows how long each open lead has been sitting in its current pipeline stage, with buckets (0-2 days, 3-7, 8-14,...
- 02SQL that computes age = now
Write SQL that computes age = now() - stage_entered_at per open lead, bucketed, plus per-stage median age and a count of leads past an SLA threshold.
- 03Supabase Postgres
Supabase Postgres contributes the trusted model for Pipeline Aging Board so metrics are defined before they are visualized.
- 04Postgres triggers
Build the board as columns per stage with the oldest leads at top, an age badge, and a clear 'past threshold' highlight; default to open leads only (exclude won/lost/spam/partial).
- 05Review Queue
If stage history can't be reconstructed, ship an interim 'days since last activity/update' aging view (using updated_at) clearly labeled as last-to...
- 06Dashboard Action
Stale deals become visible and sortable by neglect, so the team works the oldest-at-risk leads first instead of always touching the newest — fewer...