@xh/hoist 71.0.0-SNAPSHOT.1736278344317 → 71.0.0-SNAPSHOT.1736297061304

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.
@@ -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
  }),
@@ -8,3 +8,10 @@
8
8
  .xh-message .xh-form-field {
9
9
  margin: 0;
10
10
  }
11
+
12
+ .xh-message {
13
+ max-height: 90vh;
14
+ .bp5-dialog-body {
15
+ overflow-y: auto;
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1736278344317",
3
+ "version": "71.0.0-SNAPSHOT.1736297061304",
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",