@checkstack/maintenance-frontend 0.4.18 → 0.4.20
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,5 +1,51 @@
|
|
|
1
1
|
# @checkstack/maintenance-frontend
|
|
2
2
|
|
|
3
|
+
## 0.4.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d1a2796: Enforce stricter code quality standards and eliminate AI slop anti-patterns.
|
|
8
|
+
|
|
9
|
+
**New utility**
|
|
10
|
+
|
|
11
|
+
- `extractErrorMessage(error, fallback?)` in `@checkstack/common` for consistent error extraction
|
|
12
|
+
|
|
13
|
+
**ESLint rules**
|
|
14
|
+
|
|
15
|
+
- `react-hooks/rules-of-hooks` and `exhaustive-deps` for hook correctness
|
|
16
|
+
- `no-console` in frontend packages — forces `toast` over silent `console.error`
|
|
17
|
+
- `no-restricted-syntax` banning `instanceof Error` — forces `extractErrorMessage`
|
|
18
|
+
- Custom `no-eslint-disable-any` rule preventing `@typescript-eslint/no-explicit-any` circumvention
|
|
19
|
+
|
|
20
|
+
**Refactoring**
|
|
21
|
+
|
|
22
|
+
- Replace 141 `instanceof Error` boilerplate patterns across the codebase
|
|
23
|
+
- Replace swallowed `console.error` with user-visible `toast.error()` feedback
|
|
24
|
+
- Remove 15 redundant `as` type casts in IntegrationsPage and ProviderConnectionsPage
|
|
25
|
+
- Consolidate 3 identical callback handlers into `handleDialogClose`
|
|
26
|
+
- Fix conditional React hook call in `FormField.tsx`
|
|
27
|
+
- Fix unstable useMemo deps in `Dashboard.tsx`
|
|
28
|
+
- Replace `useEffect`→`setState` with derived `useMemo` in `RegisterPage.tsx`
|
|
29
|
+
- Rewrite `keystore.test.ts` with typed `DrizzleMockChain` (eliminating 7 `any` suppressions)
|
|
30
|
+
- Delete obvious comments in `encryption.ts` and Teams `provider.ts`
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [d1a2796]
|
|
33
|
+
- Updated dependencies [3c34b07]
|
|
34
|
+
- @checkstack/common@0.6.5
|
|
35
|
+
- @checkstack/ui@1.2.1
|
|
36
|
+
- @checkstack/auth-frontend@0.5.18
|
|
37
|
+
- @checkstack/dashboard-frontend@0.3.26
|
|
38
|
+
- @checkstack/frontend-api@0.3.9
|
|
39
|
+
- @checkstack/catalog-common@1.3.1
|
|
40
|
+
- @checkstack/maintenance-common@0.4.9
|
|
41
|
+
- @checkstack/signal-frontend@0.0.15
|
|
42
|
+
|
|
43
|
+
## 0.4.19
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- @checkstack/dashboard-frontend@0.3.25
|
|
48
|
+
|
|
3
49
|
## 0.4.18
|
|
4
50
|
|
|
5
51
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/maintenance-frontend",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"checkstack": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@checkstack/auth-frontend": "0.5.17",
|
|
16
|
-
"@checkstack/catalog-common": "1.
|
|
16
|
+
"@checkstack/catalog-common": "1.3.0",
|
|
17
17
|
"@checkstack/common": "0.6.4",
|
|
18
|
-
"@checkstack/dashboard-frontend": "0.3.
|
|
18
|
+
"@checkstack/dashboard-frontend": "0.3.25",
|
|
19
19
|
"@checkstack/frontend-api": "0.3.8",
|
|
20
20
|
"@checkstack/maintenance-common": "0.4.8",
|
|
21
21
|
"@checkstack/signal-frontend": "0.0.14",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.0.0",
|
|
30
30
|
"@types/react": "^18.2.0",
|
|
31
|
-
"@checkstack/tsconfig": "0.0.
|
|
31
|
+
"@checkstack/tsconfig": "0.0.5",
|
|
32
32
|
"@checkstack/scripts": "0.1.2"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -26,6 +26,7 @@ import { Plus, MessageSquare, Loader2, AlertCircle } from "lucide-react";
|
|
|
26
26
|
import { MaintenanceUpdateForm } from "./MaintenanceUpdateForm";
|
|
27
27
|
import { getMaintenanceStatusBadge } from "../utils/badges";
|
|
28
28
|
import { TeamAccessEditor } from "@checkstack/auth-frontend";
|
|
29
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
29
30
|
|
|
30
31
|
interface Props {
|
|
31
32
|
open: boolean;
|
|
@@ -73,7 +74,7 @@ export const MaintenanceEditor: React.FC<Props> = ({
|
|
|
73
74
|
onSave();
|
|
74
75
|
},
|
|
75
76
|
onError: (error) => {
|
|
76
|
-
toast.error(error
|
|
77
|
+
toast.error(extractErrorMessage(error, "Failed to save"));
|
|
77
78
|
},
|
|
78
79
|
});
|
|
79
80
|
|
|
@@ -83,7 +84,7 @@ export const MaintenanceEditor: React.FC<Props> = ({
|
|
|
83
84
|
onSave();
|
|
84
85
|
},
|
|
85
86
|
onError: (error) => {
|
|
86
|
-
toast.error(error
|
|
87
|
+
toast.error(extractErrorMessage(error, "Failed to save"));
|
|
87
88
|
},
|
|
88
89
|
});
|
|
89
90
|
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
useToast,
|
|
15
15
|
} from "@checkstack/ui";
|
|
16
16
|
import { Loader2 } from "lucide-react";
|
|
17
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
17
18
|
|
|
18
19
|
interface MaintenanceUpdateFormProps {
|
|
19
20
|
maintenanceId: string;
|
|
@@ -45,7 +46,7 @@ export const MaintenanceUpdateForm: React.FC<MaintenanceUpdateFormProps> = ({
|
|
|
45
46
|
},
|
|
46
47
|
onError: (error) => {
|
|
47
48
|
toast.error(
|
|
48
|
-
error
|
|
49
|
+
extractErrorMessage(error, "Failed to post update")
|
|
49
50
|
);
|
|
50
51
|
},
|
|
51
52
|
});
|
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
import { format } from "date-fns";
|
|
49
49
|
import { MaintenanceEditor } from "../components/MaintenanceEditor";
|
|
50
50
|
import { getMaintenanceStatusBadge } from "../utils/badges";
|
|
51
|
+
import { extractErrorMessage } from "@checkstack/common";
|
|
51
52
|
|
|
52
53
|
const MaintenanceConfigPageContent: React.FC = () => {
|
|
53
54
|
const maintenanceClient = usePluginClient(MaintenanceApi);
|
|
@@ -112,7 +113,7 @@ const MaintenanceConfigPageContent: React.FC = () => {
|
|
|
112
113
|
setDeleteId(undefined);
|
|
113
114
|
},
|
|
114
115
|
onError: (error) => {
|
|
115
|
-
toast.error(error
|
|
116
|
+
toast.error(extractErrorMessage(error, "Failed to delete"));
|
|
116
117
|
},
|
|
117
118
|
});
|
|
118
119
|
|
|
@@ -124,7 +125,7 @@ const MaintenanceConfigPageContent: React.FC = () => {
|
|
|
124
125
|
},
|
|
125
126
|
onError: (error) => {
|
|
126
127
|
toast.error(
|
|
127
|
-
error
|
|
128
|
+
extractErrorMessage(error, "Failed to complete"),
|
|
128
129
|
);
|
|
129
130
|
},
|
|
130
131
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
accessApiRef,
|
|
12
12
|
useApi,
|
|
13
13
|
} from "@checkstack/frontend-api";
|
|
14
|
-
import { resolveRoute } from "@checkstack/common";
|
|
14
|
+
import { resolveRoute, extractErrorMessage} from "@checkstack/common";
|
|
15
15
|
import { MaintenanceApi } from "../api";
|
|
16
16
|
import {
|
|
17
17
|
maintenanceRoutes,
|
|
@@ -86,7 +86,7 @@ const MaintenanceDetailPageContent: React.FC = () => {
|
|
|
86
86
|
},
|
|
87
87
|
onError: (error) => {
|
|
88
88
|
toast.error(
|
|
89
|
-
error
|
|
89
|
+
extractErrorMessage(error, "Failed to complete"),
|
|
90
90
|
);
|
|
91
91
|
},
|
|
92
92
|
});
|