feat(cms): add press contact image

This commit is contained in:
syntaxbullet
2026-07-31 15:21:21 +02:00
parent e3c47c4500
commit c2dc42f243
10 changed files with 399 additions and 7 deletions

View File

@@ -98,6 +98,8 @@ describe('Payload field inventory', () => {
'about.testimonials.items',
'pressIndex.events.statusLabels',
'pressIndex.downloads.contactName',
'pressIndex.downloads.contactImage',
'pressIndex.downloads.contactImageAlt',
'netzwerk.jury.members',
'netzwerk.patronage.greetingVideo',
'netzwerk.patronage.greetingVideoButtonLabel',
@@ -150,4 +152,19 @@ describe('Payload field inventory', () => {
})
expect(field).not.toHaveProperty('defaultValue')
})
it('limits the press contact upload to image media', () => {
const field = findField(pressIndexFields, 'pressIndex.downloads.contactImage')
expect(field).toMatchObject({
type: 'upload',
relationTo: 'media',
filterOptions: {
mimeType: {
contains: 'image',
},
},
})
expect(field).not.toHaveProperty('defaultValue')
})
})