Contracts¶
Repo: savvydealer-adam/Contracts · Path: C:/Users/adam/Contracts · Owner: Adam
Status: Live · % Done: 60 · Last commit: 2026-02-26
Deployed: https://contracts.savvydealer.com
What it is¶
SavvyDealer's digital contract/proposal system. Dealers view and sign SavvyDealer agreements online; internal admins author, send, and archive them.
Why it exists¶
Paper and DocuSign were too manual and disconnected from the CRM. Contracts gives us branded, in-house signing tied to our own dealer records so a signed contract can cleanly provision CRM products and QBO invoicing.
How it works¶
Stack: React + Vite + TS (client), Express + TS (server), Drizzle ORM, Postgres (pg), Google Cloud Storage for signed PDFs, Cloud Run.
- client/ — React SPA for both admin authoring and dealer-facing signing flow
- server/ — Express API, migration scripts, Drizzle schema in shared/
- Migrations in migrations/; one-off scripts check-cards.mjs, migrate-data.mjs
- deploy.ps1 for manual deploys; also deployed via Cloud Run service contracts
What's done¶
- Contract creation, send, and signing flow
- Admin detail view with billing address display
- Purge flow (including billing block)
- PDF storage integration
- Card/payment-related checks (
check-cards.mjs)
What's next¶
- Tighter AI CRM handoff — signed contract should auto-create/activate
dealership_productsrows and a QBO invoice (seeai-crm/server/services/scheduledInvoices.ts) - More templated contract types (website, AI products, ad-spend addenda)
- Audit trail / version history UI polish
- No commits since Feb 2026 — needs a refresh pass before next sales push
Where the code lives¶
- Client entry:
client/src/App.tsx - Server entry:
server/index.ts - Schema:
shared/schema.ts, migrations inmigrations/ - Deploy:
Dockerfile,deploy.ps1
Integrations¶
- AI CRM — dealer/customer records should be sourced from CRM, contract close should provision CRM products
- QuickBooks Online — via AI CRM, not directly — a signed contract becomes a scheduled invoice
- Google Cloud Storage — stored signed PDFs
Don't rebuild this — extend it¶
Any dealer-signature or proposal workflow belongs in this repo. Don't stand up a separate e-sign service — extend Contracts and route the resulting obligation through AI CRM.