@ai-matrx/records-ui 0.116.98 → 0.116.100

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,9 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.116.100
4
+
5
+ - **The fill confirm step says why there is no estimate (2026-10-23, FA5-F5).** `fillEstimateWords` returns `no estimate: <the server's says>` when the estimate door answers `basis: "none"` with a reason (it was a bare "no estimate"). No API change. Test: `an-ai-fill-is-priced-before-it-runs.test.tsx`.
6
+
7
+ ## 0.116.99
8
+
9
+ - **Undo after Archive in every grid (2026-10-23, Matrx 2 walker).** Archiving a record from the classic grid (no `grid: "merged"`) now puts the step on the grid's one undo stack, as the merged grid did: the archived notice carries Undo, and Undo / Cmd-Z restore it through the store's restore door. Guard: `src/undo-after-archive-in-every-grid.test.tsx` (red on the classic grid before). Consumer action: none.
10
+
3
11
  ## 0.116.98
4
12
 
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`.
13
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
14
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
15
+ Diff: `git diff bbcbc0da70 0a2b8c9356 -- apps/shared/records-ui/src`
16
+
17
+ Changed shipped source files (7):
18
+ - `apps/shared/records-ui/src/entityRefEntry.ts`
19
+ - `apps/shared/records-ui/src/htmlFrameEntry.ts`
20
+ - `apps/shared/records-ui/src/index.ts`
21
+ - `apps/shared/records-ui/src/objectActions.ts`
22
+ - `apps/shared/records-ui/src/pickers.ts`
23
+ - `apps/shared/records-ui/src/skeletonEntry.ts`
24
+ - `apps/shared/records-ui/src/tableShape.ts`
7
25
 
8
26
  ## 0.116.97
9
27
 
package/dist/index.cjs CHANGED
@@ -25795,7 +25795,8 @@ function fillEstimateWords(args) {
25795
25795
  const total = costInPoints(args.estimate.costCents, args.rate);
25796
25796
  if (total !== null) return `about ${total}${args.estimate.extraReads ? " or more" : ""}`;
25797
25797
  }
25798
- return "no estimate";
25798
+ const why = args.estimate ? args.estimate.says?.trim() : "";
25799
+ return why ? `no estimate: ${why}` : "no estimate";
25799
25800
  }
25800
25801
  var FILL_OFF_REASON = "Switch it on to fill";
25801
25802
  var NO_ENRICH_REASON = "Having an agent fill this column is not switched on here yet, so this panel does not offer it rather than offering something that cannot happen. Everything else on this panel works. It is on our list, not yours.";
@@ -37058,7 +37059,21 @@ function GridBody({
37058
37059
  archived,
37059
37060
  " is archived. Nothing was destroyed \u2014 it is in this table\u2019s Archived items, where Restore brings it back."
37060
37061
  ] }),
37061
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_design_system102.Button, { size: "sm", variant: "ghost", className: "ml-auto h-6", onClick: () => setArchived(null), children: "Dismiss" })
37062
+ undo.canUndo ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
37063
+ import_design_system102.Button,
37064
+ {
37065
+ size: "sm",
37066
+ variant: "outline",
37067
+ className: "ml-auto h-6",
37068
+ "data-records-undo-now": "",
37069
+ onClick: () => {
37070
+ setArchived(null);
37071
+ void undo.undo();
37072
+ },
37073
+ children: "Undo"
37074
+ }
37075
+ ) : null,
37076
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_design_system102.Button, { size: "sm", variant: "ghost", className: undo.canUndo ? "h-6" : "ml-auto h-6", onClick: () => setArchived(null), children: "Dismiss" })
37062
37077
  ]
37063
37078
  }
37064
37079
  ) : null,
@@ -37374,16 +37389,13 @@ function GridBody({
37374
37389
  setDeleteBusy(false);
37375
37390
  setDeleting(null);
37376
37391
  if (failed) return;
37377
- if (merged) {
37378
- undo.push({
37379
- label: `Archived ${name}`,
37380
- cells: [],
37381
- archived: [row.id]
37382
- });
37383
- sheetController.current?.focusGrid();
37384
- } else {
37385
- setArchived(name);
37386
- }
37392
+ undo.push({
37393
+ label: `Archived ${name}`,
37394
+ cells: [],
37395
+ archived: [row.id]
37396
+ });
37397
+ if (merged) sheetController.current?.focusGrid();
37398
+ else setArchived(name);
37387
37399
  }
37388
37400
  }
37389
37401
  )