Legal practice
The legal preset installs clients and matters, time billed from a rate card into invoices, a trust ledger, documents with versions and signatures.
The legal preset is for an app in the style of Clio. A firm opens a matter
for a client, checks for conflicts against the parties it already knows,
tracks time on the matter, bills it from a rate card, and holds the client's
retainer in a trust account.
Config
import { defineConfig } from "better-supabase/config";
export default defineConfig({ preset: "legal" });npx better-supabase init --preset legal starts a new project from it, and
npx better-supabase apply --preset legal adds it to one you have
(CLI).
Blocks
The preset is saas plus these blocks, and
whatever they require:
| Block | Role in the app |
|---|---|
| parties | Clients and opposing parties, with dedupe for conflict checks |
| time-tracking | Time on each matter, with approved timesheets |
| billable-time | Rate cards that turn tracked time into draft invoice lines |
| invoices | Invoices to clients, with payments |
| ledger | Trust and retainer accounts per client |
| documents | Briefs and pleadings, edited together |
| versions | Numbered drafts of each document |
| signatures | Engagement letters signed by the client |
How the blocks connect
A matter is your own table, registered as a subject, so time entries, documents and invoices point at it. Billable time prices the matter's time from the rate card and writes draft invoice lines in minor units. A retainer is a ledger account kind: money received into trust and money applied to an invoice are balanced ledger transactions, so the trust balance is always the ledger's.
With ReUI
- Data Grid for matters and time entries, with Filters on client and status.
- A weekly timesheet grid from the time-tracking week shape.
- Timeline for a matter's documents, time and invoices.
Last updated on
Events and ticketing
The events preset installs tickets in a catalog, orders, capacity through bookings, QR passes signed with signing keys and checked in, a waitlist and reminders.
Expenses and spend
The spend preset installs expense reports with receipts and spend policies, approvals, the approved total and reimbursement on the ledger, and receipt files for AI extraction.