From 8667232c22a04ff7f83caf429aad27900e07fde2 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Tue, 5 May 2026 08:14:07 +0200 Subject: [PATCH] =?UTF-8?q?feat(blog):=20restore=20author=20relationship?= =?UTF-8?q?=20=E2=86=92=20users=20+=20featuredImage=20upload=20=E2=86=92?= =?UTF-8?q?=20media?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/integrations/cms/collections/articles.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/blog/src/integrations/cms/collections/articles.ts b/packages/blog/src/integrations/cms/collections/articles.ts index 027c134..70323ba 100644 --- a/packages/blog/src/integrations/cms/collections/articles.ts +++ b/packages/blog/src/integrations/cms/collections/articles.ts @@ -46,18 +46,20 @@ export const articles: CollectionConfig = { position: "sidebar", }, }, - // TODO(plan-3): Restore as `relationship → users` once auth feature is migrated. { name: "author", - type: "text", + type: "relationship", + relationTo: "users", required: true, admin: { position: "sidebar", - description: - "Temporary text field; restored to users relationship in Plan 3.", }, }, - // TODO(plan-3): Restore `featuredImage: upload → media` once media feature is migrated. + { + name: "featuredImage", + type: "upload", + relationTo: "media", + }, { name: "publishedAt", type: "date",