From 81d270a242a6a31944872fca106142f575adb1b1 Mon Sep 17 00:00:00 2001 From: delchev Date: Wed, 5 Aug 2026 16:11:49 +0300 Subject: [PATCH] clarify: 'now' defaults render in the target field's own shape; a |format label token formats month values Editorial clarification of already-specified constructs: the month/week field types are in the specification, but the 'now' constant's value shape against them and the |format behavior over a month value were unstated. Matches the reference implementation. Co-Authored-By: Claude Fable 5 --- versions/1.0.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/versions/1.0.md b/versions/1.0.md index d10146a..cb44c28 100644 --- a/versions/1.0.md +++ b/versions/1.0.md @@ -305,7 +305,7 @@ A stored, read-only `Name` recomputed on every write, so lookups and dropdowns s label: "{Number} - {Date|yyyy MMMM} - {Customer.name}" ``` -Tokens are the entity's own fields or **one-hop** to-one relation properties (`{Customer.name}`); `|format` is a date pattern for temporal values. Deeper paths are rejected — compose by referencing the related entity's own label (`{Parent.Name}`). It is not allowed next to an authored `name` field, and a token must never reference a `sensitive` field. +Tokens are the entity's own fields or **one-hop** to-one relation properties (`{Customer.name}`); `|format` is a date pattern for temporal values — a `month` field's `YYYY-MM` value formats through it too (`{period|yyyy MMMM}` renders "2026 July"). Deeper paths are rejected — compose by referencing the related entity's own label (`{Parent.Name}`). It is not allowed next to an authored `name` field, and a token must never reference a `sensitive` field. ### function — the presentation role @@ -869,6 +869,8 @@ schedules: dayField: day ``` +`map` copies a value of the queried row; `defaults` sets a constant — `now` means "today", rendered in the **target field's own shape** (a `date` field gets today's date, a `month` field the current `YYYY-MM`, a `week` field the current `YYYY-Www`). + ### integrations — outbound HTTP Tell another system on an event. @@ -959,7 +961,7 @@ generates: sourceStatus: 3 # optional: flip the source's status after the target is created ``` -Adds a button on the source view; the clone saves through the target's own layer, so numbering, status init and calculated fields fire. An optional `sourceStatus` flips the source record's status once the target exists. +Adds a button on the source view; the clone saves through the target's own layer, so numbering, status init and calculated fields fire. `map` copies a source value; `defaults` sets a constant — `now` means "today", rendered in the **target field's own shape** (a `date` field gets today's date, a `month` field the current `YYYY-MM`, a `week` field the current `YYYY-Www`). An optional `sourceStatus` flips the source record's status once the target exists. ### transitions — guarded status flips