@checkstack/dependency-frontend 0.2.15 → 0.2.17
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 +14 -0
- package/package.json +4 -4
- package/src/components/DependencyMapPage.tsx +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @checkstack/dependency-frontend
|
|
2
2
|
|
|
3
|
+
## 0.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @checkstack/dashboard-frontend@0.4.4
|
|
8
|
+
|
|
9
|
+
## 0.2.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a7b7081: Fixed a race condition in the Dependency Map where an auto-layout calculation could permanently override saved user locations when system data loaded faster than position data.
|
|
14
|
+
- @checkstack/dashboard-frontend@0.4.3
|
|
15
|
+
- @checkstack/catalog-common@1.4.1
|
|
16
|
+
|
|
3
17
|
## 0.2.15
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/dependency-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"checkstack": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"lint:code": "eslint . --max-warnings 0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@checkstack/catalog-common": "1.
|
|
15
|
+
"@checkstack/catalog-common": "1.4.0",
|
|
16
16
|
"@checkstack/common": "0.6.5",
|
|
17
|
-
"@checkstack/dashboard-frontend": "0.
|
|
17
|
+
"@checkstack/dashboard-frontend": "0.4.2",
|
|
18
18
|
"@checkstack/dependency-common": "0.2.1",
|
|
19
19
|
"@checkstack/frontend-api": "0.3.9",
|
|
20
20
|
"@checkstack/healthcheck-common": "0.11.0",
|
|
21
21
|
"@checkstack/signal-frontend": "0.0.15",
|
|
22
|
-
"@checkstack/ui": "1.
|
|
22
|
+
"@checkstack/ui": "1.5.0",
|
|
23
23
|
"@xyflow/react": "^12.10.2",
|
|
24
24
|
"lucide-react": "^0.344.0",
|
|
25
25
|
"react": "^18.2.0",
|
|
@@ -120,8 +120,11 @@ function DependencyMapContent() {
|
|
|
120
120
|
} = depClient.getAllDependencies.useQuery();
|
|
121
121
|
|
|
122
122
|
// Fetch saved positions
|
|
123
|
-
const {
|
|
124
|
-
|
|
123
|
+
const {
|
|
124
|
+
data: posData,
|
|
125
|
+
isLoading: posLoading,
|
|
126
|
+
refetch: refetchPositions,
|
|
127
|
+
} = depClient.getNodePositions.useQuery();
|
|
125
128
|
|
|
126
129
|
// Fetch warnings for all systems
|
|
127
130
|
const systemIds = useMemo(
|
|
@@ -239,7 +242,7 @@ function DependencyMapContent() {
|
|
|
239
242
|
// 3. Auto-layout fallback for brand-new systems with no position at all
|
|
240
243
|
|
|
241
244
|
useEffect(() => {
|
|
242
|
-
if (!systemsData?.systems) return;
|
|
245
|
+
if (!systemsData?.systems || !posData) return;
|
|
243
246
|
|
|
244
247
|
const savedPositions = posData?.positions ?? [];
|
|
245
248
|
const warnings = warningsData?.warnings ?? {};
|
|
@@ -390,7 +393,7 @@ function DependencyMapContent() {
|
|
|
390
393
|
};
|
|
391
394
|
}, []);
|
|
392
395
|
|
|
393
|
-
const loading = systemsLoading || depsLoading;
|
|
396
|
+
const loading = systemsLoading || depsLoading || posLoading;
|
|
394
397
|
|
|
395
398
|
if (loading) {
|
|
396
399
|
return (
|