feat(cms): record hand-run legal translation reviews in the CMS (MITHOME-113)

Validation of legal translations is a manual flow (user decision): copy
the prompt, run it in any vendor's model, paste the answer back. The
legal validation block now holds the prompt panel and a list of reviews
(model, date, verdict, pasted answer, notes) instead of a model list and
report link. Approval needs two distinct models whose latest complete
review does not reject; a newer review supersedes a model's rejection.
The locale path collector now looks through row/collapsible wrappers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Do Siki
2026-09-29 11:19:54 +02:00
co-authored by Claude Opus 5.5
parent acd1ff2ed9
commit bff08edafe
12 changed files with 190 additions and 96 deletions
+9
View File
@@ -48,6 +48,15 @@ describe('collectLocalizedPaths', () => {
])
})
it('should look through unnamed row/collapsible wrappers', () => {
expect(
collectLocalizedPaths([
{ name: 'g', type: 'group', fields: [{ type: 'row', fields: [{ name: 't', type: 'text', localized: true }] }] },
{ type: 'collapsible', fields: [{ name: 'u', type: 'text', localized: true }] },
]),
).toEqual([['g', 't'], ['u']])
})
it('should throw on layout fields that could hide localized data', () => {
expect(() => collectLocalizedPaths([{ type: 'tabs' }])).toThrow('unsupported field type "tabs"')
})