@ai-matrx/records-ui 0.116.35 → 0.116.37

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
@@ -2,6 +2,8 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ - **A saved form is never kept as unsaved work (2026-10-19).** `FormBuilder`'s keep timer, armed by the last keystroke, could fire after a save dropped the kept copy and before the read-back landed, keeping the saved form again; the next open said "Unsaved changes … restored" over saved work. What the last accepted save wrote is now never kept. Guard: `a-refused-save-keeps-the-builder.test.tsx` (slow read-back clause, red before). Consumer action: none.
6
+ - **A rule preview whose count throws says so (2026-10-19).** `FieldRulePreview` left a rejected `recordAggregate` unhandled and stayed on "Counting…" forever; it now shows a refusal ("…values could not be counted."). Guard: `a-value-that-no-longer-fits-and-a-failed-formula-say-why-in-the-cell.test.tsx`. Consumer action: none.
5
7
  - **No cost under a table answer or a run outcome (2026-10-18, law 14: asking and running are doing).** `AgentAnswer` loses its `costPoints` prop and the `data-table-ask-cost` line; the Enrich run-outcome message no longer appends the run's points (the settings and history lines keep theirs). Consumer action: stop passing `costPoints` to `AgentAnswer`.
6
8
  - **A section card shows and edits real schema tables (2026-10-18).** BREAKING: `SectionCard` takes `source` instead of `tableId` — the same union as `RecordsTableCard`: `{ kind: "table", id }` (a custom Table, unchanged) or `{ kind: "entity", token, filter? }` (a table made with `platform.create_entity_table`, e.g. `web_brand_choice`), drawn by the new `EntitySectionCard` over the one standard-source path (`entityTable.tsx`): the door's columns (bookkeeping and the pinned parent left out; a column the door marks read-only is text), edits through `entity_update` with the version seen and put back with the store's sentence on refusal, Add filed in the active organization. `filter` (`{ brand_id }`) shows one parent's rows — asked of the door as `eq` clauses, stamped on rows added — and is also accepted by `RecordsTableCard`'s entity source and `useEntitySourceTable` (`EntityFilter`, `entityFilterWhere` exported). Guard: `a-section-card-shows-and-edits-a-standard-table.test.tsx` (red without the change). Consumer action: replace `<SectionCard tableId={id} />` with `<SectionCard source={{ kind: "table", id }} />`.
7
9
  - **Build guard moves to the shared `../scripts/check-ships-once.mjs --apart first-page,helpers,data-source` (2026-10-18).** It replaces the private `scripts/check-client-modules-ship-once.mjs` (removed). It checks the client side the same way, and also checks the server side and stamps; the light doors stay apart. Output unchanged. Consumer action: none.
@@ -25,11 +27,29 @@
25
27
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
26
28
  - **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
27
29
 
28
- ## 0.116.35
30
+ ## 0.116.37
29
31
 
30
32
  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.
31
33
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
32
34
 
35
+ ## 0.116.36
36
+
37
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
38
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
39
+ Diff: `git diff cccbd6176f a243c8ae3d -- apps/shared/records-ui/src`
40
+
41
+ Changed shipped source files (1):
42
+ - `apps/shared/records-ui/src/FieldRulePreview.tsx`
43
+
44
+ ## 0.116.35
45
+
46
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
47
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
48
+ Diff: `git diff f36c92c906 cccbd6176f -- apps/shared/records-ui/src`
49
+
50
+ Changed shipped source files (1):
51
+ - `apps/shared/records-ui/src/ChartBlock.tsx`
52
+
33
53
  ## 0.116.34
34
54
 
35
55
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -6536,6 +6536,9 @@ function FieldRulePreview({ field: field2, tableId, rules }) {
6536
6536
  const numbers = holdsNumbers(field2);
6537
6537
  const groups = answer.data.map((row) => ({ value: groupValue(row.groups[field2.key] ?? null, numbers), count: row.row_count }));
6538
6538
  setPreview(previewRuleChange(latest.current, groups, answer.data.length >= PREVIEW_GROUPS));
6539
+ }).catch((thrown) => {
6540
+ if (cancelled) return;
6541
+ setRefusal((0, refusals_exports.refusalFromThrown)(thrown, `${name}'s values could not be counted.`, "The check still applies when you save."));
6539
6542
  });
6540
6543
  }, 300);
6541
6544
  return () => {
@@ -12322,4 +12325,4 @@ export {
12322
12325
  RecordNameText,
12323
12326
  HeldChangeDecision
12324
12327
  };
12325
- //# sourceMappingURL=chunk-IL66BADF.js.map
12328
+ //# sourceMappingURL=chunk-HGPMJHRJ.js.map