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/cjs/index.js
CHANGED
|
@@ -2822,8 +2822,12 @@ const LogReviewer = (props) => {
|
|
|
2822
2822
|
const subcontextValue = contextValue[subcontext];
|
|
2823
2823
|
initContextFilterState[contextValue._][subcontextValue] = true;
|
|
2824
2824
|
});
|
|
2825
|
+
// Add uncategorized subcontext
|
|
2826
|
+
initContextFilterState[contextValue._][LogBuiltInMetadata.Context.Uncategorized] = true;
|
|
2825
2827
|
}
|
|
2826
2828
|
});
|
|
2829
|
+
// Add uncategorized context
|
|
2830
|
+
initContextFilterState[LogBuiltInMetadata.Context.Uncategorized] = true;
|
|
2827
2831
|
// Create initial tag filter state
|
|
2828
2832
|
const initTagFilterState = {};
|
|
2829
2833
|
Object.values((_b = LogMetadata.Tag) !== null && _b !== void 0 ? _b : {}).forEach((tagValue) => {
|
|
@@ -3091,7 +3095,9 @@ const LogReviewer = (props) => {
|
|
|
3091
3095
|
}));
|
|
3092
3096
|
const item = {
|
|
3093
3097
|
id: context,
|
|
3094
|
-
name: context
|
|
3098
|
+
name: ((context === LogBuiltInMetadata.Context.Uncategorized)
|
|
3099
|
+
? 'Uncategorized'
|
|
3100
|
+
: context),
|
|
3095
3101
|
isGroup: true,
|
|
3096
3102
|
children,
|
|
3097
3103
|
};
|
|
@@ -3420,8 +3426,10 @@ const LogReviewer = (props) => {
|
|
|
3420
3426
|
}
|
|
3421
3427
|
// Subcontext doesn't match
|
|
3422
3428
|
if (
|
|
3423
|
-
// Log
|
|
3424
|
-
log.
|
|
3429
|
+
// Log context is not "uncategorized" (no point in further filters)
|
|
3430
|
+
log.context !== LogBuiltInMetadata.Context.Uncategorized
|
|
3431
|
+
// Log has a subcontext
|
|
3432
|
+
&& log.subcontext
|
|
3425
3433
|
// Context has subcontexts
|
|
3426
3434
|
&& (contextFilterState[log.context]
|
|
3427
3435
|
&& contextFilterState[log.context] !== false
|