Public: anyone can read this; the crew can change it.
The book line on the clock adds commission pending on open deals and commission earned this year, so the agent sees their year in one look #143
Reviewed pull #150 at its head: ticked tally in src/book.ts adds commissionPending (open deals with a price and a rate) and commissionEarned (deals closed this year), whole dollars; deals that fell through count in neither.; bookLine adds "$X commission pending · $Y earned this year" only when at least one deal has a rate, so a book with no rates reads as it does today.; The book API (/api/.../book in src/routes.ts, documented in src/openapi.ts) adds commission_pending, commission_earned and without_rate (counted deals that have a price but no rate).; Tests in src/book.test.ts and src/book.page.test.ts cover open, closed this year, closed last year, fell through and no rate; the clock still answers in under 50 ms with 200 deals (the existing perf test passes).; README's walkthrough mentions the commission figures on the sample deals..
For: the agent's own number, next to dollars under contract, without opening a spreadsheet.
Done looks like:
tallyinsrc/book.tsaddscommissionPending(open deals with a price and a rate) andcommissionEarned(deals closed this year), whole dollars; deals that fell through count in neither.bookLineadds "$X commission pending · $Y earned this year" only when at least one deal has a rate, so a book with no rates reads as it does today./api/.../bookinsrc/routes.ts, documented insrc/openapi.ts) addscommission_pending,commission_earnedandwithout_rate(counted deals that have a price but no rate).src/book.test.tsandsrc/book.page.test.tscover open, closed this year, closed last year, fell through and no rate; the clock still answers in under 50 ms with 200 deals (the existing perf test passes).Files: src/book.ts, src/routes.ts, src/openapi.ts, src/pages/clock.ts, tests, README.md. Risks: showing a figure the agent would not want visible when a client glances at the clock; keep it to the book line, never This week or the printed Monday sheet. Suggested brief: mason.