feat(freight): track onboarding-phase edit history for companies

Ticket #238 — pre-approval edits and document uploads write straight
to the live company row with no approval gate and, until now, no
trace. Adds an append-only company_revisions log (diffed field
changes, document uploads) recorded from updateProfile and
uploadCompanyDocuments, exposed via GET /companies/:id/revisions and
shown as "Version history" on the backoffice customer detail page.
This commit is contained in:
Nathnael
2026-07-31 11:45:09 +00:00
parent d67297a601
commit 7c5d96795c
18 changed files with 383 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ import {
BookingStatusBadge,
ChangeRequestPendingBadge,
ChangeRequestReview,
CompanyRevisionHistory,
CompanyStatusBadge,
CompanyTypeBadge,
InvoiceStatusBadge,
@@ -710,6 +711,7 @@ export default function CustomerDetailPage() {
)}
<ChangeRequestReview company={company} />
<CompanyRevisionHistory companyId={company.id} />
<KpiStrip
items={[