Skip to content

Commit adb8d10

Browse files
os-zhuangclaude
andcommitted
demo(showcase): mark task status/priority trackHistory (ADR-0052 §5b)
Demonstrates declarative activity: status/priority changes auto-appear on the record timeline ("Status: In Progress → In Review") with zero hook code. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bd3b7f6 commit adb8d10

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/app-showcase/src/objects/task.object.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export const Task = ObjectSchema.create({
4040
status: Field.select({
4141
label: 'Status',
4242
required: true,
43+
// ADR-0052 §5b — declarative activity. Status changes auto-appear on the
44+
// record timeline as "Status: To Do → In Progress" with zero hook code.
45+
trackHistory: true,
4346
options: [
4447
{ label: 'Backlog', value: 'backlog', default: true, color: '#94A3B8' },
4548
{ label: 'To Do', value: 'todo', color: '#3B82F6' },
@@ -50,6 +53,7 @@ export const Task = ObjectSchema.create({
5053
}),
5154
priority: Field.select({
5255
label: 'Priority',
56+
trackHistory: true,
5357
options: [
5458
{ label: 'Low', value: 'low', color: '#94A3B8' },
5559
{ label: 'Medium', value: 'medium', default: true, color: '#3B82F6' },

0 commit comments

Comments
 (0)