@xh/hoist 71.0.0-SNAPSHOT.1736281104503 β†’ 71.0.0-SNAPSHOT.1736297680526

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/CHANGELOG.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## v71.0.0-SNAPSHOT - unreleased
3
+ ## v71.0.0 - 2025-01-07
4
4
 
5
- ### πŸ’₯ Breaking Changes (upgrade 🟒 Medium - Hoist core update, adjust imports)
5
+ ### πŸ’₯ Breaking Changes (upgrade difficulty: 🟠 MEDIUM - Hoist core update, import adjustments)
6
6
 
7
- * Requires `hoist-core >= 27.0` with new APIs to support `ViewManager` and additional cluster
8
- synchronization monitor in admin client.
7
+ * Requires `hoist-core >= 27.0` with new APIs to support `ViewManager` and enhanced cluster state
8
+ monitoring in the Admin Console.
9
9
  * `ErrorMessage` is now cross-platform - update imports from `@xh/hoist/desktop/cmp/error`
10
10
  or `@xh/hoist/mobile/cmp/error` to `@xh/hoist/cmp/error`.
11
11
  * `Mask` is now cross-platform - update imports from `@xh/hoist/desktop/cmp/mask` or
@@ -19,8 +19,8 @@
19
19
 
20
20
  ### 🎁 New Features
21
21
 
22
- * Major improvements to ViewManager component, including:
23
- * A clearer, better organized view management dialog.
22
+ * Major improvements to the `ViewManager` component, including:
23
+ * A clearer, better organized management dialog.
24
24
  * Support for persisting a view's pending value, to avoid users losing changes when e.g. an app
25
25
  goes into idle mode and requires a page refresh to restore.
26
26
  * Improved handling of delete / update collisions.
@@ -33,10 +33,10 @@
33
33
  ID and access tokens in a single request and to use refresh tokens to maintain access without
34
34
  relying on third-party cookies.
35
35
  * Updated sorting on grouped grids to place ungrouped items at the bottom.
36
- * `DashCanvas` views can now be resized left and up in addition to right and down.
37
- * `FetchService.autoGenCorrelationIds` now supports a functional form for per-request behavior.
38
- * New `Objects` tab in admin client supports comparing state across the cluster, and flagging any
39
- persistent state inconsistencies.
36
+ * Improved `DashCanvas` views to support resizing from left/top edges in addition to right/bottom.
37
+ * Added functional form of `FetchService.autoGenCorrelationIds` for per-request behavior.
38
+ * Added a new `Clusterβ€ΊObjects` tab in Admin Console to support comparing state across the cluster
39
+ and alerting of any persistent state inconsistencies.
40
40
 
41
41
  ### 🐞 Bug Fixes
42
42
 
@@ -64,7 +64,7 @@
64
64
 
65
65
  * @azure/msal-browser `3.27 β†’ 3.28`
66
66
  * dompurify `3.1 β†’ 3.2`
67
- * react-grid-layout `1.4.3 β†’ 1.5.0`
67
+ * react-grid-layout `1.4 β†’ 1.5`
68
68
 
69
69
  ## v70.0.0 - 2024-11-15
70
70
 
@@ -16,8 +16,8 @@ export const clusterTab = hoistCmp.factory(() =>
16
16
  route: 'default.cluster',
17
17
  switcher: {orientation: 'left', testId: 'cluster-tab-switcher'},
18
18
  tabs: [
19
- {id: 'instances', icon: Icon.info(), content: instancesTab},
20
- {id: 'objects', icon: Icon.diff(), content: clusterObjectsPanel}
19
+ {id: 'instances', icon: Icon.server(), content: instancesTab},
20
+ {id: 'objects', icon: Icon.boxFull(), content: clusterObjectsPanel}
21
21
  ]
22
22
  }
23
23
  })
@@ -16,10 +16,3 @@
16
16
  .xh-cluster-objects-cell-success {
17
17
  background-color: var(--xh-intent-success-trans1) !important;
18
18
  }
