fix(supabase): V1-2.1 audit M1 M2 M3 and LOW fixes in M5

Approval needs an active sheet (lock sheet, version, round); a base only
from a still-published round version; rights.mfa before rights.capability;
withdrawal of a published round refused; approver separation at publish;
deprecate and working copy serialised; closed codes; append-only acks;
upload policy bound to the registering editor. pgTAP 017-019 added.
This commit is contained in:
bchanot committed 2026-10-28 18:14:09 +01:00
1 parent 3914eaa866
commit d05f75da84
10 files changed
+1477 -127

No files matched your search

+5
View File
@@ -47,7 +47,9 @@ export const SHEET_FAILURE_KINDS = [
'draft.unchanged',
'draft.frozen',
'draft.not_a_draft',
'draft.exists',
'document.shape',
'document.schema_version',
'document.species',
'document.too_large',
// sheet and species state
@@ -57,6 +59,7 @@ export const SHEET_FAILURE_KINDS = [
'sheet.published_history',
'sheet.historical_read_only',
'sheet.species_invalid',
'sheet.slug_taken',
'species.exists',
'species.not_active',
'species.not_inactive',
@@ -83,9 +86,11 @@ export const SHEET_FAILURE_KINDS = [
'publish.species.other',
'publish.drawing.missing',
'publish.drawing.changed',
'view.asset.unknown',
// uploads and working copy
'upload_missing',
'size_mismatch',
'asset.referenced',
'working_copy.source_invalid',
'working_copy.exists',
'working_copy.assets_missing',