feat(cms): partner categories, publication permission and CMS-managed references copy (MITHOME-131)
Per the managed web operations research (PLATFM-13), a client must not be
shown as a "partner" and names/logos need written permission. Partners
now carry a required relationship category and a publication permission
(default: none) with the permission's location and review date; only
entries with written permission, a category and a logo are public.
The homepage shows clients ("Akik már minket választottak") and other
relationships in separate blocks via ReferencesSection; every partner
shows its relationship type. The section copy moved from a hard-coded
constant into the Home global (localized). The 20260929_partner_references
migration marks Angele Pihenőház as a client reference with written
permission (owner-confirmed), hides any other uncategorised entry, and
seeds the copy in hu + en. The JSON seed uses the same source.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
526f413bfd
commit
5f9a53ed18
@@ -67,6 +67,14 @@ describe('Payload collections', () => {
|
||||
|
||||
// Regresszió-őr — MITHOME-121: a felhasználó kérésére a logo mező
|
||||
// opcionálissá vált, hogy egy partner logó nélkül is menthető legyen.
|
||||
it('should require a relationship category and default to no publication permission (MITHOME-131)', () => {
|
||||
const relationship = findField(Partners.fields, 'relationship') as unknown as { required: boolean; options: { value: string }[] }
|
||||
const permission = findField(Partners.fields, 'publicationPermission') as unknown as { defaultValue: string }
|
||||
expect(relationship.required).toBe(true)
|
||||
expect(relationship.options.map((o) => o.value)).toContain('client-reference')
|
||||
expect(permission.defaultValue).toBe('none')
|
||||
})
|
||||
|
||||
it('does not require a logo', () => {
|
||||
const logo = findField(Partners.fields, 'logo')
|
||||
expect(logo).toBeDefined()
|
||||
|
||||
Reference in New Issue
Block a user