dce-reactkit 3.2.2-beta.16 → 3.2.2-beta.17
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 +11 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +13 -2
package/dist/esm/index.js
CHANGED
|
@@ -2814,8 +2814,12 @@ const LogReviewer = (props) => {
|
|
|
2814
2814
|
const subcontextValue = contextValue[subcontext];
|
|
2815
2815
|
initContextFilterState[contextValue._][subcontextValue] = true;
|
|
2816
2816
|
});
|
|
2817
|
+
// Add uncategorized subcontext
|
|
2818
|
+
initContextFilterState[contextValue._][LogBuiltInMetadata.Context.Uncategorized] = true;
|
|
2817
2819
|
}
|
|
2818
2820
|
});
|
|
2821
|
+
// Add uncategorized context
|
|
2822
|
+
initContextFilterState[LogBuiltInMetadata.Context.Uncategorized] = true;
|
|
2819
2823
|
// Create initial tag filter state
|
|
2820
2824
|
const initTagFilterState = {};
|
|
2821
2825
|
Object.values((_b = LogMetadata.Tag) !== null && _b !== void 0 ? _b : {}).forEach((tagValue) => {
|
|
@@ -3083,7 +3087,9 @@ const LogReviewer = (props) => {
|
|
|
3083
3087
|
}));
|
|
3084
3088
|
const item = {
|
|
3085
3089
|
id: context,
|
|
3086
|
-
name: context
|
|
3090
|
+
name: ((context === LogBuiltInMetadata.Context.Uncategorized)
|
|
3091
|
+
? 'Uncategorized'
|
|
3092
|
+
: context),
|
|
3087
3093
|
isGroup: true,
|
|
3088
3094
|
children,
|
|
3089
3095
|
};
|
|
@@ -3412,8 +3418,10 @@ const LogReviewer = (props) => {
|
|
|
3412
3418
|
}
|
|
3413
3419
|
// Subcontext doesn't match
|
|
3414
3420
|
if (
|
|
3415
|
-
// Log
|
|
3416
|
-
log.
|
|
3421
|
+
// Log context is not "uncategorized" (no point in further filters)
|
|
3422
|
+
log.context !== LogBuiltInMetadata.Context.Uncategorized
|
|
3423
|
+
// Log has a subcontext
|
|
3424
|
+
&& log.subcontext
|
|
3417
3425
|
// Context has subcontexts
|
|
3418
3426
|
&& (contextFilterState[log.context]
|
|
3419
3427
|
&& contextFilterState[log.context] !== false
|