refactor: hide doc locale from admin editing UI

This commit is contained in:
Codex
2026-04-23 10:41:19 +08:00
parent ed7eb2e7e9
commit 1506867c90
9 changed files with 51 additions and 24 deletions
+2 -3
View File
@@ -25,7 +25,7 @@ export const ProductReviews: CollectionConfig = {
},
admin: {
baseFilter: independentDocListFilter('title'),
defaultColumns: ['title', 'docLocale', 'product', 'sourceName', 'sortOrder', 'status', 'updatedAt'],
defaultColumns: ['title', 'product', 'sourceName', 'sortOrder', 'status', 'updatedAt'],
description:
'Editorial reviews, quotes, thumbnails, and outbound links associated with products. Homepage review quotes are also sourced from this collection, and English/Chinese entries are maintained as separate documents.',
group: { en: 'Catalog', zh: '产品' },
@@ -54,8 +54,7 @@ export const ProductReviews: CollectionConfig = {
{ label: '简体中文', value: 'zh' },
],
admin: {
position: 'sidebar',
description: 'Independent document language for this review entry.',
condition: () => false,
},
},
{ name: 'title', label: { en: 'Title', zh: '标题' }, type: 'text', localized: true, required: true },