@optifye/dashboard-core 6.11.29 → 6.11.30
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 +21 -10
- package/dist/index.mjs +21 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40682,7 +40682,18 @@ var FileManagerFilters = ({
|
|
|
40682
40682
|
React142.useEffect(() => {
|
|
40683
40683
|
clipMetadataRef.current = clipMetadata;
|
|
40684
40684
|
}, [clipMetadata]);
|
|
40685
|
-
const
|
|
40685
|
+
const isCategoryExternallyManaged = React142.useCallback((categoryId) => {
|
|
40686
|
+
if (!categoryId) {
|
|
40687
|
+
return false;
|
|
40688
|
+
}
|
|
40689
|
+
if (prefetchedClipMetadata && Array.isArray(prefetchedClipMetadata[categoryId]) && prefetchedClipMetadata[categoryId].length > 0) {
|
|
40690
|
+
return true;
|
|
40691
|
+
}
|
|
40692
|
+
if (activeCategoryLoading !== void 0 && categoryId === activeFilter) {
|
|
40693
|
+
return true;
|
|
40694
|
+
}
|
|
40695
|
+
return false;
|
|
40696
|
+
}, [prefetchedClipMetadata, activeCategoryLoading, activeFilter]);
|
|
40686
40697
|
React142.useEffect(() => {
|
|
40687
40698
|
if (!prefetchedClipMetadata) {
|
|
40688
40699
|
return;
|
|
@@ -41215,11 +41226,11 @@ var FileManagerFilters = ({
|
|
|
41215
41226
|
return newExpanded;
|
|
41216
41227
|
});
|
|
41217
41228
|
const category = categories.find((cat) => cat.id === activeFilter);
|
|
41218
|
-
if (category && !
|
|
41229
|
+
if (category && !isCategoryExternallyManaged(activeFilter) && !clipMetadataRef.current[activeFilter]) {
|
|
41219
41230
|
fetchClipMetadata(activeFilter, 1);
|
|
41220
41231
|
}
|
|
41221
41232
|
}
|
|
41222
|
-
}, [activeFilter,
|
|
41233
|
+
}, [activeFilter, isCategoryExternallyManaged]);
|
|
41223
41234
|
React142.useEffect(() => {
|
|
41224
41235
|
const handleEscape = (e) => {
|
|
41225
41236
|
if (e.key === "Escape") {
|
|
@@ -41490,14 +41501,14 @@ var FileManagerFilters = ({
|
|
|
41490
41501
|
} else {
|
|
41491
41502
|
newExpanded.add(nodeId);
|
|
41492
41503
|
const category = categories.find((cat) => cat.id === nodeId);
|
|
41493
|
-
if (category && !clipMetadata[nodeId] && !(
|
|
41504
|
+
if (category && !clipMetadata[nodeId] && !isCategoryExternallyManaged(nodeId)) {
|
|
41494
41505
|
console.log(`[FileManager] Fetching clips for expanded category: ${nodeId}`);
|
|
41495
41506
|
fetchClipMetadata(nodeId, 1);
|
|
41496
41507
|
}
|
|
41497
|
-
if (!(
|
|
41508
|
+
if (!isCategoryExternallyManaged(nodeId) && showPercentileCycleFilters && nodeId === "fast-cycles" && (percentileClips["fast-cycles"] || []).length === 0) {
|
|
41498
41509
|
fetchPercentileClips("fast-cycles");
|
|
41499
41510
|
}
|
|
41500
|
-
if (!(
|
|
41511
|
+
if (!isCategoryExternallyManaged(nodeId) && showPercentileCycleFilters && nodeId === "slow-cycles" && (percentileClips["slow-cycles"] || []).length === 0) {
|
|
41501
41512
|
fetchPercentileClips("slow-cycles");
|
|
41502
41513
|
}
|
|
41503
41514
|
}
|
|
@@ -41511,14 +41522,14 @@ var FileManagerFilters = ({
|
|
|
41511
41522
|
} else {
|
|
41512
41523
|
newExpanded.add(node.id);
|
|
41513
41524
|
const category = categories.find((cat) => cat.id === node.id);
|
|
41514
|
-
if (category && !clipMetadata[node.id] && !
|
|
41525
|
+
if (category && !clipMetadata[node.id] && !isCategoryExternallyManaged(node.id)) {
|
|
41515
41526
|
console.log(`[FileManager] Fetching clips for expanded category: ${node.id}`);
|
|
41516
41527
|
fetchClipMetadata(node.id, 1);
|
|
41517
41528
|
}
|
|
41518
|
-
if (!
|
|
41529
|
+
if (!isCategoryExternallyManaged(node.id) && showPercentileCycleFilters && node.id === "fast-cycles" && (percentileClips["fast-cycles"] || []).length === 0) {
|
|
41519
41530
|
fetchPercentileClips("fast-cycles");
|
|
41520
41531
|
}
|
|
41521
|
-
if (!
|
|
41532
|
+
if (!isCategoryExternallyManaged(node.id) && showPercentileCycleFilters && node.id === "slow-cycles" && (percentileClips["slow-cycles"] || []).length === 0) {
|
|
41522
41533
|
fetchPercentileClips("slow-cycles");
|
|
41523
41534
|
}
|
|
41524
41535
|
}
|
|
@@ -43148,7 +43159,7 @@ var BottlenecksContent = ({
|
|
|
43148
43159
|
metadataClips = categoryData.clips.map((clip, index) => ({
|
|
43149
43160
|
id: clip.id,
|
|
43150
43161
|
clipId: clip.id,
|
|
43151
|
-
clip_timestamp: clip.
|
|
43162
|
+
clip_timestamp: clip.creation_timestamp || clip.timestamp,
|
|
43152
43163
|
description: clip.description,
|
|
43153
43164
|
severity: clip.severity,
|
|
43154
43165
|
category: categoryId,
|
package/dist/index.mjs
CHANGED
|
@@ -40653,7 +40653,18 @@ var FileManagerFilters = ({
|
|
|
40653
40653
|
useEffect(() => {
|
|
40654
40654
|
clipMetadataRef.current = clipMetadata;
|
|
40655
40655
|
}, [clipMetadata]);
|
|
40656
|
-
const
|
|
40656
|
+
const isCategoryExternallyManaged = useCallback((categoryId) => {
|
|
40657
|
+
if (!categoryId) {
|
|
40658
|
+
return false;
|
|
40659
|
+
}
|
|
40660
|
+
if (prefetchedClipMetadata && Array.isArray(prefetchedClipMetadata[categoryId]) && prefetchedClipMetadata[categoryId].length > 0) {
|
|
40661
|
+
return true;
|
|
40662
|
+
}
|
|
40663
|
+
if (activeCategoryLoading !== void 0 && categoryId === activeFilter) {
|
|
40664
|
+
return true;
|
|
40665
|
+
}
|
|
40666
|
+
return false;
|
|
40667
|
+
}, [prefetchedClipMetadata, activeCategoryLoading, activeFilter]);
|
|
40657
40668
|
useEffect(() => {
|
|
40658
40669
|
if (!prefetchedClipMetadata) {
|
|
40659
40670
|
return;
|
|
@@ -41186,11 +41197,11 @@ var FileManagerFilters = ({
|
|
|
41186
41197
|
return newExpanded;
|
|
41187
41198
|
});
|
|
41188
41199
|
const category = categories.find((cat) => cat.id === activeFilter);
|
|
41189
|
-
if (category && !
|
|
41200
|
+
if (category && !isCategoryExternallyManaged(activeFilter) && !clipMetadataRef.current[activeFilter]) {
|
|
41190
41201
|
fetchClipMetadata(activeFilter, 1);
|
|
41191
41202
|
}
|
|
41192
41203
|
}
|
|
41193
|
-
}, [activeFilter,
|
|
41204
|
+
}, [activeFilter, isCategoryExternallyManaged]);
|
|
41194
41205
|
useEffect(() => {
|
|
41195
41206
|
const handleEscape = (e) => {
|
|
41196
41207
|
if (e.key === "Escape") {
|
|
@@ -41461,14 +41472,14 @@ var FileManagerFilters = ({
|
|
|
41461
41472
|
} else {
|
|
41462
41473
|
newExpanded.add(nodeId);
|
|
41463
41474
|
const category = categories.find((cat) => cat.id === nodeId);
|
|
41464
|
-
if (category && !clipMetadata[nodeId] && !(
|
|
41475
|
+
if (category && !clipMetadata[nodeId] && !isCategoryExternallyManaged(nodeId)) {
|
|
41465
41476
|
console.log(`[FileManager] Fetching clips for expanded category: ${nodeId}`);
|
|
41466
41477
|
fetchClipMetadata(nodeId, 1);
|
|
41467
41478
|
}
|
|
41468
|
-
if (!(
|
|
41479
|
+
if (!isCategoryExternallyManaged(nodeId) && showPercentileCycleFilters && nodeId === "fast-cycles" && (percentileClips["fast-cycles"] || []).length === 0) {
|
|
41469
41480
|
fetchPercentileClips("fast-cycles");
|
|
41470
41481
|
}
|
|
41471
|
-
if (!(
|
|
41482
|
+
if (!isCategoryExternallyManaged(nodeId) && showPercentileCycleFilters && nodeId === "slow-cycles" && (percentileClips["slow-cycles"] || []).length === 0) {
|
|
41472
41483
|
fetchPercentileClips("slow-cycles");
|
|
41473
41484
|
}
|
|
41474
41485
|
}
|
|
@@ -41482,14 +41493,14 @@ var FileManagerFilters = ({
|
|
|
41482
41493
|
} else {
|
|
41483
41494
|
newExpanded.add(node.id);
|
|
41484
41495
|
const category = categories.find((cat) => cat.id === node.id);
|
|
41485
|
-
if (category && !clipMetadata[node.id] && !
|
|
41496
|
+
if (category && !clipMetadata[node.id] && !isCategoryExternallyManaged(node.id)) {
|
|
41486
41497
|
console.log(`[FileManager] Fetching clips for expanded category: ${node.id}`);
|
|
41487
41498
|
fetchClipMetadata(node.id, 1);
|
|
41488
41499
|
}
|
|
41489
|
-
if (!
|
|
41500
|
+
if (!isCategoryExternallyManaged(node.id) && showPercentileCycleFilters && node.id === "fast-cycles" && (percentileClips["fast-cycles"] || []).length === 0) {
|
|
41490
41501
|
fetchPercentileClips("fast-cycles");
|
|
41491
41502
|
}
|
|
41492
|
-
if (!
|
|
41503
|
+
if (!isCategoryExternallyManaged(node.id) && showPercentileCycleFilters && node.id === "slow-cycles" && (percentileClips["slow-cycles"] || []).length === 0) {
|
|
41493
41504
|
fetchPercentileClips("slow-cycles");
|
|
41494
41505
|
}
|
|
41495
41506
|
}
|
|
@@ -43119,7 +43130,7 @@ var BottlenecksContent = ({
|
|
|
43119
43130
|
metadataClips = categoryData.clips.map((clip, index) => ({
|
|
43120
43131
|
id: clip.id,
|
|
43121
43132
|
clipId: clip.id,
|
|
43122
|
-
clip_timestamp: clip.
|
|
43133
|
+
clip_timestamp: clip.creation_timestamp || clip.timestamp,
|
|
43123
43134
|
description: clip.description,
|
|
43124
43135
|
severity: clip.severity,
|
|
43125
43136
|
category: categoryId,
|