Skip to content

Instantly share code, notes, and snippets.

@hmseeb
Last active March 14, 2026 21:41
Show Gist options
  • Select an option

  • Save hmseeb/3af3fcaf06ef3942d529d8f94bc7e76f to your computer and use it in GitHub Desktop.

Select an option

Save hmseeb/3af3fcaf06ef3942d529d8f94bc7e76f to your computer and use it in GitHub Desktop.
PPL Lead Management — What's New

What's New — PPL Lead Management

Bug Fixes

  • Loan range fix — orders with min/max set to 0 now correctly treated as "no limit"
  • Credit floor — no longer hardcoded at 600, uses lowest active order's minimum instead
  • Pending leads bug — leads that couldn't be assigned now properly go to Unassigned queue
  • Delivery timeouts — stale pending deliveries timeout after 10min, queued deliveries expire after 48h
  • Custom hours format — PM hours (14:00+) now parse correctly for broker contact windows
  • Vault secrets error logging — delivery trigger now writes an error instead of silently skipping

Dashboard (Overview)

  • Rejected Rate KPI — shows % rejected today. Click to see table with name, vertical, credit score, reason
  • Failed Deliveries KPI — shows failed + permanent count. Click to see table with lead, broker, channel, full error on hover
  • Queue KPI removed — contact hours queue is paused system-wide, all leads deliver immediately

Brokers

  • Onboarding Status columnDashboard > Brokers. Color-coded badges: Completed (green), In Progress (amber), Not Started (gray). Filter by onboarding status from the filters dropdown
  • All brokers visible — brokers show up in the list regardless of onboarding status. You can add orders, edit, and manage them even before onboarding is complete
  • New Broker formDashboard > Brokers > New Broker. Fields: GHL Contact ID, name, email, phone, company, state, verticals, batch size, deal amount
  • Edit BrokerDashboard > Brokers > click broker > Edit (or dropdown menu > Edit). All fields editable
  • Operational SettingsDashboard > Brokers > Edit broker > scroll to Operational Settings. Delivery methods, webhook URL, timezone, contact hours, weekend pause, assignment status
  • Test WebhookDashboard > Brokers > click broker > Test Webhook button (also in edit form below webhook URL, and in dropdown menu on broker list). Sends sample lead payload to verify mapping
  • Back buttons — all create/edit forms now have a Back button

Orders

  • Back buttonDashboard > Orders > New Order now has Back button

API

  • POST /api/brokers/incoming — create brokers programmatically with idempotency on ghl_contact_id

Onboarding (ppl-onboarding)

  • Test Webhook buttonStep 2 (Delivery) > enter webhook URL > Send Test Payload. Verifies webhook before going live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment