jazz-tools 0.18.37 → 0.18.38

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.
@@ -2238,7 +2238,16 @@ function HistoryView({
2238
2238
  {
2239
2239
  id: "action",
2240
2240
  header: "Action",
2241
- accessor: (row) => row.action,
2241
+ accessor: (row) => {
2242
+ if (row.isValid) return row.action;
2243
+ return /* @__PURE__ */ jsxs18(Fragment10, { children: [
2244
+ row.action,
2245
+ /* @__PURE__ */ jsxs18("span", { style: { color: "red", display: "block" }, children: [
2246
+ "Invalid transaction: ",
2247
+ row.validationErrorMessage
2248
+ ] })
2249
+ ] });
2250
+ },
2242
2251
  sortable: false,
2243
2252
  filterable: true,
2244
2253
  sortFn: (a, b) => a.action.localeCompare(b.action)
@@ -2286,7 +2295,8 @@ function getHistory(coValue) {
2286
2295
  author: tx.author,
2287
2296
  action: mapTransactionToAction(change, coValue),
2288
2297
  timestamp: new Date(tx.currentMadeAt),
2289
- isValid: tx.isValid
2298
+ isValid: tx.isValid,
2299
+ validationErrorMessage: tx.validationErrorMessage
2290
2300
  }));
2291
2301
  });
2292
2302
  }