19
-
20
- .xh-cluster-objects-result-count {
21
- align-items: center;
22
- .xh-icon {
23
- margin-right: 0.5em;
24
- }
25
- }
@@ -5,7 +5,7 @@
5
5
  * Copyright Β© 2025 Extremely Heavy Industries Inc.
6
6
  */
7
7
  import {grid} from '@xh/hoist/cmp/grid';
8
- import {div, filler, hframe, label} from '@xh/hoist/cmp/layout';
8
+ import {filler, fragment, hframe, label} from '@xh/hoist/cmp/layout';
9
9
  import {relativeTimestamp} from '@xh/hoist/cmp/relativetimestamp';
10
10
  import {storeFilterField} from '@xh/hoist/cmp/store';
11
11
  import {creates, hoistCmp} from '@xh/hoist/core';
@@ -49,49 +49,56 @@ const tbar = hoistCmp.factory<ClusterObjectsModel>(({model}) => {
49
49
  return toolbar(
50
50
  diffBar({omit: isSingleInstance}),
51
51
  filler(),
52
- 'As of',
52
+ label('As of'),
53
53
  relativeTimestamp({bind: 'startTimestamp'}),
54
- toolbarSep(),
55
- 'Took ',
56
- fmtNumber(model.runDurationMs, {label: 'ms'})
54
+ '-',
55
+ label('Took '),
56
+ fmtNumber(model.runDurationMs, {label: 'ms'}),
57
+ '-',
58
+ storeFilterField({
59
+ matchMode: 'any',
60
+ autoApply: false,
61
+ onFilterChange: f => (model.textFilter = f)
62
+ }),
63
+ exportButton()
57
64
  );
58
65
  });
59
66
 
60
67
  const diffBar = hoistCmp.factory<ClusterObjectsModel>(({model}) => {
61
68
  const {counts} = model;
62
- return [
63
- switchInput({
64
- label: 'Hide unchecked',
65
- bind: 'hideUnchecked'
66
- }),
67
- div({
68
- className: 'xh-cluster-objects-result-count',
69
+ return fragment(
70
+ Icon.diff(),
71
+ label('Cross-instance comparisons'),
72
+ fragment({
69
73
  omit: !counts.failed,
70
74
  items: [
71
75
  toolbarSep(),
72
- Icon.error({prefix: 'fas', className: 'xh-red'}),
73
- label(`${counts.failed} Failed`)
76
+ Icon.diff({prefix: 'fas', intent: 'danger'}),
77
+ label(`${counts.failed} diffs`)
74
78
  ]
75
79
  }),
76
- div({
77
- className: 'xh-cluster-objects-result-count',
80
+ fragment({
78
81
  omit: !counts.passed,
79
82
  items: [
80
83
  toolbarSep(),
81
- Icon.checkCircle({prefix: 'fas', className: 'xh-green'}),
82
- label(`${counts.passed} OK`)
84
+ Icon.checkCircle({prefix: 'fas', intent: 'success'}),
85
+ label(`${counts.passed} in-sync`)
83
86
  ]
84
87
  }),
85
- div({
86
- className: 'xh-cluster-objects-result-count',
87
- omit: !counts.unchecked || model.hideUnchecked,
88
+ fragment({
89
+ omit: !counts.unchecked,
88
90
  items: [
89
91
  toolbarSep(),
90
- Icon.disabled({prefix: 'fas', className: 'xh-gray'}),
91
- label(`${counts.unchecked} Unchecked`)
92
+ Icon.disabled({prefix: 'fas', className: 'xh-text-color-muted'}),
93
+ label(`${counts.unchecked} unchecked`)
92
94
  ]
95
+ }),
96
+ toolbarSep(),
97
+ switchInput({
98
+ label: 'w/Comparisons only',
99
+ bind: 'hideUnchecked'
93
100
  })
94
- ];
101
+ );
95
102
  });
96
103
 
97
104
  const bbar = hoistCmp.factory<ClusterObjectsModel>(({model}) => {
@@ -102,13 +109,6 @@ const bbar = hoistCmp.factory<ClusterObjectsModel>(({model}) => {
102
109
  intent: 'warning',
103
110
  tooltip: 'Clear the Hibernate caches using the native Hibernate API',
104
111
  onClick: () => model.clearAllHibernateCachesAsync()
105
- }),
106
- filler(),
107
- storeFilterField({
108
- matchMode: 'any',
109
- autoApply: false,
110
- onFilterChange: f => (model.textFilter = f)
111
- }),
112
- exportButton()
112
+ })
113
113
  );
114
114
  });
@@ -9,7 +9,7 @@ import {ColumnSpec, GridModel} from '@xh/hoist/cmp/grid';
9
9
  import {HoistModel, lookup, managed, PlainObject, XH} from '@xh/hoist/core';
10
10
  import {StoreRecord} from '@xh/hoist/data';
11
11
  import {fmtDateTimeSec, fmtJson} from '@xh/hoist/format';
12
- import {makeObservable, action, observable} from '@xh/hoist/mobx';
12
+ import {action, makeObservable, observable} from '@xh/hoist/mobx';
13
13
  import {DAYS} from '@xh/hoist/utils/datetime';
14
14
  import {
15
15
  cloneDeep,
@@ -18,11 +18,11 @@ export const detailPanel = hoistCmp.factory({
18
18
 
19
19
  render({model}) {
20
20
  const {instanceName, selectedAdminStats, objectName, objectType} = model;
21
- if (!objectName) return placeholder(Icon.grip(), 'Select an object');
21
+ if (!objectName) return placeholder(Icon.grip(), 'Select an object to view details...');
22
22
 
23
23
  return panel({
24
24
  title: `${objectType} - ${objectName}`,
25
- icon: Icon.diff(),
25
+ icon: getIcon(objectType),
26
26
  compactHeader: true,
27
27
  items: [
28
28
  grid({flex: 1}),
@@ -49,3 +49,14 @@ export const detailPanel = hoistCmp.factory({
49
49
  });
50
50
  }
51
51
  });
52
+
53
+ const getIcon = (objType: string) => {
54
+ switch (objType) {
55
+ case 'Service':
56
+ return Icon.gears();
57
+ case 'Topic':
58
+ return Icon.mail();
59
+ }
60
+
61
+ return Icon.database();
62
+ };
@@ -85,7 +85,7 @@ const tbar = hoistCmp.factory<MonitorTabModel>(({model}) => {
85
85
  className: getClassName(!failed),
86
86
  items: [
87
87
  toolbarSep(),
88
- Icon.error({prefix: 'fas', className: 'xh-red'}),
88
+ Icon.error({prefix: 'fas', intent: 'danger'}),
89
89
  label(`${failed} failed`)
90
90
  ]
91
91
  }),
@@ -93,7 +93,7 @@ const tbar = hoistCmp.factory<MonitorTabModel>(({model}) => {
93
93
  className: getClassName(!warned),
94
94
  items: [
95
95
  toolbarSep(),
96
- Icon.warning({prefix: 'fas', className: 'xh-orange'}),
96
+ Icon.warning({prefix: 'fas', intent: 'warning'}),
97
97
  label(`${warned} warned`)
98
98
  ]
99
99
  }),
@@ -101,7 +101,7 @@ const tbar = hoistCmp.factory<MonitorTabModel>(({model}) => {
101
101
  className: getClassName(!passed),
102
102
  items: [
103
103
  toolbarSep(),
104
- Icon.checkCircle({prefix: 'fas', className: 'xh-green'}),
104
+ Icon.checkCircle({prefix: 'fas', intent: 'success'}),
105
105
  label(`${passed} passed`)
106
106
  ]
107
107
  }),
@@ -109,7 +109,7 @@ const tbar = hoistCmp.factory<MonitorTabModel>(({model}) => {
109
109
  className: getClassName(!inactive),
110
110
  items: [
111
111
  toolbarSep(),
112
- Icon.disabled({prefix: 'fas', className: 'xh-gray'}),
112
+ Icon.disabled({prefix: 'fas', className: 'xh-text-color-muted'}),
113
113
  label(`${inactive} inactive`)
114
114
  ]
115
115
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1736281104503",
3
+ "version": "71.0.0-SNAPSHOT.1736297680526",
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",