B2B Field Sales CRM
Receipts
Before → after launch
Automated tests per release
9393
Flagship screen (lines of code)
13441344
Modules for demos & trials
22
Engineering metrics measured in-repo, Nov 2026. Operational outcomes are client-reported or design intent, labeled as such. Before/after panels are illustrative workflow mocks — never screenshots of the client's live system.
The client sells to factories. Long cycles, site demonstrations, multi-week trials. Every deal that slipped through the cracks was revenue nobody noticed losing.
Every open deal has a next action, an owner and a date — by design, not by memory.
This is the story of one system that replaced a sprawl of spreadsheets, phone tag and paper daily reports — and then did the harder thing: it got simpler every month it was used. The before/after below is an illustrative workflow mock, not a screenshot of the client's system.
Before: deals tracked in a shared spreadsheet with missing dates, sticky-note phone reminders and a handwritten daily report submitted late. After: one pipeline where every open deal shows its next action, its owner and a booked date, and completing a follow-up automatically books the next one.
The Challenge
A multi-region industrial sales team was running on memory and goodwill:
- Deals lived in heads, notebooks and spreadsheets. When someone forgot, moved on, or left, the opportunity quietly died. The system's own mission statement became: no sales opportunity falls through the cracks.
- Managers couldn't verify field work — which plants were visited, whether important customers were being neglected.
- Daily reports, attendance and travel claims were separate manual chores: double entry, disputes, unverifiable claims, evenings of paperwork.
- Customer knowledge was scattered — what machines a factory runs, who works there, what they quoted, what they plan to expand — across different heads and files.
- Demos happened and trials ran, but nobody centrally knew what was upcoming, overdue, or concluded. Expensive pre-sales effort vanished into limbo.
- Numbers weren't trustworthy. Records could be quietly changed or deleted, and month-end reviews became arguments about memory.
What we built
One system, four role experiences — salesperson, manager, admin/owner, data manager — from the first factory visit to the signed order, and every expense claim in between. The hero is the follow-up engine: completing a follow-up records the interaction and automatically books the next one, so no open deal ever exists without a next action, an owner and a date. Winning a deal teaches the system something — the sold product joins the plant's equipment record, so the next conversation starts from what the customer already runs.
Try it. This is a working mock on fictional data — the same mechanism, live:
Acme Factory — conveyor retrofit
Stage: Negotiation · Owner: Salesperson A · 1 product = 1 enquiry
Follow-up queue
0/3
- Follow-up 1 · Call — collect trial feedbackMon, Jan 12
- Record the interaction
- Auto-book the next (date + owner)
Next action owner: Salesperson A · due Mon, Jan 12
One active follow-up is open. Complete it — the next one books itself.
Equipment registry
Acme Factory · installed base
Conveyor line A
Legacy drive · installed 2014
Packaging unit P-2
Installed 2018
Mark the deal Won — the sold product lands here automatically, and the customer activates.
Under the hood, the scale is enterprise-grade, but it runs without a microservices tax:
One system, clearly-owned rooms
Engineering metrics measured in-repo, Nov 2026.
- Backend modules
- 12
- Kernel + 11 business modulesBoundaries enforced by architecture tests
- Frontend domains
- 14
- One self-contained folder eachEvery domain mirrors a backend module
- API endpoints
- ~380
- Across 40 controllersApproximate surface, counted in-repo
- Entity types
- 47
- The domain's shared vocabularyCounted in-repo
- Business rules
- 549
- Numbered, mirrored in code and testsDiscussions happen by rule number
- Role experiences
- 4
- Salesperson · manager · admin · dataOne shared screen per workflow
The Interactive Prototype Stage
The client tested real user journeys on working software before we built the production version. The enquiry-listing redesign was agreed on a fully mocked, approved UI preview — every stage, priority and overdue state on realistic fake data — before production code was written. The support center was built mock-first against the typed backend contract: demoable and testable before the backend merged, integration-ready the day it shipped. Arguments were settled by evidence, not hierarchy.
The Technical Solution
Five decisions, each with a business reason — not a stack dump:
- One system, clearly-owned rooms. A modular monolith with boundaries enforced by automated architecture tests. New features land without putting the sales pipeline at risk — and a two-person studio can run it.
- The client's sales policy as code. 549 numbered business rules mirrored in code, tests and docs. Discussions happen by rule number, not recollection.
- A pipeline that moves itself. One active follow-up per deal; nightly jobs schedule key-account visits by tier (L1 monthly → L4 yearly); winning auto-activates the customer. The system keeps the appointment book.
- Nothing important disappears quietly. Approval gates for deletes, sensitive edits, backward moves and backdates, with old-vs-new snapshots and a self-review ban. Deals with history can never be deleted — only closed Lost.
- Releases that can't ship red. Five automated gates wired into the deploy pipeline; blue-green deploys with automatic rollback; staging mirrored from production every 72 hours.
Browse the policy-as-code, then watch a release pass — or break — the gates:
Rules as code
The sales policy, enforced by the system.
0
numbered business rules
8 of 8 curated examples
- STG-12
Winning writes the sold product into the customer's equipment record.
in codein testsin docs - STG-27
A salesperson's backward stage move is never silent — it becomes an approval request.
in codein testsin docs - ENQ-13
Bulk deal creation is all-or-nothing: one bad product reference rolls back the whole batch.
in codein testsin docs - ENQ-33
Only a Manager/Admin can reopen a closed deal — with a mandatory, audited reason.
in codein testsin docs - ENQ-46
Closing a deal runs one shared cascade: follow-ups cleared, open tasks cancelled, every step audited.
in codein testsin docs - TSK-29
Every reschedule needs a written reason; three flags a chronic delayer.
in codein testsin docs - APR-08
A deal with history can never be deleted — only closed Lost.
in codein testsin docs - APR-13
Nobody can approve their own request. Self-review is banned.
in codein testsin docs
Discussions happen by rule number, not recollection.
Eight public-safe examples from the 549-rule baseline. IDs are never reused; behavior changes update the rule and note the date.
Rules as code
Three rules, three guarantees.
Snippets are illustrative pseudo-code, not actual source — the real invariants live in the backend, each locked by a named test.
A deal with history can never be deleted — only closed Lost.
// APR-08 · illustrative — not actual source
function requestDelete(deal: Deal) {
if (deal.hasHistory) return deny("close as Lost instead");
return approvalQueue.submit(deal, reason);
}Enforced by a test named after it.
Winning writes the sold product into the customer's equipment record.
// STG-12 · illustrative — not actual source
function onStageWon(deal: Deal, customer: Customer) {
customer.equipment.add(deal.product, { source: deal.id });
customer.status = "active";
}Enforced by a test named after it.
Every reschedule needs a written reason; three flags a chronic delayer.
// TSK-29 · illustrative — not actual source
function reschedule(task: Task, reason: string) {
require(reason.trim(), "written reason required");
task.reschedules += 1; // counter never resets
if (task.reschedules >= 3) flagForReview(task);
}Enforced by a test named after it.
Safe releases
Nothing ships red.
Five gates, then a blue-green deploy. Illustrative runs — hover or select a gate to see what it catches.
The deploy job needs: the gate job — a red gate means no deploy, by wiring, not by discipline.
Frontend deploy pipeline
From commit to deployment.
9c41f02saved current image as :rollbackhealth check 200 OK via public HTTPSrollback image removed — release finalizedThe deploy job literally cannot skip them. Near-zero downtime with automatic rollback.
Gates are embedded in every frontend deploy. Backend verification runs at the PR: full suite plus a fresh-database migration smoke test.
The best feature we ever shipped was a deletion
We shipped the CRM with separate Demo and Trial modules — each with its own forms, lists, dashboards and histories. Then we watched how the team actually used them.
Months of live use showed they were one journey: request → schedule → activity log → outcome. A trial was usually just the next chapter of a demo. So we unified them into one Evaluation on a nine-stage pipeline. Requesting a trial became one button on the same record. Roughly ten duplicated surfaces collapsed to one each. Old bookmarks redirect.
The deletion beat
The best feature we ever shipped was a deletion.
We shipped separate Demo and Trial modules — each with its own forms, lists, dashboards and histories. Months of live use showed they were one journey: request → schedule → activity log → outcome. So we merged them.
Two modules · ~10 duplicated surfaces.
Demos
5 surfaces
Trials
5 surfaces
One Evaluation
request → schedule → activity log → outcome
Illustrative mock · fake data (“Acme Factory”, DEMO-014 → EVAL-014). Not a screenshot of the client’s system.
And nothing was lost. Every historical record migrated one-to-one, with its activity logs intact — and a quiet "migrated from" label so nothing about the past became a mystery. Audit history was re-pointed, never rewritten. The migration rehearsed on a copy of production first, behind hard gates that abort rather than guess:
Migration safety
The rehearsal ledger
Before anything touched production, the migration ran on a fresh copy — behind hard gates that fail loudly instead of guessing.
on a fresh copy of productionarchive exported ✓pending approvals: 0 ✓unmapped statuses: 0 ✓seeded 1:1 ✓every reference resolves ✓all gates green — cleared for go-liveIt aborts rather than guess — rehearsed on a copy of production first.
Illustrative gate output — no client data, no row counts.
The same subtraction happened elsewhere. Stages became admin-configurable, so the client reshapes their sales process without a developer. And task creation lost its "Start Task" step and priority picker — because nobody used them:
Watch, then subtract
We deleted what nobody used.
After the task redesign shipped, we watched real usage — then removed the ceremony it exposed.
Task creation · the step
Tasks now go Pending → Completed. The in-between step was ceremony.
Task creation · the field
The priority column survives only for legacy display.
“Months of real usage taught us more than weeks of requirements gathering.”
Illustrative UI mock — not a screenshot of the client’s system.
| Surface | Before | After |
|---|---|---|
| Modules for demos & trials | 2 | 1 unified evaluation |
| Duplicated screens | ~10 | 1 of each |
| Requesting a trial | separate module | one button on the same record |
| Sales stages | hard-coded | admin-configurable |
| Historical records | at risk in a merge | migrated 1:1, provenance kept |
Not just software that works on day one — software that gets simpler every month it's used.
When the client said the numbers were wrong
Then came the call every builder dreads: "the totals change by themselves — are we losing data?"
We didn't argue. We traced every record on a safe local copy of production. New deals had arrived; one deal had legitimately moved to Won — "we received the purchase order." The arithmetic matched the client's observation exactly. Nothing was lost. The list hid closed deals and labeled the open-only count "Total."
Feel the panic, then the relief — this is an illustrative demo, not client data:
The trust beat
The label was lying
The client asked: “The totals change by themselves — are we losing data?” Click Win a deal and watch the same event read two different ways.
Enquiries · stats bar
Total:Total (open deals only): 18
The list hides closed deals — but the counter calls the open-only number “Total”.
Simulates one deal legitimately moving to Won.
Watch the “Total” when a sale closes.
Illustrative demo — not client data.
The forensic trail, in relative days:
The investigation
We traced every record
When the client said the numbers kept changing, we didn’t argue — we reconstructed the timeline from the data itself, on a safe local copy of production. The arithmetic matched their observation exactly.
- Day 0Deal created — a new enquiry enters the pipeline
- Day 1New deals arrived — the open count grows
- Day 2Moved to Won — purchase order received
- Day 2Arithmetic reconciled ✓ — nothing lost
Verdict: nothing was lost. Every number the client saw was accounted for — a successful sale had simply closed a deal.
Relative days, paraphrased events, no record IDs. Illustrative reconstruction — not client data.
We fixed the honesty: "X Open · Y Closed", computed from the same stage configuration the whole product uses — no stage ever silently dropped. And we locked it in with a regression test named after the bug, so it can never come back:
Locked in
A test named after the bug
The fix landed with a test whose name documents the exact failure — so the bug can never quietly return. When the major refactor later landed, every open issue was re-verified from scratch.
We wrote a regression test named after the bug so it can never come back. 1,927 tests guard every release.
Canned output replayed for this demo — nothing runs live.
The loop became a feature: an in-product support center — tickets with evidence snapshots frozen at report time, structured question→answer loops, an audit trail, resolution times. When a cross-region access issue surfaced, it was reproduced on a safe copy, two root causes found, and the client unblocked the same day.
The loop, built in
Support shouldn’t depend on email threads.
So we built a support center into the CRM itself: tickets with evidence frozen at report time, structured question → answer loops, an append-only audit trail, and resolution times the whole team can see.
Mock ticket · relative days · illustrative — not client data.
Trust is built by explaining, not just patching.
What's inside
Sixty-three features across seven areas — but you don't need the catalog. You need to know it covers the day. Here's the customer intelligence that separates this from a contact-list CRM, the ten standouts, and a day in the life of the two roles who live in it:
Acme Factory
Customer 360 · fictional demo data
Knows every machine on the factory floor.
- Hydraulic press · HX-400installed 2014Running
- CNC lathe · CL-220installed 2018Running
- Conveyor line · CV-90installed 2009Maintenance
Acme Factory is fictional — illustrative data, never a client record. Hover, focus or click a section to explore.
Feature breadth
Ten standouts from 63 features.
Curated highlights — the full catalog stays out of the portfolio.
Nothing gets forgotten.
Every open deal always has a next action, an owner and a date. Completing a follow-up books the next; a nightly job schedules key-account visits by tier.
One habit, two problems solved.
Submitting the day's work log is the attendance record. Month-end downloads as a 3-sheet, 28-column payroll-ready Excel pack — in one click.
Walk into any meeting fully briefed.
Machines on site, contacts by department, expansion plans and full interaction history — one page.
The sales process changes without a developer.
Admins rename, reorder and re-time stages, with follow-up rules and finality flags included.
Slice the pipeline to the exact question.
Multi-tag AND/OR logic combined with tier, region, priority, owner and date presets.
Pipeline reviews become a five-minute stand-up.
Drag-and-drop board showing raw deal count and total value per stage — no spreadsheet meeting.
Governance is a system property.
Edits, backward moves, deletes, backdates and travel claims flow through role-routed queues with diffs and reasons.
Two modules became one — history intact.
Demos and trials merged into a 9-stage pipeline; every legacy record and audit row migrated 1:1.
“Who changed this number?” always has an answer.
Old vs new values, who and when, grouped per save session — permanent and attributable.
Bulk onboarding, fast and safe.
Styled templates, row-level validation preview, and an explicit confirm before anything writes.
12 backend modules · 14 frontend domains · ~382 API endpoints · 47 entity types · 549 business rules · 4 role experiences
One system, four roles
A day in the life.
Command center
08:30The dashboard already knows what's overdue: two follow-ups past date, one visit due today.
Command centerBriefed before driving out
09:15Every machine on site, the purchase manager's number, last quarter's expansion plan — one screen.
Customer 360Enquiries in one form
11:00Interest in three products becomes three linked enquiries in one bulk form; next week's demo books its own tasks.
Bulk enquiriesEvaluationsThe trip logs itself
14:30Kilometres and travel mode recorded on the way back — the reimbursement amount calculates itself.
Travel logAuto reimbursementSubmit once, done twice
18:00The log pre-fills with the day's CRM work; add the visit detail and submit. Attendance records itself.
Daily logAttendance
The other two roles: the owner/admin governs stage rulebooks, access grants and approvals; the data manager stewards master data read-only — every import previews before it writes.
The receipts
We don't have measured client revenue figures, and we won't invent them. What we have are engineering receipts — measured in-repo, live-verified November 2026 — and operational outcomes the client team reported, labeled as such.
The test suite grew from 93 to 1,927 across the build. Scrub the milestones, then read the actual run:
The suite grew with every phase
93 → 1,927 automated tests · additions only
live-verified Nov 2026
The flagship screen went from a 1,344-line "god component" to 228 lines with one responsibility. Watch it shrink:
The god component, unmade
flagship screen · 1,344 → 228 lines
The flagship screen shrank from 1,344 lines to 228 as fetching, business rules, dialogs and render were extracted into one feature folder. Illustrative diagram; line counts measured in-repo, Nov 2026.
a change touches one folder, not forty files.
Illustrative slivers, not client code. Line counts measured in-repo, Nov 2026.
And the architecture pays rent. After the refactor, three newly reported issues were fixed in three small, fully gated commits:
The Commercial Outcome
Operational outcomes (client-reported / design intent): reporting became a by-product of work — minutes, not evenings. One habit, the daily log, solved reporting and attendance. The month-end payroll pack downloads in one click (a three-sheet, 28-column Excel workbook). No open deal without a next action. Key accounts visited on cadence. Losses stay on the record and become analysis, not disappearances. Anyone walks into any factory meeting fully briefed.
The maintainability dividend (measured): a change now touches one folder instead of forty files.
The living system: a support center, configurable stages, and observed-usage simplification mean the product keeps evolving after launch.
A salesperson's day, in one breath: open the command center, see today's visits and overdue follow-ups; pull up Customer 360 before driving out — every machine on the floor, every contact, the last conversation; log three enquiries in one form; the trip logs itself; submit the day's work log, and attendance records itself. From the first factory visit to the signed order — and every expense claim in between — one system.
The CRM that gets simpler every month it's used.
Engineering metrics measured in-repo (Nov 2026). Operational outcomes are client-reported or design intent, labeled as such. All interactive demos on this page use fictional data and are not screenshots of the client's live system. Published with the client's sign-off.