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 CHANGED
@@ -519,14 +519,14 @@ const LOG_ROUTE_PATH = `${ROUTE_PATH_PREFIX}/log`;
519
519
  const LogBuiltInMetadata = {
520
520
  // Contexts
521
521
  Context: {
522
- Uncategorized: 'n/a',
523
- ServerRenderedErrorPage: '_server-rendered-error-page',
524
- ServerEndpointError: '_server-endpoint-error',
525
- ClientFatalError: '_client-fatal-error',
522
+ Uncategorized: 'Uncategorized',
523
+ ServerRenderedErrorPage: 'ServerRenderedErrorPage',
524
+ ServerEndpointError: 'ServerEndpointError',
525
+ ClientFatalError: 'ClientFatalError',
526
526
  },
527
527
  // Targets
528
528
  Target: {
529
- NoSpecificTarget: 'n/a',
529
+ NoTarget: 'NoTarget',
530
530
  },
531
531
  };
532
532
 
@@ -682,7 +682,7 @@ const logClientEvent = (opts) => __awaiter(void 0, void 0, void 0, function* ()
682
682
  ? opts.error.stack
683
683
  : undefined),
684
684
  target: (opts.action
685
- ? ((_g = opts.target) !== null && _g !== void 0 ? _g : LogBuiltInMetadata.Target.NoSpecificTarget)
685
+ ? ((_g = opts.target) !== null && _g !== void 0 ? _g : LogBuiltInMetadata.Target.NoTarget)
686
686
  : undefined),
687
687
  action: (opts.action
688
688
  ? opts.action
@@ -2826,8 +2826,10 @@ const LogReviewer = (props) => {
2826
2826
  initContextFilterState[contextValue._][LogBuiltInMetadata.Context.Uncategorized] = true;
2827
2827
  }
2828
2828
  });
2829
- // Add uncategorized context
2830
- initContextFilterState[LogBuiltInMetadata.Context.Uncategorized] = true;
2829
+ // Add built-in contexts
2830
+ Object.values(LogBuiltInMetadata.Context).forEach((context) => {
2831
+ initContextFilterState[context] = true;
2832
+ });
2831
2833
  // Create initial tag filter state
2832
2834
  const initTagFilterState = {};
2833
2835
  Object.values((_b = LogMetadata.Tag) !== null && _b !== void 0 ? _b : {}).forEach((tagValue) => {
@@ -2863,6 +2865,10 @@ const LogReviewer = (props) => {
2863
2865
  Object.values(LogAction$1).forEach((action) => {
2864
2866
  initActionErrorFilterState.action[action] = true;
2865
2867
  });
2868
+ // Add built-in targets
2869
+ Object.values(LogBuiltInMetadata.Target).forEach((target) => {
2870
+ initActionErrorFilterState.target[target] = true;
2871
+ });
2866
2872
  // Initial state
2867
2873
  const initialState = {
2868
2874
  loading: true,
@@ -3095,9 +3101,7 @@ const LogReviewer = (props) => {
3095
3101
  }));
3096
3102
  const item = {
3097
3103
  id: context,
3098
- name: ((context === LogBuiltInMetadata.Context.Uncategorized)
3099
- ? 'Uncategorized'
3100
- : context),
3104
+ name: genHumanReadableName(context),
3101
3105
  isGroup: true,
3102
3106
  children,
3103
3107
  };
@@ -3105,6 +3109,8 @@ const LogReviewer = (props) => {
3105
3109
  }));
3106
3110
  // Create filter UI
3107
3111
  filterDrawer = (React__default["default"].createElement(ItemPicker, { title: "Context", items: pickableItems, onChanged: (updatedItems) => {
3112
+ console.log('Items before:', pickableItems);
3113
+ console.log('Updated Items:', updatedItems);
3108
3114
  // Update our state
3109
3115
  updatedItems.forEach((pickableItem) => {
3110
3116
  if (pickableItem.isGroup) {
@@ -4864,7 +4870,7 @@ const genRouteHandler = (opts) => {
4864
4870
  }
4865
4871
  : {
4866
4872
  type: LogType$1.Action,
4867
- target: ((_m = opts.target) !== null && _m !== void 0 ? _m : LogBuiltInMetadata.Target.NoSpecificTarget),
4873
+ target: ((_m = opts.target) !== null && _m !== void 0 ? _m : LogBuiltInMetadata.Target.NoTarget),
4868
4874
  action: ((_o = opts.action) !== null && _o !== void 0 ? _o : LogAction$1.Unknown),
4869
4875
  });
4870
4876
  // Source-specific info