@ai-matrx/records 0.71.3 → 0.71.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3459,6 +3459,10 @@ function validateTemplate(raw, options = {}) {
3459
3459
  const tz = raw.business?.timezone || "UTC";
3460
3460
  const tablesRaw = allTables(raw);
3461
3461
  const ISO_DAY = /\b\d{4}-\d{2}-\d{2}\b/;
3462
+ for (const table of tablesRaw) {
3463
+ const tf = table.fields.find((f) => f.key === table.titleField);
3464
+ if (tf && tf.default !== void 0) say(`tables (${table.token}).fields (${tf.key})`, `"${tf.label}" names each ${table.labelSingular.toLowerCase()}, so it takes no default; ask it on the form instead.`);
3465
+ }
3462
3466
  for (const table of tablesRaw) {
3463
3467
  for (const f of table.fields.filter((x) => isRelation(x) && x.parityType !== "attachment")) {
3464
3468
  const max = f.relationMax ?? (f.multi ? STORE_LIST_RELATION_MAX : 1);