fix: address per-document audit log review feedback

- backfill DocumentMeta.includeAuditLog from the effective team/org
  setting so documents created before the column keep embedding audit
  logs after deploy
- default includeAuditLog in the webhook payload schema so resending
  historical WebhookCall payloads stays backward-compatible
- allow audit-log embedding to be changed after a document is sent
  (drop the server guards and the editor checkbox lock)
- restore the commented change-detection block in updateEnvelope
This commit is contained in:
ephraimduncan
2026-06-16 11:40:36 +00:00
parent ecc99b8e4f
commit 77889270b8
5 changed files with 53 additions and 61 deletions
@@ -915,7 +915,7 @@ export const EnvelopeEditorSettingsDialog = ({ trigger, ...props }: EnvelopeEdit
<Checkbox
id="include-audit-log"
checked={field.value}
disabled={field.disabled || envelopeHasBeenSent}
disabled={field.disabled}
onCheckedChange={(checked) => field.onChange(Boolean(checked))}
/>
</FormControl>