fix(cms): robust prompt copy and a readable legal approval rule (MITHOME-113)

Found during the live check on a staging copy: the embedded browser
denied the async Clipboard API, so "copy prompt" failed silently. The
panel now falls back to a selection copy and finally leaves the prompt
selected with a Ctrl/Cmd+C hint; covered by component tests.

Payload only shows a generic "field is invalid" toast for the rejected
approval, so the legal pages' status field description now states the
two-model rule next to the field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 11:58:59 +02:00
co-authored by Claude Opus 5.5
parent bff08edafe
commit 98ac9859c7
5 changed files with 105 additions and 14 deletions
+4 -1
View File
@@ -60,7 +60,10 @@ export const LegalPages: CollectionConfig = {
},
// MITHOME-113: legal translations need a recorded multi-model review
// before they can be approved (src/lib/legal-validation.ts).
translationStatusField(validateLegalApproval),
translationStatusField(
validateLegalApproval,
' Jogi oldalon a „Jóváhagyva” állapothoz legalább két különböző modell el nem utasító validálása kell (lásd: Jogi validáció).',
),
legalValidationGroup,
],
}