feat(cms): copyable legal validation prompt in the legal page editor (MITHOME-113)

buildLegalValidationPrompt() is the single review template: the criteria
(meaning, GDPR terminology, obligation strength, preserved markers,
clarity), a severity table output with a final verdict, and the
Hungarian/English text of every section paired by id, missing English
flagged as high severity. The legal page sidebar shows it through the
LegalValidationPrompt UI field (hu + en read from REST with draft=true
and no locale fallback) with copy and refresh buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 11:13:14 +02:00
co-authored by Claude Opus 5.5
parent 329e2e3403
commit acd1ff2ed9
5 changed files with 221 additions and 0 deletions
+9
View File
@@ -76,5 +76,14 @@ export const LegalPages: CollectionConfig = {
{ name: 'reportRef', label: 'Validációs riport (hivatkozás)', type: 'text' },
],
},
{
// MITHOME-113 (D8): copyable review prompt built from the saved hu + en texts.
name: 'validationPrompt',
type: 'ui',
admin: {
position: 'sidebar',
components: { Field: './src/components/admin/LegalValidationPrompt#LegalValidationPrompt' },
},
},
],
}