dce-reactkit 3.2.2-beta.56 → 3.2.2-beta.58
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/cjs/index.js +3 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -18
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +3 -22
package/package.json
CHANGED
|
@@ -658,25 +658,9 @@ const reducer = (state: State, action: Action): State => {
|
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
660
|
case ActionType.UpdateTagFilterState: {
|
|
661
|
-
const { tagFilterState } = action;
|
|
662
|
-
|
|
663
|
-
// Select all if every tag is deselected
|
|
664
|
-
const numTagsSelected = (
|
|
665
|
-
Object.values(tagFilterState)
|
|
666
|
-
.filter((isSelected) => {
|
|
667
|
-
return isSelected;
|
|
668
|
-
})
|
|
669
|
-
.length
|
|
670
|
-
);
|
|
671
|
-
if (numTagsSelected === 0) {
|
|
672
|
-
Object.keys(tagFilterState).forEach((tag) => {
|
|
673
|
-
tagFilterState[tag] = true;
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
|
|
677
661
|
return {
|
|
678
662
|
...state,
|
|
679
|
-
tagFilterState,
|
|
663
|
+
tagFilterState: action.tagFilterState,
|
|
680
664
|
};
|
|
681
665
|
}
|
|
682
666
|
case ActionType.UpdateActionErrorFilterState: {
|
|
@@ -722,7 +706,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
722
706
|
].forEach((partialContextMap) => {
|
|
723
707
|
Object.keys(partialContextMap).forEach((context) => {
|
|
724
708
|
// Add context
|
|
725
|
-
contextMap[context] = context;
|
|
709
|
+
contextMap[context] = partialContextMap[context];
|
|
726
710
|
|
|
727
711
|
// If context has children, add an "uncategorized" subcontext
|
|
728
712
|
if (typeof contextMap[context] !== 'string') {
|
|
@@ -740,7 +724,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
740
724
|
LogBuiltInMetadata.Target,
|
|
741
725
|
].forEach((partialTargetMap) => {
|
|
742
726
|
Object.keys(partialTargetMap).forEach((target) => {
|
|
743
|
-
targetMap[target] = target;
|
|
727
|
+
targetMap[target] = partialTargetMap[target];
|
|
744
728
|
});
|
|
745
729
|
});
|
|
746
730
|
|
|
@@ -790,7 +774,6 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
790
774
|
Object.keys(LogMetadata.Tag ?? {}).forEach((tag) => {
|
|
791
775
|
initTagFilterState[tag] = false;
|
|
792
776
|
});
|
|
793
|
-
console.log(contextMap, initContextFilterState, initTagFilterState);
|
|
794
777
|
|
|
795
778
|
// Create advanced filter state
|
|
796
779
|
const initAdvancedFilterState: AdvancedFilterState = {
|
|
@@ -1320,7 +1303,6 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1320
1303
|
checked={tagFilterState[tag]}
|
|
1321
1304
|
onChanged={(checked) => {
|
|
1322
1305
|
tagFilterState[tag] = checked;
|
|
1323
|
-
console.log(tagFilterState);
|
|
1324
1306
|
dispatch({
|
|
1325
1307
|
type: ActionType.UpdateTagFilterState,
|
|
1326
1308
|
tagFilterState,
|
|
@@ -1912,7 +1894,6 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
1912
1894
|
})
|
|
1913
1895
|
)
|
|
1914
1896
|
) {
|
|
1915
|
-
console.log(log.context, contextFilterState);
|
|
1916
1897
|
return;
|
|
1917
1898
|
}
|
|
1918
1899
|
|