@ai-matrx/records-ui 0.116.84 → 0.116.85

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.116.85
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
7
+
3
8
  ## 0.116.84
4
9
 
5
10
  - **A choice column's settings link it to a named pick list (lane L58, defect 91, 2026-10-22).** Column settings of a Choice / Several-choices column carry "Choices come from" (`PickListLink.tsx`): the organization's pick lists, read only when the picker opens, or "This column only". Choosing a list saves the Field's `options_table_id` alone in the one settings call; "This column only" sends the words shown with the column's kind. The cell editor and an agent's pick-list read already follow `options_table_id`. Guard: `a-column-settings-link-a-column-to-a-named-pick-list.test.tsx`. Consumer action: none.
package/dist/index.cjs CHANGED
@@ -25569,6 +25569,16 @@ function sourceWords(source, nameOf3 = () => void 0) {
25569
25569
  if (kind2) return `${(0, import_text_case11.humanizeIdentifier)(kind2)}${note ? `: ${note}` : ""}.`;
25570
25570
  return note;
25571
25571
  }
25572
+ function agentWords(actor, changes = []) {
25573
+ const kinds = new Set(
25574
+ changes.map((c) => c.source && typeof c.source.kind === "string" ? c.source.kind : null).filter(Boolean)
25575
+ );
25576
+ const who = kinds.has("enrichment") || kinds.has("ai") ? "an AI column" : kinds.has("import") ? "an import" : kinds.has("form") ? "a form" : "an assistant";
25577
+ const obo = actor.on_behalf_of ?? null;
25578
+ const forName = obo?.name ?? (obo ? "a person" : actor.name ?? "a person");
25579
+ const startedBy = obo && actor.user_id && obo.user_id && actor.user_id !== obo.user_id ? actor.name ?? "somebody else" : null;
25580
+ return { who, forName, startedBy };
25581
+ }
25572
25582
 
25573
25583
  // src/Enrich.tsx
25574
25584
  init_plainWords();
@@ -38758,7 +38768,7 @@ function VersionRow({
38758
38768
  },
38759
38769
  children: [
38760
38770
  /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "flex min-w-0 items-baseline gap-1.5", children: [
38761
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Who, { actor: entry.actor }),
38771
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Who, { actor: entry.actor, changes: entry.changes }),
38762
38772
  /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { className: "shrink-0 text-muted-foreground", children: verbWords(operationWords(entry.operation_label)) }),
38763
38773
  entry.undoable ? /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_design_system112.Badge, { variant: "secondary", className: "min-w-0 shrink truncate text-[10px]", title: "part of a bigger change", children: "part of a bigger change" }) : null,
38764
38774
  /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "ml-auto flex shrink-0 items-baseline gap-1.5 whitespace-nowrap text-muted-foreground", children: [
@@ -38833,16 +38843,20 @@ function VersionRow({
38833
38843
  )
38834
38844
  );
38835
38845
  }
38836
- function Who({ actor }) {
38846
+ function Who({ actor, changes }) {
38837
38847
  const name = actor.name ?? (actor.kind === "system" ? "the platform" : "somebody");
38838
38848
  if (actor.kind === "agent") {
38839
38849
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "shrink-0", children: [
38840
38850
  /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_design_system112.Badge, { variant: "outline", className: "mr-1 text-[10px]", children: "agent" }),
38841
- actor.on_behalf_of ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "text-muted-foreground", children: [
38842
- actor.name ?? "an assistant",
38843
- ", for ",
38844
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("strong", { className: "font-medium text-foreground", children: actor.on_behalf_of.name ?? "a person" })
38845
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("span", { className: "text-muted-foreground", children: actor.name ?? "an assistant" }),
38851
+ (() => {
38852
+ const said2 = agentWords(actor, changes);
38853
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "text-muted-foreground", children: [
38854
+ said2.who,
38855
+ ", for ",
38856
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("strong", { className: "font-medium text-foreground", children: said2.forName }),
38857
+ said2.startedBy ? ` \xB7 started by ${said2.startedBy}` : null
38858
+ ] });
38859
+ })(),
38846
38860
  actor.approved_by ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("span", { className: "text-muted-foreground", children: [
38847
38861
  " \xB7 approved by ",
38848
38862
  actor.approved_by.name ?? "a person"
@@ -39056,7 +39070,10 @@ function FormulaHistoryList({ recordId, fieldKey, label, onClose, className }) {
39056
39070
  "Formula v",
39057
39071
  row.formula_version
39058
39072
  ] }),
39059
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", { className: "shrink-0 text-muted-foreground", children: row.actor.kind === "agent" ? `agent for ${row.actor.on_behalf_of?.name ?? "a person"}` : row.actor.name ?? (row.actor.kind === "system" ? "the platform" : "somebody") }),
39073
+ /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", { className: "shrink-0 text-muted-foreground", children: row.actor.kind === "agent" ? (() => {
39074
+ const said2 = agentWords(row.actor, []);
39075
+ return `${said2.who}, for ${said2.forName}${said2.startedBy ? ` \xB7 started by ${said2.startedBy}` : ""}`;
39076
+ })() : row.actor.name ?? (row.actor.kind === "system" ? "the platform" : "somebody") }),
39060
39077
  /* @__PURE__ */ (0, import_jsx_runtime133.jsx)("span", { className: "w-28 shrink-0 whitespace-nowrap text-right text-muted-foreground", title: new Date(row.occurred_at).toLocaleString(), children: whenText(row.occurred_at) })
39061
39078
  ] }, `${row.record_version}-${row.formula_version}-${i}`)) })
39062
39079
  ] });
@@ -39189,8 +39206,10 @@ function FieldValueHistory({
39189
39206
  ] }),
39190
39207
  /* @__PURE__ */ (0, import_jsx_runtime134.jsx)("span", { className: "shrink-0 text-muted-foreground", children: row.actor.kind === "agent" ? /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_jsx_runtime134.Fragment, { children: [
39191
39208
  /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_design_system114.Badge, { variant: "outline", className: "mr-1 text-[10px]", children: "agent" }),
39192
- "for ",
39193
- row.actor.on_behalf_of?.name ?? "a person",
39209
+ (() => {
39210
+ const said3 = agentWords(row.actor, []);
39211
+ return `${said3.who}, for ${said3.forName}${said3.startedBy ? ` \xB7 started by ${said3.startedBy}` : ""}`;
39212
+ })(),
39194
39213
  row.actor.approved_by ? ` \xB7 approved by ${row.actor.approved_by.name ?? "a person"}` : null
39195
39214
  ] }) : row.actor.name ?? (row.actor.kind === "system" ? "the platform" : "somebody") }),
39196
39215
  /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(