dce-reactkit 3.2.2-beta.17 → 3.2.2-beta.19
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 +18 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/types/LogBuiltInMetadata.d.ts +1 -1
- package/dist/esm/index.js +18 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/types/LogBuiltInMetadata.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/LogReviewer.tsx +11 -7
- package/src/helpers/genRouteHandler.ts +1 -1
- package/src/helpers/logClientEvent.tsx +1 -1
- package/src/types/LogBuiltInMetadata.ts +5 -5
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -553,8 +553,10 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
553
553
|
(initContextFilterState[contextValue._] as { [k: string]: boolean })[LogBuiltInMetadata.Context.Uncategorized] = true;
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
|
-
// Add
|
|
557
|
-
|
|
556
|
+
// Add built-in contexts
|
|
557
|
+
Object.values(LogBuiltInMetadata.Context).forEach((context) => {
|
|
558
|
+
initContextFilterState[context] = true;
|
|
559
|
+
});
|
|
558
560
|
|
|
559
561
|
// Create initial tag filter state
|
|
560
562
|
const initTagFilterState: TagFilterState = {};
|
|
@@ -593,6 +595,10 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
593
595
|
Object.values(LogAction).forEach((action) => {
|
|
594
596
|
initActionErrorFilterState.action[action] = true;
|
|
595
597
|
});
|
|
598
|
+
// Add built-in targets
|
|
599
|
+
Object.values(LogBuiltInMetadata.Target).forEach((target) => {
|
|
600
|
+
initActionErrorFilterState.target[target] = true;
|
|
601
|
+
});
|
|
596
602
|
|
|
597
603
|
// Initial state
|
|
598
604
|
const initialState: State = {
|
|
@@ -971,11 +977,7 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
971
977
|
);
|
|
972
978
|
const item: PickableItem = {
|
|
973
979
|
id: context,
|
|
974
|
-
name: (
|
|
975
|
-
(context === LogBuiltInMetadata.Context.Uncategorized)
|
|
976
|
-
? 'Uncategorized'
|
|
977
|
-
: context
|
|
978
|
-
),
|
|
980
|
+
name: genHumanReadableName(context),
|
|
979
981
|
isGroup: true,
|
|
980
982
|
children,
|
|
981
983
|
};
|
|
@@ -989,6 +991,8 @@ const LogReviewer: React.FC<Props> = (props) => {
|
|
|
989
991
|
title="Context"
|
|
990
992
|
items={pickableItems}
|
|
991
993
|
onChanged={(updatedItems) => {
|
|
994
|
+
console.log('Items before:', pickableItems);
|
|
995
|
+
console.log('Updated Items:', updatedItems);
|
|
992
996
|
// Update our state
|
|
993
997
|
updatedItems.forEach((pickableItem) => {
|
|
994
998
|
if (pickableItem.isGroup) {
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
const LogBuiltInMetadata = {
|
|
6
6
|
// Contexts
|
|
7
7
|
Context: {
|
|
8
|
-
Uncategorized: '
|
|
9
|
-
ServerRenderedErrorPage: '
|
|
10
|
-
ServerEndpointError: '
|
|
11
|
-
ClientFatalError: '
|
|
8
|
+
Uncategorized: 'Uncategorized',
|
|
9
|
+
ServerRenderedErrorPage: 'ServerRenderedErrorPage',
|
|
10
|
+
ServerEndpointError: 'ServerEndpointError',
|
|
11
|
+
ClientFatalError: 'ClientFatalError',
|
|
12
12
|
},
|
|
13
13
|
// Targets
|
|
14
14
|
Target: {
|
|
15
|
-
|
|
15
|
+
NoTarget: 'NoTarget',
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
18
|
|