@checkstack/about-frontend 0.2.0 → 0.2.2

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,47 @@
1
1
  # @checkstack/about-frontend
2
2
 
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [26d8bae]
8
+ - @checkstack/ui@1.3.0
9
+
10
+ ## 0.2.1
11
+
12
+ ### Patch Changes
13
+
14
+ - d1a2796: Enforce stricter code quality standards and eliminate AI slop anti-patterns.
15
+
16
+ **New utility**
17
+
18
+ - `extractErrorMessage(error, fallback?)` in `@checkstack/common` for consistent error extraction
19
+
20
+ **ESLint rules**
21
+
22
+ - `react-hooks/rules-of-hooks` and `exhaustive-deps` for hook correctness
23
+ - `no-console` in frontend packages — forces `toast` over silent `console.error`
24
+ - `no-restricted-syntax` banning `instanceof Error` — forces `extractErrorMessage`
25
+ - Custom `no-eslint-disable-any` rule preventing `@typescript-eslint/no-explicit-any` circumvention
26
+
27
+ **Refactoring**
28
+
29
+ - Replace 141 `instanceof Error` boilerplate patterns across the codebase
30
+ - Replace swallowed `console.error` with user-visible `toast.error()` feedback
31
+ - Remove 15 redundant `as` type casts in IntegrationsPage and ProviderConnectionsPage
32
+ - Consolidate 3 identical callback handlers into `handleDialogClose`
33
+ - Fix conditional React hook call in `FormField.tsx`
34
+ - Fix unstable useMemo deps in `Dashboard.tsx`
35
+ - Replace `useEffect`→`setState` with derived `useMemo` in `RegisterPage.tsx`
36
+ - Rewrite `keystore.test.ts` with typed `DrizzleMockChain` (eliminating 7 `any` suppressions)
37
+ - Delete obvious comments in `encryption.ts` and Teams `provider.ts`
38
+
39
+ - Updated dependencies [d1a2796]
40
+ - @checkstack/common@0.6.5
41
+ - @checkstack/ui@1.2.1
42
+ - @checkstack/frontend-api@0.3.9
43
+ - @checkstack/about-common@0.2.1
44
+
3
45
  ## 0.2.0
4
46
 
5
47
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/about-frontend",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "checkstack": {
@@ -12,10 +12,10 @@
12
12
  "lint:code": "eslint . --max-warnings 0"
13
13
  },
14
14
  "dependencies": {
15
- "@checkstack/about-common": "0.1.0",
16
- "@checkstack/frontend-api": "0.3.8",
17
- "@checkstack/common": "0.6.4",
18
- "@checkstack/ui": "1.2.0",
15
+ "@checkstack/about-common": "0.2.1",
16
+ "@checkstack/frontend-api": "0.3.9",
17
+ "@checkstack/common": "0.6.5",
18
+ "@checkstack/ui": "1.2.1",
19
19
  "react": "^18.2.0",
20
20
  "react-router-dom": "^6.22.0",
21
21
  "lucide-react": "^0.344.0"
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "typescript": "^5.0.0",
25
25
  "@types/react": "^18.2.0",
26
- "@checkstack/tsconfig": "0.0.4",
26
+ "@checkstack/tsconfig": "0.0.5",
27
27
  "@checkstack/scripts": "0.1.2"
28
28
  }
29
29
  }
package/src/AboutPage.tsx CHANGED
@@ -10,6 +10,7 @@ import {
10
10
  Badge,
11
11
  LoadingSpinner,
12
12
  } from "@checkstack/ui";
13
+ import { extractErrorMessage } from "@checkstack/common";
13
14
 
14
15
  interface PluginInfo {
15
16
  name: string;
@@ -74,7 +75,7 @@ export function AboutPage() {
74
75
  setAboutInfo(data);
75
76
  } catch (error) {
76
77
  setError(
77
- error instanceof Error ? error.message : "Failed to load about info",
78
+ extractErrorMessage(error, "Failed to load about info"),
78
79
  );
79
80
  } finally {
80
81
  setLoading(false);