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/esm/index.js CHANGED
@@ -2666,6 +2666,15 @@ const style = `
2666
2666
  }
2667
2667
  `;
2668
2668
  /*------------------------------------------------------------------------*/
2669
+ /* Constants */
2670
+ /*------------------------------------------------------------------------*/
2671
+ const builtInContextToName = {
2672
+ [LogBuiltInMetadata.Context.Uncategorized]: 'Uncategorized',
2673
+ [LogBuiltInMetadata.Context.ServerRenderedErrorPage]: 'Server Rendered Error Page',
2674
+ [LogBuiltInMetadata.Context.ServerEndpointError]: 'Server Endpoint Error',
2675
+ [LogBuiltInMetadata.Context.ClientFatalError]: 'Client Fatal Error',
2676
+ };
2677
+ /*------------------------------------------------------------------------*/
2669
2678
  /* Static Functions */
2670
2679
  /*------------------------------------------------------------------------*/
2671
2680
  /**
@@ -3060,7 +3069,7 @@ const LogReviewer = (props) => {
3060
3069
  // Create item picker items
3061
3070
  const pickableItems = (Object.keys((_d = LogMetadata.Context) !== null && _d !== void 0 ? _d : {})
3062
3071
  .map((context) => {
3063
- var _a;
3072
+ var _a, _b;
3064
3073
  const value = ((_a = LogMetadata.Context) !== null && _a !== void 0 ? _a : {})[context];
3065
3074
  if (typeof value === 'string') {
3066
3075
  // No subcategories
@@ -3087,9 +3096,7 @@ const LogReviewer = (props) => {
3087
3096
  }));
3088
3097
  const item = {
3089
3098
  id: context,
3090
- name: ((context === LogBuiltInMetadata.Context.Uncategorized)
3091
- ? 'Uncategorized'
3092
- : context),
3099
+ name: ((_b = builtInContextToName[context]) !== null && _b !== void 0 ? _b : genHumanReadableName(context)),
3093
3100
  isGroup: true,
3094
3101
  children,
3095
3102
  };
@@ -3097,6 +3104,8 @@ const LogReviewer = (props) => {
3097
3104
  }));
3098
3105
  // Create filter UI
3099
3106
  filterDrawer = (React.createElement(ItemPicker, { title: "Context", items: pickableItems, onChanged: (updatedItems) => {
3107
+ console.log('Items before:', pickableItems);
3108
+ console.log('Updated Items:', updatedItems);
3100
3109
  // Update our state
3101
3110
  updatedItems.forEach((pickableItem) => {
3102
3111
  if (pickableItem.isGroup) {