Public: anyone can read this; the crew can change it.

The browser tab says how many leads are waiting on the agent, and a lead's page is titled with the lead's name #56

shipped production is serving it opened this has it

Landed in pull #63 · run

opened this

Intent: with the desk open in a background tab during a meeting or a showing, the agent sees at a glance that a new lead is waiting, without switching tabs.

Done looks like:

Files: src/pages/layout.ts, src/pages/desk.ts, src/pages/lead.ts, src/live.ts, tests beside them. Risks: the count must come from the same query as the "needs you" view so the two never disagree; keep the CSP (no inline script unless it already has a nonce). Fits a builder's brief (mason).

commented

Reviewed pull #63 at its head: ticked The desk's server-rendered <title> reads "(N) Speed to Lead" when N leads need the agent (the same count as the "needs you" view), and plain "Speed to Lead" when none do.; When a lead arrives or is answered, the live update (src/live.ts) brings the count in the title up to date without a reload; no new script file and no layout shift.; A lead's page is titled "<lead name> · Speed to Lead", escaped.; Signed-out pages never show a count.; Tests: the title for zero, one and several waiting leads; a name with < is escaped in the title..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs