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>
49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
import * as migration_20260929_localize_globals from './20260929_localize_globals'
|
|
import * as migration_20260929_cta_page_links from './20260929_cta_page_links'
|
|
import * as migration_20260929_localize_legal_pages from './20260929_localize_legal_pages'
|
|
import * as migration_20260929_en_ai_draft from './20260929_en_ai_draft'
|
|
import * as migration_20260929_service_claims from './20260929_service_claims'
|
|
import * as migration_20260929_partner_references from './20260929_partner_references'
|
|
|
|
/**
|
|
* Payload migrations, in order. Passed to `mongooseAdapter({ prodMigrations })`
|
|
* so they run automatically on production startup (MITHOME-111).
|
|
*/
|
|
export const migrations = [
|
|
{
|
|
up: migration_20260929_localize_globals.up,
|
|
down: migration_20260929_localize_globals.down,
|
|
name: '20260929_localize_globals',
|
|
},
|
|
{
|
|
// MITHOME-123 — order-independent from the locale migration (handles both href shapes).
|
|
up: migration_20260929_cta_page_links.up,
|
|
down: migration_20260929_cta_page_links.down,
|
|
name: '20260929_cta_page_links',
|
|
},
|
|
{
|
|
// MITHOME-112 — LegalPages counterpart of the globals locale migration.
|
|
up: migration_20260929_localize_legal_pages.up,
|
|
down: migration_20260929_localize_legal_pages.down,
|
|
name: '20260929_localize_legal_pages',
|
|
},
|
|
{
|
|
// MITHOME-113 — needs both locale migrations above ({ hu } shapes).
|
|
up: migration_20260929_en_ai_draft.up,
|
|
down: migration_20260929_en_ai_draft.down,
|
|
name: '20260929_en_ai_draft',
|
|
},
|
|
{
|
|
// MITHOME-129 — after the English import (revises the AI-draft English too).
|
|
up: migration_20260929_service_claims.up,
|
|
down: migration_20260929_service_claims.down,
|
|
name: '20260929_service_claims',
|
|
},
|
|
{
|
|
// MITHOME-131 — partner categories/permissions + references section copy.
|
|
up: migration_20260929_partner_references.up,
|
|
down: migration_20260929_partner_references.down,
|
|
name: '20260929_partner_references',
|
|
},
|
|
]
|