Skip to content
webdmamun
All work

Case Management & Fee Ledger

A case-management platform for a regulated advisory practice: stages, statutory deadlines, tasks, document control and an internal fee ledger.

Industry
Legal and immigration advisory
Status
live2026

Built with Next.js, React, TypeScript, PostgreSQL, Prisma, Vercel

This system holds sensitive client data, so it is described without naming the client, without a link, and without screenshots of real records.

In this case study

The problem

Cases lived in folders and inboxes. Statutory deadlines were tracked by whoever remembered them, caseworker load was invisible to the people responsible for it, and the fees agreed with a client existed only in the conversation where they were agreed.

What was needed

A system that makes the deadline the first-class object, shows who is carrying what, and records money agreed against the case it belongs to.

What I built

A case workspace where every case carries its stage, its deadlines, its tasks and its documents. Attention items surface what is due rather than waiting to be searched for. An internal ledger records agreed fees, instalments and payments received, giving the practice a financial view of the caseload without turning the tool into an accounting system.

What it does

  • Case intake and stages

    Structured intake, then an explicit stage for every case.

  • Deadline control

    Statutory and internal dates tracked per case, with what needs attention surfaced first.

  • Tasks and allocation

    Work assigned to caseworkers, visible to managers.

  • Document handling

    Case documents held against the case rather than in a shared drive.

  • Internal fee ledger

    Agreed fees, instalments and receipts recorded against the case.

  • Management view

    Caseload, stages and outstanding items in one place.

The hard parts

Sensitivity as a design constraint

The data is about people in the middle of a legal process, which rules out the usual conveniences: no third-party analytics on authenticated pages, no error reporting that captures request bodies, no screenshots of real records — including in this case study, which is why it names no client and links to no live system.

Deadlines that mean something

A date field is easy; a deadline that changes the order of the day is not. Attention is derived from the case state rather than stored as a flag, so a completed step stops shouting on its own and nothing depends on someone remembering to clear a checkbox.

Money without becoming an accounting system

The practice needed to see what was agreed and what had arrived, but a full ledger would have been the wrong product. The fee record is deliberately internal and deliberately simple: agreed amount, instalments, receipts — enough to answer the question, not enough to pretend it is bookkeeping.

Architecture

A Next.js application with an ORM over PostgreSQL. Authentication gates the whole workspace; there is no public surface other than the sign-in page.

Where it stands

In daily use by the practice.

A case carries its stage, its deadlines, its tasks and its documents in one place, rather than across a shared drive and a spreadsheet. Statutory and internal dates are tracked per case and surfaced by what is due, so attention items are found rather than searched for. Agreed fees, instalments and receipts are recorded against the case, giving the practice a financial view of its caseload. Managers can see caseload, stages and outstanding items without asking a caseworker for them.

Want something like this? Tell me how your business runs today.