strapi-plugin-bulk-updater 1.6.7 → 1.6.9
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/_chunks/{BulkUpdater-vPg_CrwY.mjs → BulkUpdater-4E6M5K8J.mjs} +84 -35
- package/dist/_chunks/BulkUpdater-4E6M5K8J.mjs.map +1 -0
- package/dist/_chunks/{BulkUpdater-Bs4BXQlU.js → BulkUpdater-CKDhgvZ6.js} +84 -35
- package/dist/_chunks/BulkUpdater-CKDhgvZ6.js.map +1 -0
- package/dist/_chunks/{SettingsPage-D2qYhqpF.mjs → SettingsPage-BX9sCRmw.mjs} +9 -5
- package/dist/_chunks/SettingsPage-BX9sCRmw.mjs.map +1 -0
- package/dist/_chunks/{SettingsPage-Dv2DRplw.js → SettingsPage-Crh2syU4.js} +7 -3
- package/dist/_chunks/SettingsPage-Crh2syU4.js.map +1 -0
- package/dist/_chunks/{ValidationRulesTab-BtOCWK8E.mjs → ValidationRulesTab-BqbENLpg.mjs} +144 -33
- package/dist/_chunks/ValidationRulesTab-BqbENLpg.mjs.map +1 -0
- package/dist/_chunks/{ValidationRulesTab-BTm3QXxM.js → ValidationRulesTab-R1vlW2wY.js} +139 -28
- package/dist/_chunks/ValidationRulesTab-R1vlW2wY.js.map +1 -0
- package/dist/admin/index.js +14 -4
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +14 -4
- package/dist/admin/index.mjs.map +1 -1
- package/dist/server/index.js +291 -32
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +291 -32
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/_chunks/BulkUpdater-Bs4BXQlU.js.map +0 -1
- package/dist/_chunks/BulkUpdater-vPg_CrwY.mjs.map +0 -1
- package/dist/_chunks/SettingsPage-D2qYhqpF.mjs.map +0 -1
- package/dist/_chunks/SettingsPage-Dv2DRplw.js.map +0 -1
- package/dist/_chunks/ValidationRulesTab-BTm3QXxM.js.map +0 -1
- package/dist/_chunks/ValidationRulesTab-BtOCWK8E.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import React__default, { useRef, useState, useEffect, useMemo } from "react";
|
|
|
3
3
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
4
4
|
import { Box, Flex, Typography, Button, Combobox, ComboboxOption, Badge, SingleSelect, SingleSelectOption, TextInput, Checkbox, Alert, Table, Thead, Tr, Th, Tbody, Td, Loader, Textarea, Field } from "@strapi/design-system";
|
|
5
5
|
import { ArrowClockwise, Download, Search, Cog, Upload, ChevronLeft, ChevronRight, Eye, Check, Play } from "@strapi/icons";
|
|
6
|
-
import { i as isAbortError, V as ValidationRulesTab } from "./ValidationRulesTab-
|
|
6
|
+
import { u as useBulkUpdaterRBAC, i as isAbortError, V as ValidationRulesTab } from "./ValidationRulesTab-BqbENLpg.mjs";
|
|
7
7
|
function parseCsvRows(csvText) {
|
|
8
8
|
if (!csvText) return [];
|
|
9
9
|
let text = csvText;
|
|
@@ -1332,6 +1332,7 @@ function buildCsvExportQueryParams(options) {
|
|
|
1332
1332
|
function CsvManagerTab() {
|
|
1333
1333
|
const { get, post } = useFetchClient();
|
|
1334
1334
|
const { toggleNotification } = useNotification();
|
|
1335
|
+
const permissions = useBulkUpdaterRBAC();
|
|
1335
1336
|
const fileInputRef = useRef(null);
|
|
1336
1337
|
const countAbortControllerRef = useRef(null);
|
|
1337
1338
|
const [collections, setCollections] = useState([]);
|
|
@@ -1436,14 +1437,17 @@ function CsvManagerTab() {
|
|
|
1436
1437
|
const [publishStrategy, setPublishStrategy] = useState("all");
|
|
1437
1438
|
const [unreviewedConsent, setUnreviewedConsent] = useState(true);
|
|
1438
1439
|
useEffect(() => {
|
|
1439
|
-
|
|
1440
|
-
|
|
1440
|
+
if (permissions.isLoading) return;
|
|
1441
|
+
if (permissions.canCsvExport || permissions.canCsvImport) {
|
|
1442
|
+
fetchInitialData();
|
|
1443
|
+
}
|
|
1444
|
+
}, [permissions.isLoading, permissions.canCsvExport, permissions.canCsvImport]);
|
|
1441
1445
|
const fetchInitialData = async () => {
|
|
1442
1446
|
try {
|
|
1443
1447
|
setLoadingCollections(true);
|
|
1444
1448
|
const [modelsRes, rulesRes, batchesRes] = await Promise.all([
|
|
1445
1449
|
get("/bulk-updater/models"),
|
|
1446
|
-
get("/bulk-updater/validation-rules"),
|
|
1450
|
+
get("/bulk-updater/validation-rules").catch(() => ({ data: { rules: [] } })),
|
|
1447
1451
|
get("/bulk-updater/pending-batches").catch(() => ({ data: { batches: [] } }))
|
|
1448
1452
|
]);
|
|
1449
1453
|
if (modelsRes.data?.executionWindow) {
|
|
@@ -2130,7 +2134,7 @@ function CsvManagerTab() {
|
|
|
2130
2134
|
variant: "tertiary",
|
|
2131
2135
|
startIcon: /* @__PURE__ */ jsx(Download, {}),
|
|
2132
2136
|
onClick: handleDownloadTemplate,
|
|
2133
|
-
disabled: !selectedUid || downloadingTemplate,
|
|
2137
|
+
disabled: !selectedUid || downloadingTemplate || !permissions.canCsvExport && !permissions.canCsvImport,
|
|
2134
2138
|
loading: downloadingTemplate,
|
|
2135
2139
|
children: "Download Sample CSV Template"
|
|
2136
2140
|
}
|
|
@@ -2543,7 +2547,7 @@ function CsvManagerTab() {
|
|
|
2543
2547
|
selectedCol && /* @__PURE__ */ jsx(Box, { marginTop: 3, children: /* @__PURE__ */ jsx(Box, { padding: 3, background: selectedDataAttrs.length > 0 ? "primary100" : "neutral100", hasRadius: true, children: /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: selectedDataAttrs.length > 0 ? "primary700" : "neutral700", children: selectedDataAttrs.length > 0 ? `Selective Export: Exports Document ID, Slug, and only the selected columns (${selectedDataAttrs.length} selected). Unselected fields and sibling nested properties remain completely protected during CSV import.` : "Full Collection Export: No specific columns selected. All fields will be exported with complete deep nesting preserved in JSON format." }) }) }),
|
|
2544
2548
|
false
|
|
2545
2549
|
] }),
|
|
2546
|
-
/* @__PURE__ */ jsxs(Box, { padding: 5, background: "neutral100", hasRadius: true, children: [
|
|
2550
|
+
permissions.canCsvImport && /* @__PURE__ */ jsxs(Box, { padding: 5, background: "neutral100", hasRadius: true, children: [
|
|
2547
2551
|
/* @__PURE__ */ jsx(Typography, { variant: "delta", tag: "h3", fontWeight: "bold", marginBottom: 2, children: "2. Import & Batch Override CSV" }),
|
|
2548
2552
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", marginBottom: 4, children: "Upload an updated CSV file (supports 10,000+ records via chunked streaming) to bulk update existing records or insert new records." }),
|
|
2549
2553
|
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", marginBottom: 4, wrap: "wrap", gap: 4, children: [
|
|
@@ -6371,6 +6375,7 @@ function renderCellContent(colDef, entry, col, selectedAttribute, searchAttribut
|
|
|
6371
6375
|
const BulkUpdater = () => {
|
|
6372
6376
|
const { get, post } = useFetchClient();
|
|
6373
6377
|
const { toggleNotification } = useNotification();
|
|
6378
|
+
const permissions = useBulkUpdaterRBAC();
|
|
6374
6379
|
const getInitialTab = () => {
|
|
6375
6380
|
try {
|
|
6376
6381
|
const params = new URLSearchParams(window.location.search);
|
|
@@ -6378,6 +6383,12 @@ const BulkUpdater = () => {
|
|
|
6378
6383
|
if (t === "audit" || t === "editor" || t === "rules" || t === "csv") return t;
|
|
6379
6384
|
} catch {
|
|
6380
6385
|
}
|
|
6386
|
+
if (!permissions.isLoading) {
|
|
6387
|
+
if (permissions.canWorkspaceView) return "editor";
|
|
6388
|
+
if (permissions.canCsvExport || permissions.canCsvImport) return "csv";
|
|
6389
|
+
if (permissions.canAuditView || permissions.canApprovalView) return "audit";
|
|
6390
|
+
if (permissions.canValidationView) return "rules";
|
|
6391
|
+
}
|
|
6381
6392
|
return "editor";
|
|
6382
6393
|
};
|
|
6383
6394
|
const [activeTab, setActiveTabState] = useState(getInitialTab);
|
|
@@ -6390,6 +6401,22 @@ const BulkUpdater = () => {
|
|
|
6390
6401
|
} catch {
|
|
6391
6402
|
}
|
|
6392
6403
|
};
|
|
6404
|
+
useEffect(() => {
|
|
6405
|
+
if (permissions.isLoading) return;
|
|
6406
|
+
const isTabAllowed = (tab) => {
|
|
6407
|
+
if (tab === "editor") return permissions.canWorkspaceView;
|
|
6408
|
+
if (tab === "audit") return permissions.canAuditView || permissions.canApprovalView;
|
|
6409
|
+
if (tab === "rules") return permissions.canValidationView;
|
|
6410
|
+
if (tab === "csv") return permissions.canCsvExport || permissions.canCsvImport;
|
|
6411
|
+
return false;
|
|
6412
|
+
};
|
|
6413
|
+
if (!isTabAllowed(activeTab)) {
|
|
6414
|
+
if (permissions.canWorkspaceView) setActiveTab("editor");
|
|
6415
|
+
else if (permissions.canCsvExport || permissions.canCsvImport) setActiveTab("csv");
|
|
6416
|
+
else if (permissions.canAuditView || permissions.canApprovalView) setActiveTab("audit");
|
|
6417
|
+
else if (permissions.canValidationView) setActiveTab("rules");
|
|
6418
|
+
}
|
|
6419
|
+
}, [permissions, activeTab]);
|
|
6393
6420
|
const [loading, setLoading] = useState(true);
|
|
6394
6421
|
const [updating, setUpdating] = useState(false);
|
|
6395
6422
|
const [attributes, setAttributes] = useState([]);
|
|
@@ -6799,7 +6826,8 @@ const BulkUpdater = () => {
|
|
|
6799
6826
|
}
|
|
6800
6827
|
}
|
|
6801
6828
|
} catch (err) {
|
|
6802
|
-
|
|
6829
|
+
const is403 = err?.response?.status === 403 || err?.status === 403;
|
|
6830
|
+
if (!isAbortError(err) && !is403) {
|
|
6803
6831
|
toggleNotification({
|
|
6804
6832
|
type: "danger",
|
|
6805
6833
|
message: err?.message || "Failed to fetch audit history."
|
|
@@ -6834,17 +6862,34 @@ const BulkUpdater = () => {
|
|
|
6834
6862
|
}
|
|
6835
6863
|
};
|
|
6836
6864
|
useEffect(() => {
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
useEffect(() => {
|
|
6843
|
-
if (activeTab === "audit") {
|
|
6865
|
+
if (permissions.isLoading) return;
|
|
6866
|
+
if (permissions.canWorkspaceView || permissions.canCsvExport || permissions.canCsvImport || permissions.canValidationView) {
|
|
6867
|
+
fetchModels();
|
|
6868
|
+
}
|
|
6869
|
+
if (permissions.canAuditView) {
|
|
6844
6870
|
fetchAuditHistory();
|
|
6871
|
+
}
|
|
6872
|
+
if (permissions.canApprovalView) {
|
|
6845
6873
|
fetchPendingBatches();
|
|
6846
6874
|
}
|
|
6847
|
-
|
|
6875
|
+
if (permissions.canValidationView) {
|
|
6876
|
+
fetchValidationRules();
|
|
6877
|
+
}
|
|
6878
|
+
}, [
|
|
6879
|
+
permissions.isLoading,
|
|
6880
|
+
permissions.canWorkspaceView,
|
|
6881
|
+
permissions.canCsvExport,
|
|
6882
|
+
permissions.canCsvImport,
|
|
6883
|
+
permissions.canValidationView,
|
|
6884
|
+
permissions.canAuditView,
|
|
6885
|
+
permissions.canApprovalView
|
|
6886
|
+
]);
|
|
6887
|
+
useEffect(() => {
|
|
6888
|
+
if (activeTab === "audit") {
|
|
6889
|
+
if (permissions.canAuditView) fetchAuditHistory();
|
|
6890
|
+
if (permissions.canApprovalView) fetchPendingBatches();
|
|
6891
|
+
}
|
|
6892
|
+
}, [activeTab, permissions.canAuditView, permissions.canApprovalView]);
|
|
6848
6893
|
const handleApplySearch = () => {
|
|
6849
6894
|
const nextApplied = {
|
|
6850
6895
|
searchAttribute,
|
|
@@ -8250,7 +8295,7 @@ const BulkUpdater = () => {
|
|
|
8250
8295
|
] }) }),
|
|
8251
8296
|
/* @__PURE__ */ jsxs(Flex, { gap: 2, marginBottom: 4, wrap: "wrap", justifyContent: "space-between", alignItems: "center", children: [
|
|
8252
8297
|
/* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
|
|
8253
|
-
/* @__PURE__ */ jsx(
|
|
8298
|
+
permissions.canWorkspaceView && /* @__PURE__ */ jsx(
|
|
8254
8299
|
Button,
|
|
8255
8300
|
{
|
|
8256
8301
|
variant: activeTab === "editor" ? "default" : "tertiary",
|
|
@@ -8259,7 +8304,7 @@ const BulkUpdater = () => {
|
|
|
8259
8304
|
children: "Bulk Updater Workspace"
|
|
8260
8305
|
}
|
|
8261
8306
|
),
|
|
8262
|
-
/* @__PURE__ */ jsxs(
|
|
8307
|
+
(permissions.canAuditView || permissions.canApprovalView) && /* @__PURE__ */ jsxs(
|
|
8263
8308
|
Button,
|
|
8264
8309
|
{
|
|
8265
8310
|
variant: activeTab === "audit" ? "default" : "tertiary",
|
|
@@ -8274,7 +8319,7 @@ const BulkUpdater = () => {
|
|
|
8274
8319
|
]
|
|
8275
8320
|
}
|
|
8276
8321
|
),
|
|
8277
|
-
/* @__PURE__ */ jsx(
|
|
8322
|
+
permissions.canValidationView && /* @__PURE__ */ jsx(
|
|
8278
8323
|
Button,
|
|
8279
8324
|
{
|
|
8280
8325
|
variant: activeTab === "rules" ? "default" : "tertiary",
|
|
@@ -8283,7 +8328,7 @@ const BulkUpdater = () => {
|
|
|
8283
8328
|
children: "Validation & Quota Rules"
|
|
8284
8329
|
}
|
|
8285
8330
|
),
|
|
8286
|
-
/* @__PURE__ */ jsx(
|
|
8331
|
+
(permissions.canCsvExport || permissions.canCsvImport) && /* @__PURE__ */ jsx(
|
|
8287
8332
|
Button,
|
|
8288
8333
|
{
|
|
8289
8334
|
variant: activeTab === "csv" ? "default" : "tertiary",
|
|
@@ -8302,7 +8347,8 @@ const BulkUpdater = () => {
|
|
|
8302
8347
|
}
|
|
8303
8348
|
) })
|
|
8304
8349
|
] }),
|
|
8305
|
-
|
|
8350
|
+
!permissions.canWorkspaceView && !permissions.canAuditView && !permissions.canApprovalView && !permissions.canValidationView && !permissions.canCsvExport && !permissions.canCsvImport && /* @__PURE__ */ jsx(Box, { padding: 8, background: "neutral0", shadow: "filterShadow", hasRadius: true, marginTop: 4, children: /* @__PURE__ */ jsx(Alert, { variant: "warning", title: "Access Denied", children: "You do not have permission to view any modules in Bulk Attribute Updater. Please contact your administrator to grant the required permissions in Settings → Roles." }) }),
|
|
8351
|
+
activeTab === "editor" && permissions.canAuditRollback && latestActiveBatch && !updateSummary && /* @__PURE__ */ jsx(
|
|
8306
8352
|
Box,
|
|
8307
8353
|
{
|
|
8308
8354
|
padding: 3,
|
|
@@ -9516,7 +9562,8 @@ const BulkUpdater = () => {
|
|
|
9516
9562
|
size: "L",
|
|
9517
9563
|
onClick: handleOpenPreviewModal,
|
|
9518
9564
|
loading: previewLoading,
|
|
9519
|
-
disabled: loading || !selectedAttribute || !selectedAttribute.trim() || (gridEditMode ? gridSerialized.targets.length === 0 || gridSerialized.hasValidationErrors : totalSelectedCount === 0),
|
|
9565
|
+
disabled: !permissions.canWorkspaceExecute || (loading || !selectedAttribute || !selectedAttribute.trim() || (gridEditMode ? gridSerialized.targets.length === 0 || gridSerialized.hasValidationErrors : totalSelectedCount === 0)),
|
|
9566
|
+
title: !permissions.canWorkspaceExecute ? "You do not have permission to execute bulk updates (action: plugin::bulk-updater.workspace.execute)." : void 0,
|
|
9520
9567
|
children: [
|
|
9521
9568
|
"Preview Changes (",
|
|
9522
9569
|
gridEditMode ? gridSerialized.targets.length : totalSelectedCount,
|
|
@@ -9532,7 +9579,8 @@ const BulkUpdater = () => {
|
|
|
9532
9579
|
size: "L",
|
|
9533
9580
|
onClick: handleOpenConfirmModal,
|
|
9534
9581
|
loading: updating,
|
|
9535
|
-
disabled: loading || !selectedAttribute || !selectedAttribute.trim() || (gridEditMode ? gridSerialized.targets.length === 0 || gridSerialized.hasValidationErrors : totalSelectedCount === 0),
|
|
9582
|
+
disabled: !permissions.canWorkspaceExecute || (loading || !selectedAttribute || !selectedAttribute.trim() || (gridEditMode ? gridSerialized.targets.length === 0 || gridSerialized.hasValidationErrors : totalSelectedCount === 0)),
|
|
9583
|
+
title: !permissions.canWorkspaceExecute ? "You do not have permission to execute bulk updates (action: plugin::bulk-updater.workspace.execute)." : void 0,
|
|
9536
9584
|
children: [
|
|
9537
9585
|
"Update Selected (",
|
|
9538
9586
|
gridEditMode ? gridSerialized.targets.length : totalSelectedCount,
|
|
@@ -9540,7 +9588,7 @@ const BulkUpdater = () => {
|
|
|
9540
9588
|
]
|
|
9541
9589
|
}
|
|
9542
9590
|
),
|
|
9543
|
-
/* @__PURE__ */ jsxs(
|
|
9591
|
+
permissions.canWorkspacePublish && /* @__PURE__ */ jsxs(
|
|
9544
9592
|
Button,
|
|
9545
9593
|
{
|
|
9546
9594
|
startIcon: /* @__PURE__ */ jsx(Check, {}),
|
|
@@ -9565,8 +9613,8 @@ const BulkUpdater = () => {
|
|
|
9565
9613
|
size: "L",
|
|
9566
9614
|
onClick: handleBulkExportSelected,
|
|
9567
9615
|
loading: bulkExporting,
|
|
9568
|
-
disabled: loading || totalSelectedCount === 0,
|
|
9569
|
-
title: "Export selected entries to Excel-compatible CSV with full nested component support",
|
|
9616
|
+
disabled: !permissions.canCsvExport || loading || totalSelectedCount === 0,
|
|
9617
|
+
title: !permissions.canCsvExport ? "You do not have permission to export CSV (action: plugin::bulk-updater.csv.export)." : "Export selected entries to Excel-compatible CSV with full nested component support",
|
|
9570
9618
|
children: [
|
|
9571
9619
|
"Export Selected (",
|
|
9572
9620
|
totalSelectedCount,
|
|
@@ -9582,7 +9630,8 @@ const BulkUpdater = () => {
|
|
|
9582
9630
|
/* @__PURE__ */ jsx(
|
|
9583
9631
|
Checkbox,
|
|
9584
9632
|
{
|
|
9585
|
-
checked: publishOnApproval,
|
|
9633
|
+
checked: permissions.canWorkspacePublish && publishOnApproval,
|
|
9634
|
+
disabled: !permissions.canWorkspacePublish,
|
|
9586
9635
|
onCheckedChange: (checked) => setPublishOnApproval(Boolean(checked)),
|
|
9587
9636
|
children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: "Auto-Publish after Update" })
|
|
9588
9637
|
}
|
|
@@ -9741,7 +9790,7 @@ const BulkUpdater = () => {
|
|
|
9741
9790
|
}
|
|
9742
9791
|
)
|
|
9743
9792
|
] }),
|
|
9744
|
-
/* @__PURE__ */ jsxs(Box, { marginBottom: 6, padding: 5, background: "neutral100", hasRadius: true, style: { border: "1px solid #e6e6ef" }, children: [
|
|
9793
|
+
permissions.canApprovalView && /* @__PURE__ */ jsxs(Box, { marginBottom: 6, padding: 5, background: "neutral100", hasRadius: true, style: { border: "1px solid #e6e6ef" }, children: [
|
|
9745
9794
|
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", marginBottom: 3, children: [
|
|
9746
9795
|
/* @__PURE__ */ jsxs(Box, { children: [
|
|
9747
9796
|
/* @__PURE__ */ jsxs(Flex, { gap: 2, alignItems: "center", children: [
|
|
@@ -9853,7 +9902,7 @@ const BulkUpdater = () => {
|
|
|
9853
9902
|
}
|
|
9854
9903
|
),
|
|
9855
9904
|
batch.status === "pending_approval" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9856
|
-
/* @__PURE__ */ jsx(
|
|
9905
|
+
permissions.canApprovalApprove && /* @__PURE__ */ jsx(
|
|
9857
9906
|
Button,
|
|
9858
9907
|
{
|
|
9859
9908
|
size: "S",
|
|
@@ -9863,7 +9912,7 @@ const BulkUpdater = () => {
|
|
|
9863
9912
|
children: "Approve & Execute"
|
|
9864
9913
|
}
|
|
9865
9914
|
),
|
|
9866
|
-
/* @__PURE__ */ jsx(
|
|
9915
|
+
permissions.canApprovalReject && /* @__PURE__ */ jsx(
|
|
9867
9916
|
Button,
|
|
9868
9917
|
{
|
|
9869
9918
|
size: "S",
|
|
@@ -9874,7 +9923,7 @@ const BulkUpdater = () => {
|
|
|
9874
9923
|
}
|
|
9875
9924
|
)
|
|
9876
9925
|
] }),
|
|
9877
|
-
batch.status === "queued_offpeak" && /* @__PURE__ */ jsx(
|
|
9926
|
+
batch.status === "queued_offpeak" && permissions.canApprovalApprove && /* @__PURE__ */ jsx(
|
|
9878
9927
|
Button,
|
|
9879
9928
|
{
|
|
9880
9929
|
size: "S",
|
|
@@ -9893,7 +9942,7 @@ const BulkUpdater = () => {
|
|
|
9893
9942
|
/* @__PURE__ */ jsx(Typography, { variant: "beta", textColor: "neutral600", children: "No batch operations recorded in the audit trail yet." }),
|
|
9894
9943
|
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral500", display: "block", marginTop: 2, children: "When you execute a bulk update in the editor, its transactional diff will be logged here." })
|
|
9895
9944
|
] }),
|
|
9896
|
-
sortedAuditHistory.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bulk-updater-table-container", style: { width: "100%", maxWidth: "100%", minWidth: 0, overflowX: "auto" }, children: /* @__PURE__ */ jsxs(Table, { colCount: 6, rowCount: sortedAuditHistory.length + 1, style: { width: "100%" }, children: [
|
|
9945
|
+
permissions.canAuditView && sortedAuditHistory.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bulk-updater-table-container", style: { width: "100%", maxWidth: "100%", minWidth: 0, overflowX: "auto" }, children: /* @__PURE__ */ jsxs(Table, { colCount: 6, rowCount: sortedAuditHistory.length + 1, style: { width: "100%" }, children: [
|
|
9897
9946
|
/* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
|
|
9898
9947
|
/* @__PURE__ */ jsx(Th, { style: { minWidth: 140 }, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Date & Time" }) }),
|
|
9899
9948
|
/* @__PURE__ */ jsx(Th, { style: { minWidth: 130 }, children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", children: "Performed By" }) }),
|
|
@@ -9987,7 +10036,7 @@ const BulkUpdater = () => {
|
|
|
9987
10036
|
] })
|
|
9988
10037
|
] }) : /* @__PURE__ */ jsx(Badge, { backgroundColor: "success100", textColor: "success700", children: "ACTIVE (APPLIED)" }) }),
|
|
9989
10038
|
/* @__PURE__ */ jsx(Td, { style: { minWidth: 160, textAlign: "right", whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsxs(Flex, { gap: 2, justifyContent: "flex-end", children: [
|
|
9990
|
-
/* @__PURE__ */ jsx(
|
|
10039
|
+
permissions.canAuditDetails && /* @__PURE__ */ jsx(
|
|
9991
10040
|
Button,
|
|
9992
10041
|
{
|
|
9993
10042
|
variant: "secondary",
|
|
@@ -10000,7 +10049,7 @@ const BulkUpdater = () => {
|
|
|
10000
10049
|
children: "Report"
|
|
10001
10050
|
}
|
|
10002
10051
|
),
|
|
10003
|
-
/* @__PURE__ */ jsx(
|
|
10052
|
+
permissions.canAuditDetails && /* @__PURE__ */ jsx(
|
|
10004
10053
|
Button,
|
|
10005
10054
|
{
|
|
10006
10055
|
variant: "tertiary",
|
|
@@ -10009,7 +10058,7 @@ const BulkUpdater = () => {
|
|
|
10009
10058
|
children: isExpanded ? "Hide Diffs" : "View Diffs"
|
|
10010
10059
|
}
|
|
10011
10060
|
),
|
|
10012
|
-
!rec.isRolledBack && (isLatestEligible ? /* @__PURE__ */ jsx(
|
|
10061
|
+
!rec.isRolledBack && permissions.canAuditRollback && (isLatestEligible ? /* @__PURE__ */ jsx(
|
|
10013
10062
|
Button,
|
|
10014
10063
|
{
|
|
10015
10064
|
variant: "danger",
|
|
@@ -10834,4 +10883,4 @@ export {
|
|
|
10834
10883
|
getSortOptionsForCollection,
|
|
10835
10884
|
parseDynamicZonePath
|
|
10836
10885
|
};
|
|
10837
|
-
//# sourceMappingURL=BulkUpdater-
|
|
10886
|
+
//# sourceMappingURL=BulkUpdater-4E6M5K8J.mjs.map
|