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.
- package/.turbo/turbo-build.log +46 -46
- package/CHANGELOG.md +11 -0
- package/dist/inspector/{custom-element-SUVJ7CPN.js → custom-element-QESCMFY7.js} +13 -3
- package/dist/inspector/{custom-element-SUVJ7CPN.js.map → custom-element-QESCMFY7.js.map} +1 -1
- package/dist/inspector/index.js +12 -2
- package/dist/inspector/index.js.map +1 -1
- package/dist/inspector/register-custom-element.js +1 -1
- package/dist/inspector/viewer/history-view.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/inspector/tests/viewer/history-view.test.tsx +69 -9
- package/src/inspector/viewer/history-view.tsx +14 -5
package/dist/inspector/index.js
CHANGED
|
@@ -2238,7 +2238,16 @@ function HistoryView({
|
|
|
2238
2238
|
{
|
|
2239
2239
|
id: "action",
|
|
2240
2240
|
header: "Action",
|
|
2241
|
-
accessor: (row) =>
|
|
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
|
}
|