From fed003ae31c5a08745b6425fbcca92d07c732190 Mon Sep 17 00:00:00 2001 From: Karim Gabriele Varano Date: Tue, 30 Jun 2026 18:36:37 +0200 Subject: [PATCH] cms: adopt the schema-driven editor (core update) + tune config field types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git subtree pull of openbureau-core main brings the schema-driven admin editor (renders sidebar + fields from /api/schema, unknown frontmatter preserved on save). openbureau.config.js color→type:'color' (swatch) and layout options text/image/icon so the editor reproduces the previous look. Co-Authored-By: Claude Opus 4.8 --- cms/openbureau.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/openbureau.config.js b/cms/openbureau.config.js index 75eba4e..91a33c3 100644 --- a/cms/openbureau.config.js +++ b/cms/openbureau.config.js @@ -20,8 +20,8 @@ export default { { name: 'slug', type: 'slug' }, { name: 'date', type: 'date' }, { name: 'weight', type: 'number' }, - { name: 'color', type: 'string' }, - { name: 'layout', type: 'select', options: ['text'], default: 'text' }, + { name: 'color', type: 'color' }, + { name: 'layout', type: 'select', options: ['text', 'image', 'icon'], default: 'text' }, { name: 'tags', type: 'list' }, { name: 'summary', type: 'text' }, { name: 'cover_image', type: 'image' }, @@ -54,7 +54,7 @@ export default { statKey: 'rubriken', fields: [ { name: 'title', type: 'string', required: true }, - { name: 'color', type: 'string' }, + { name: 'color', type: 'color' }, { name: 'layout', type: 'string' }, { name: 'weight', type: 'number' }, { name: 'body', type: 'markdown' },