KamoCRM

The Leads icon counts every lead in Fresh > New Lead, live

Featurekamo-internal
Shipped
November 12, 2026 at 12:08 AM UTC
Author
Kamo
Commit
4bbadd8

A red badge on the Leads icon's top-right corner, the same one Mail and Support carry (hidden at 0, 99+ past 99), in the bar, the rail and the floor menu alike. The number is how many leads in Fresh > New Lead this member's grid would list, at any age: GET **************** built on the grid's own permission floor, with the status identified by the stored enum description so an organization's renamed label still counts. Live without a new socket: NavCountsContext listens on the organization's existing floor-leads topic **************** org-guarded on SUBSCRIBE and closed to SEND in StompDestinationAuthz) through useOrgChanges and the shared media client, re-reading only on frames whose kind is "fresh-new". The server folds bursts into a frame a second; the console waits 1.5 s for quiet but never more than 10 s (new useOrgChanges maxWaitMs), plus up to 1 s of jitter so an organization's consoles do not ask at once. Seeded on mount, on reconnect, on focus and every 60 s like the other badges. A member without VIEW_LEADS is answered canView=false and never subscribes. Needs SecurityService dd926614 and kamo-shared-library 6d444688.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing