@xh/hoist 72.0.0-SNAPSHOT.1737472364423 → 72.0.0-SNAPSHOT.1737484375112

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.
@@ -37,6 +37,16 @@ export const browser: ColumnSpec = {
37
37
  width: 100
38
38
  };
39
39
 
40
+ export const severity: ColumnSpec = {
41
+ field: {
42
+ name: 'severity',
43
+ type: 'string',
44
+ isDimension: true,
45
+ aggregator: 'UNIQUE'
46
+ },
47
+ width: 80
48
+ };
49
+
40
50
  export const category: ColumnSpec = {
41
51
  field: {
42
52
  name: 'category',
@@ -87,6 +87,7 @@ export class ActivityTrackingModel extends HoistModel {
87
87
  fields: [
88
88
  Col.browser.field,
89
89
  Col.category.field,
90
+ Col.severity.field,
90
91
  Col.correlationId.field,
91
92
  Col.data.field,
92
93
  {...(Col.dateCreated.field as FieldSpec), displayName: 'Timestamp'},
@@ -131,6 +132,7 @@ export class ActivityTrackingModel extends HoistModel {
131
132
  {field: 'userAgent'},
132
133
  {field: 'url', displayName: 'URL'},
133
134
  {field: 'instance'},
135
+ {field: 'severity'},
134
136
  {field: 'appVersion'},
135
137
  {field: 'appEnvironment', displayName: 'Environment'}
136
138
  ]
@@ -58,6 +58,7 @@ export class ActivityDetailModel extends HoistModel {
58
58
  {...Col.url},
59
59
  {...Col.correlationId},
60
60
  {...Col.instance, hidden},
61
+ {...Col.severity, hidden},
61
62
  {...Col.elapsed},
62
63
  {...Col.dateCreatedWithSec, displayName: 'Timestamp'}
63
64
  ]
@@ -2,6 +2,7 @@ import { ColumnSpec } from '@xh/hoist/cmp/grid/columns';
2
2
  export declare const appEnvironment: ColumnSpec;
3
3
  export declare const appVersion: ColumnSpec;
4
4
  export declare const browser: ColumnSpec;
5
+ export declare const severity: ColumnSpec;
5
6
  export declare const category: ColumnSpec;
6
7
  export declare const data: ColumnSpec;
7
8
  export declare const day: ColumnSpec;
@@ -153,6 +153,10 @@ export interface AppOptionSpec {
153
153
  /** Optional flag to omit displaying option. */
154
154
  omit?: Thunkable<boolean>;
155
155
  }
156
+ /**
157
+ * Severity levels for tracking. Default is 'INFO'.
158
+ */
159
+ export type TrackSeverity = 'DEBUG' | 'INFO' | 'WARN';
156
160
  /**
157
161
  * Options for tracking activity on the server via TrackService.
158
162
  */
@@ -174,11 +178,16 @@ export interface TrackOptions {
174
178
  */
175
179
  logData?: boolean | string[];
176
180
  /**
177
- * Flag to indicate relative importance of activity.
178
- * Default 'INFO'. Note, errors should be tracked via {@link XH.handleException}, which
181
+ * Flag to indicate relative importance of activity. Default 'INFO'.
182
+ *
183
+ * Allows conditional saving of messages depending on the currently active
184
+ * level configuration for the category/user. See HoistCore's 'TrackService' for
185
+ * more information.
186
+ *
187
+ * Note, errors should be tracked via {@link XH.handleException}, which
179
188
  * will post to the server for dedicated logging if requested.
180
189
  */
181
- severity?: string;
190
+ severity?: TrackSeverity;
182
191
  /**
183
192
  * Set to true to log this message only once during the current session. The category and
184
193
  * message text will be used as a compound key to identify repeated messages.
@@ -193,6 +193,11 @@ export interface AppOptionSpec {
193
193
  omit?: Thunkable<boolean>;
194
194
  }
195
195
 
196
+ /**
197
+ * Severity levels for tracking. Default is 'INFO'.
198
+ */
199
+ export type TrackSeverity = 'DEBUG' | 'INFO' | 'WARN';
200
+
196
201
  /**
197
202
  * Options for tracking activity on the server via TrackService.
198
203
  */
@@ -219,11 +224,16 @@ export interface TrackOptions {
219
224
  logData?: boolean | string[];
220
225
 
221
226
  /**
222
- * Flag to indicate relative importance of activity.
223
- * Default 'INFO'. Note, errors should be tracked via {@link XH.handleException}, which
227
+ * Flag to indicate relative importance of activity. Default 'INFO'.
228
+ *
229
+ * Allows conditional saving of messages depending on the currently active
230
+ * level configuration for the category/user. See HoistCore's 'TrackService' for
231
+ * more information.
232
+ *
233
+ * Note, errors should be tracked via {@link XH.handleException}, which
224
234
  * will post to the server for dedicated logging if requested.
225
235
  */
226
- severity?: string;
236
+ severity?: TrackSeverity;
227
237
 
228
238
  /**
229
239
  * Set to true to log this message only once during the current session. The category and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "72.0.0-SNAPSHOT.1737472364423",
3
+ "version": "72.0.0-SNAPSHOT.1737484375112",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
@@ -97,7 +97,7 @@
97
97
  "@ag-grid-community/react": "31.x",
98
98
  "@types/react": "18.x",
99
99
  "@types/react-dom": "18.x",
100
- "@xh/hoist-dev-utils": "9.x",
100
+ "@xh/hoist-dev-utils": "10.x",
101
101
  "csstype": "3.x",
102
102
  "eslint": "8.x",
103
103
  "eslint-config-prettier": "9.x",