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:
co-authored by
Claude Opus 5.5
parent
acd1ff2ed9
commit
bff08edafe
@@ -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"')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user