From c9b505dd10da4a1be149a718d9a4b76dd93e22d2 Mon Sep 17 00:00:00 2001 From: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com> Date: Mon, 29 Jun 2026 23:21:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(examples):=20ADR-0079=20=E2=80=94=20app-tod?= =?UTF-8?q?o=20task=20uses=20nameField,=20not=20retired=20titleFormat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app-todo example modeled the retired `titleFormat` pattern. With autoprov (provisionPrimary at registry) now designating a derived nameField, a render-only titleFormat is at best advisory and at worst shadowed. Migrate to the canonical `nameField: 'subject'` so the example demonstrates ADR-0079 best practice and the record-title gate stays clean. Drops the now-unused `tmpl` import. --- examples/app-todo/src/objects/task.object.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/app-todo/src/objects/task.object.ts b/examples/app-todo/src/objects/task.object.ts index 012fa89fd8..a38fd4665f 100644 --- a/examples/app-todo/src/objects/task.object.ts +++ b/examples/app-todo/src/objects/task.object.ts @@ -1,4 +1,4 @@ -import { P, tmpl } from '@objectstack/spec'; +import { P } from '@objectstack/spec'; // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license. import { ObjectSchema, Field } from '@objectstack/spec/data'; @@ -180,7 +180,7 @@ export const Task = ObjectSchema.create({ { fields: ['category'] }, ], - titleFormat: tmpl`{{record.subject}}`, + nameField: 'subject', compactLayout: ['subject', 'status', 'priority', 'due_date', 'owner'], validations: [