- Shipped
- November 12, 2026 at 12:06 AM UTC
- Author
- Kamo
- Commit
- dd92661
How many leads in Fresh > New Lead the caller's grid would list, at any age. The grid's permission floor is now one builder (visibilityFloor) shared by the grid page, the selection and this count: VIEW_UNASSIGNED_LEADS sees every active lead; without it, assigned leads plus unassigned ones on a free-for-all product. The status is LeadStatusType.NEW_LEAD by its stored description (org labels never change it), asked as STATUS = 'Fresh' AND SUB_STATUS = 'New Lead' so IX_LEADS_ORG_STATUS serves it: ~4 ms on the 796k-lead org, ~110 ms on Harmony (EXPLAIN ANALYZE, read-only, 2026-11-11). A member without VIEW_LEADS gets {count: 0, canView: false} and nothing is queried. Needs kamo-shared-library 6d444688 (LeadService.countLeadGrid, LeadGridQuery.parentStatus, FreshNewLeads). Building against it also brings the post-commit lead floor signal into this service.
