dce-reactkit 3.2.2-beta.17 → 3.2.2-beta.18

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
@@ -2674,6 +2674,15 @@ const style = `
2674
2674
  }
2675
2675
  `;
2676
2676
  /*------------------------------------------------------------------------*/
2677
+ /* Constants */
2678
+ /*------------------------------------------------------------------------*/
2679
+ const builtInContextToName = {
2680
+ [LogBuiltInMetadata.Context.Uncategorized]: 'Uncategorized',
2681
+ [LogBuiltInMetadata.Context.ServerRenderedErrorPage]: 'Server Rendered Error Page',
2682
+ [LogBuiltInMetadata.Context.ServerEndpointError]: 'Server Endpoint Error',
2683
+ [LogBuiltInMetadata.Context.ClientFatalError]: 'Client Fatal Error',
2684
+ };
2685
+ /*------------------------------------------------------------------------*/
2677
2686
  /* Static Functions */
2678
2687
  /*------------------------------------------------------------------------*/
2679
2688
  /**
@@ -3068,7 +3077,7 @@ const LogReviewer = (props) => {
3068
3077
  // Create item picker items
3069
3078
  const pickableItems = (Object.keys((_d = LogMetadata.Context) !== null && _d !== void 0 ? _d : {})
3070
3079
  .map((context) => {
3071
- var _a;
3080
+ var _a, _b;
3072
3081
  const value = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
3073
3082
  if (typeof value === 'string') {
3074
3083
  // No subcategories
@@ -3095,9 +3104,7 @@ const LogReviewer = (props) => {
3095
3104
  }));
3096
3105
  const item = {
3097
3106
  id: context,
3098
- name: ((context === LogBuiltInMetadata.Context.Uncategorized)
3099
- ? 'Uncategorized'
3100
- : context),
3107
+ name: ((_b = builtInContextToName[context]) !== null && _b !== void 0 ? _b : genHumanReadableName(context)),
3101
3108
  isGroup: true,
3102
3109
  children,
3103
3110
  };
@@ -3105,6 +3112,8 @@ const LogReviewer = (props) => {
3105
3112
  }));
3106
3113
  // Create filter UI
3107
3114
  filterDrawer = (React__default["default"].createElement(ItemPicker, { title: "Context", items: pickableItems, onChanged: (updatedItems) => {
3115
+ console.log('Items before:', pickableItems);
3116
+ console.log('Updated Items:', updatedItems);
3108
3117
  // Update our state
3109
3118
  updatedItems.forEach((pickableItem) => {
3110
3119
  if (pickableItem.isGroup) {