What it is
A school site where everything is maintained by school staff: notices, events, gallery, achievements, careers, enquiries, houses, categories and comments. Ten distinct entity types, all edited by people whose job is not this.
The brief was a content management system. What the project actually taught us is a shape — and that shape is now how we build every admin surface.
It is also the oldest project in this set, and the one with a decision visible in progress: two media providers in the dependency list at once, because a migration between them was mid-flight.
The problem
Staff delete things by accident, and in batches
Not one record at a time with a moment of hesitation. Twenty gallery items selected, then an action chosen from a menu. A per-record confirmation dialog does nothing to help here — it is the batch operation itself that needs to be recoverable.
A hard delete removes something a client will ask for later
The photograph from a function three years ago, the notice somebody wants to reissue. Once it is gone from the database it is gone from the backup window too, and the conversation that follows is not a technical one.
Soft delete alone turns out not to be enough
Hiding a record from a list is the easy half. The hard half is that a restored record has to come back into a world that may have changed — a category it belonged to might itself be deleted, so restoring it would produce something orphaned and invisible.
A migration between two media providers was mid-flight
Both providers were live in the dependency list simultaneously, with assets split between them. Visible in the project as what looked like a mistake and was actually a half-finished move.
What we built
Bulk actions and trash became the default shape of every route
Not added per entity on request. Every one of the ten entity types has bulk operations and a recoverable trash from the start, so there is no entity where the staff member's mistake is the unlucky one.
A restore is allowed to refuse
If restoring a record would produce something orphaned or inconsistent, the restore declines and explains what has to be put back first — before the button is pressed, not after. On later projects this matured further: a trash action requires a typed reason, and the activity log records both the removal and the restoration.
The media migration was inventoried before it was finished
A script enumerates what is held where, so the move is a list that can be worked through and checked rather than a guess about what is left. It is the same instinct as taking a URL inventory before replacing a site.
What the client has now
- Every entity on the site can be bulk-edited and recovered from trash by school staff.
- A restore that would create an inconsistency explains itself rather than silently producing one.
- The media migration had a checkable inventory rather than an end date and hope.
- The pattern established here — bulk, trash, restore, reason, log — is now how we build every admin.
What we took from it
Never hard-delete anything a client can click
This is not a preference, it is arithmetic. The cost of a recoverable trash is one timestamp column and a filter on every query. The cost of not having it is an irreversible loss of something a client cares about, at a moment when you are the person who built the button. And the harder half is the restore: hiding a record is easy, putting it back into a world that has moved on is the part that needs to be able to say no.