@checkstack/satellite-frontend 0.3.4 → 0.3.6
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 +32 -0
- package/package.json +10 -10
- package/src/pages/SatelliteListPage.tsx +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @checkstack/satellite-frontend
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @checkstack/satellite-common@0.5.3
|
|
8
|
+
|
|
9
|
+
## 0.3.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f23f3c9: Standardise the empty / loading / error story on key list pages using
|
|
14
|
+
the shared `ListEmptyState`, `QueryErrorState`, and `Skeleton`
|
|
15
|
+
primitives from `@checkstack/ui`. Each affected page now branches
|
|
16
|
+
through the same `isLoading -> isError -> empty -> data` ladder, so
|
|
17
|
+
failed queries surface a retry-able inline error instead of silently
|
|
18
|
+
rendering an empty table, and loading states match the final layout
|
|
19
|
+
rather than flashing a generic spinner. No layout, business logic, or
|
|
20
|
+
query input shapes changed.
|
|
21
|
+
- Updated dependencies [f23f3c9]
|
|
22
|
+
- Updated dependencies [f23f3c9]
|
|
23
|
+
- Updated dependencies [f23f3c9]
|
|
24
|
+
- Updated dependencies [f23f3c9]
|
|
25
|
+
- Updated dependencies [f23f3c9]
|
|
26
|
+
- @checkstack/common@0.11.0
|
|
27
|
+
- @checkstack/frontend-api@0.5.2
|
|
28
|
+
- @checkstack/gitops-frontend@0.4.5
|
|
29
|
+
- @checkstack/ui@1.10.0
|
|
30
|
+
- @checkstack/gitops-common@0.4.1
|
|
31
|
+
- @checkstack/satellite-common@0.5.2
|
|
32
|
+
- @checkstack/tips-frontend@0.2.5
|
|
33
|
+
- @checkstack/signal-frontend@0.1.4
|
|
34
|
+
|
|
3
35
|
## 0.3.4
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/satellite-frontend",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
"lint:code": "eslint . --max-warnings 0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@checkstack/common": "0.
|
|
17
|
-
"@checkstack/frontend-api": "0.5.
|
|
18
|
-
"@checkstack/satellite-common": "0.5.
|
|
19
|
-
"@checkstack/signal-frontend": "0.1.
|
|
20
|
-
"@checkstack/gitops-common": "0.4.
|
|
21
|
-
"@checkstack/gitops-frontend": "0.4.
|
|
22
|
-
"@checkstack/tips-frontend": "0.2.
|
|
23
|
-
"@checkstack/ui": "1.
|
|
16
|
+
"@checkstack/common": "0.11.0",
|
|
17
|
+
"@checkstack/frontend-api": "0.5.2",
|
|
18
|
+
"@checkstack/satellite-common": "0.5.2",
|
|
19
|
+
"@checkstack/signal-frontend": "0.1.4",
|
|
20
|
+
"@checkstack/gitops-common": "0.4.1",
|
|
21
|
+
"@checkstack/gitops-frontend": "0.4.5",
|
|
22
|
+
"@checkstack/tips-frontend": "0.2.5",
|
|
23
|
+
"@checkstack/ui": "1.10.0",
|
|
24
24
|
"lucide-react": "^0.344.0",
|
|
25
25
|
"react": "^18.2.0",
|
|
26
26
|
"react-router-dom": "^6.20.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@checkstack/tsconfig": "0.0.7",
|
|
30
|
-
"@checkstack/scripts": "0.3.
|
|
30
|
+
"@checkstack/scripts": "0.3.3",
|
|
31
31
|
"@types/react": "^18.2.0",
|
|
32
32
|
"typescript": "^5.0.0"
|
|
33
33
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
Button,
|
|
21
21
|
LoadingSpinner,
|
|
22
22
|
EmptyState,
|
|
23
|
+
QueryErrorState,
|
|
23
24
|
Table,
|
|
24
25
|
TableHeader,
|
|
25
26
|
TableRow,
|
|
@@ -59,11 +60,8 @@ const SatelliteListPageContent: React.FC = () => {
|
|
|
59
60
|
|
|
60
61
|
const { getLock } = useProvenanceLocks();
|
|
61
62
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
isLoading,
|
|
65
|
-
refetch,
|
|
66
|
-
} = satelliteClient.listSatellites.useQuery();
|
|
63
|
+
const satellitesQuery = satelliteClient.listSatellites.useQuery();
|
|
64
|
+
const { data: satellites, isLoading, refetch } = satellitesQuery;
|
|
67
65
|
|
|
68
66
|
const deleteMutation = satelliteClient.deleteSatellite.useMutation({
|
|
69
67
|
onSuccess: () => {
|
|
@@ -118,6 +116,14 @@ const SatelliteListPageContent: React.FC = () => {
|
|
|
118
116
|
<div className="p-12 flex justify-center">
|
|
119
117
|
<LoadingSpinner />
|
|
120
118
|
</div>
|
|
119
|
+
) : satellitesQuery.isError ? (
|
|
120
|
+
<div className="p-4">
|
|
121
|
+
<QueryErrorState
|
|
122
|
+
error={satellitesQuery.error}
|
|
123
|
+
onRetry={() => void satellitesQuery.refetch()}
|
|
124
|
+
resource="satellites"
|
|
125
|
+
/>
|
|
126
|
+
</div>
|
|
121
127
|
) : satelliteList.length === 0 ? (
|
|
122
128
|
<EmptyState
|
|
123
129
|
icon={<Satellite className="size-10" />}
|