@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/dist/index.js CHANGED
@@ -3001,7 +3001,8 @@ function fillEstimateWords(args) {
3001
3001
  const total = costInPoints(args.estimate.costCents, args.rate);
3002
3002
  if (total !== null) return `about ${total}${args.estimate.extraReads ? " or more" : ""}`;
3003
3003
  }
3004
- return "no estimate";
3004
+ const why = args.estimate ? args.estimate.says?.trim() : "";
3005
+ return why ? `no estimate: ${why}` : "no estimate";
3005
3006
  }
3006
3007
  var FILL_OFF_REASON = "Switch it on to fill";
3007
3008
  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.";
@@ -13945,7 +13946,21 @@ function GridBody({
13945
13946
  archived,
13946
13947
  " is archived. Nothing was destroyed \u2014 it is in this table\u2019s Archived items, where Restore brings it back."
13947
13948
  ] }),
13948
- /* @__PURE__ */ jsx46(Button34, { size: "sm", variant: "ghost", className: "ml-auto h-6", onClick: () => setArchived(null), children: "Dismiss" })
13949
+ undo.canUndo ? /* @__PURE__ */ jsx46(
13950
+ Button34,
13951
+ {
13952
+ size: "sm",
13953
+ variant: "outline",
13954
+ className: "ml-auto h-6",
13955
+ "data-records-undo-now": "",
13956
+ onClick: () => {
13957
+ setArchived(null);
13958
+ void undo.undo();
13959
+ },
13960
+ children: "Undo"
13961
+ }
13962
+ ) : null,
13963
+ /* @__PURE__ */ jsx46(Button34, { size: "sm", variant: "ghost", className: undo.canUndo ? "h-6" : "ml-auto h-6", onClick: () => setArchived(null), children: "Dismiss" })
13949
13964
  ]
13950
13965
  }
13951
13966
  ) : null,
@@ -14261,16 +14276,13 @@ function GridBody({
14261
14276
  setDeleteBusy(false);
14262
14277
  setDeleting(null);
14263
14278
  if (failed) return;
14264
- if (merged) {
14265
- undo.push({
14266
- label: `Archived ${name}`,
14267
- cells: [],
14268
- archived: [row.id]
14269
- });
14270
- sheetController.current?.focusGrid();
14271
- } else {
14272
- setArchived(name);
14273
- }
14279
+ undo.push({
14280
+ label: `Archived ${name}`,
14281
+ cells: [],
14282
+ archived: [row.id]
14283
+ });
14284
+ if (merged) sheetController.current?.focusGrid();
14285
+ else setArchived(name);
14274
14286
  }
14275
14287
  }
14276
14288
  )