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.
@@ -10,7 +10,7 @@ declare const LogBuiltInMetadata: {
10
10
  ClientFatalError: string;
11
11
  };
12
12
  Target: {
13
- NoSpecificTarget: string;
13
+ NoTarget: string;
14
14
  };
15
15
  };
16
16
  export default LogBuiltInMetadata;
package/dist/esm/index.js CHANGED
@@ -511,14 +511,14 @@ const LOG_ROUTE_PATH = `${ROUTE_PATH_PREFIX}/log`;
511
511
  const LogBuiltInMetadata = {
512
512
  // Contexts
513
513
  Context: {
514
- Uncategorized: 'n/a',
515
- ServerRenderedErrorPage: '_server-rendered-error-page',
516
- ServerEndpointError: '_server-endpoint-error',
517
- ClientFatalError: '_client-fatal-error',
514
+ Uncategorized: 'Uncategorized',
515
+ ServerRenderedErrorPage: 'ServerRenderedErrorPage',
516
+ ServerEndpointError: 'ServerEndpointError',
517
+ ClientFatalError: 'ClientFatalError',
518
518
  },
519
519
  // Targets
520
520
  Target: {
521
- NoSpecificTarget: 'n/a',
521
+ NoTarget: 'NoTarget',
522
522
  },
523
523
  };
524
524
 
@@ -674,7 +674,7 @@ const logClientEvent = (opts) => __awaiter(void 0, void 0, void 0, function* ()
674
674
  ? opts.error.stack
675
675
  : undefined),
676
676
  target: (opts.action
677
- ? ((_g = opts.target) !== null && _g !== void 0 ? _g : LogBuiltInMetadata.Target.NoSpecificTarget)
677
+ ? ((_g = opts.target) !== null && _g !== void 0 ? _g : LogBuiltInMetadata.Target.NoTarget)
678
678
  : undefined),
679
679
  action: (opts.action
680
680
  ? opts.action
@@ -2818,8 +2818,10 @@ const LogReviewer = (props) => {
2818
2818
  initContextFilterState[contextValue._][LogBuiltInMetadata.Context.Uncategorized] = true;
2819
2819
  }
2820
2820
  });
2821
- // Add uncategorized context
2822
- initContextFilterState[LogBuiltInMetadata.Context.Uncategorized] = true;
2821
+ // Add built-in contexts
2822
+ Object.values(LogBuiltInMetadata.Context).forEach((context) => {
2823
+ initContextFilterState[context] = true;
2824
+ });
2823
2825
  // Create initial tag filter state
2824
2826
  const initTagFilterState = {};
2825
2827
  Object.values((_b = LogMetadata.Tag) !== null && _b !== void 0 ? _b : {}).forEach((tagValue) => {
@@ -2855,6 +2857,10 @@ const LogReviewer = (props) => {
2855
2857
  Object.values(LogAction$1).forEach((action) => {
2856
2858
  initActionErrorFilterState.action[action] = true;
2857
2859
  });
2860
+ // Add built-in targets
2861
+ Object.values(LogBuiltInMetadata.Target).forEach((target) => {
2862
+ initActionErrorFilterState.target[target] = true;
2863
+ });
2858
2864
  // Initial state
2859
2865
  const initialState = {
2860
2866
  loading: true,
@@ -3087,9 +3093,7 @@ const LogReviewer = (props) => {
3087
3093
  }));
3088
3094
  const item = {
3089
3095
  id: context,
3090
- name: ((context === LogBuiltInMetadata.Context.Uncategorized)
3091
- ? 'Uncategorized'
3092
- : context),
3096
+ name: genHumanReadableName(context),
3093
3097
  isGroup: true,
3094
3098
  children,
3095
3099
  };
@@ -3097,6 +3101,8 @@ const LogReviewer = (props) => {
3097
3101
  }));
3098
3102
  // Create filter UI
3099
3103
  filterDrawer = (React.createElement(ItemPicker, { title: "Context", items: pickableItems, onChanged: (updatedItems) => {
3104
+ console.log('Items before:', pickableItems);
3105
+ console.log('Updated Items:', updatedItems);
3100
3106
  // Update our state
3101
3107
  updatedItems.forEach((pickableItem) => {
3102
3108
  if (pickableItem.isGroup) {
@@ -4856,7 +4862,7 @@ const genRouteHandler = (opts) => {
4856
4862
  }
4857
4863
  : {
4858
4864
  type: LogType$1.Action,
4859
- target: ((_m = opts.target) !== null && _m !== void 0 ? _m : LogBuiltInMetadata.Target.NoSpecificTarget),
4865
+ target: ((_m = opts.target) !== null && _m !== void 0 ? _m : LogBuiltInMetadata.Target.NoTarget),
4860
4866
  action: ((_o = opts.action) !== null && _o !== void 0 ? _o : LogAction$1.Unknown),
4861
4867
  });
4862
4868
  // Source-specific info