@checkstack/integration-frontend 0.2.7 → 0.2.9

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,34 @@
1
1
  # @checkstack/integration-frontend
2
2
 
3
+ ## 0.2.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [090143b]
8
+ - @checkstack/ui@0.5.1
9
+
10
+ ## 0.2.8
11
+
12
+ ### Patch Changes
13
+
14
+ - 223081d: Add icon support to PageLayout and improve mobile responsiveness
15
+
16
+ **PageLayout Icons:**
17
+
18
+ - Added required `icon` prop to `PageLayout` and `PageHeader` components that accepts a Lucide icon component reference
19
+ - Icons are rendered with consistent `h-6 w-6 text-primary` styling
20
+ - Updated all page components to include appropriate icons in their headers
21
+
22
+ **Mobile Layout Improvements:**
23
+
24
+ - Standardized responsive padding in main app shell (`p-3` on mobile, `p-6` on desktop)
25
+ - Added `CardHeaderRow` component for mobile-safe card headers with proper wrapping
26
+ - Improved `DateRangeFilter` responsive behavior with vertical stacking on mobile
27
+ - Migrated pages to use `PageLayout` for consistent responsive behavior
28
+
29
+ - Updated dependencies [223081d]
30
+ - @checkstack/ui@0.5.0
31
+
3
32
  ## 0.2.7
4
33
 
5
34
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/integration-frontend",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "checkstack": {
@@ -108,6 +108,7 @@ export const DeliveryLogsPage = () => {
108
108
  <PageLayout
109
109
  title="Delivery Logs"
110
110
  subtitle="View and manage webhook delivery attempts"
111
+ icon={FileText}
111
112
  loading={isLoading}
112
113
  actions={
113
114
  <BackLink to={resolveRoute(integrationRoutes.routes.list)}>
@@ -1,6 +1,12 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { Link, useSearchParams } from "react-router-dom";
3
- import { Plus, Webhook, ArrowRight, Activity } from "lucide-react";
3
+ import {
4
+ Plus,
5
+ Webhook,
6
+ ArrowRight,
7
+ Activity,
8
+ Link as LinkIcon,
9
+ } from "lucide-react";
4
10
  import {
5
11
  PageLayout,
6
12
  Card,
@@ -55,13 +61,15 @@ export const IntegrationsPage = () => {
55
61
  const toggleMutation = client.toggleSubscription.useMutation({
56
62
  onSuccess: (_result, variables) => {
57
63
  toast.success(
58
- variables.enabled ? "Subscription enabled" : "Subscription disabled"
64
+ variables.enabled ? "Subscription enabled" : "Subscription disabled",
59
65
  );
60
66
  void refetchSubs();
61
67
  },
62
68
  onError: (error) => {
63
69
  toast.error(
64
- error instanceof Error ? error.message : "Failed to toggle subscription"
70
+ error instanceof Error
71
+ ? error.message
72
+ : "Failed to toggle subscription",
65
73
  );
66
74
  },
67
75
  });
@@ -81,10 +89,10 @@ export const IntegrationsPage = () => {
81
89
  }, [searchParams, setSearchParams]);
82
90
 
83
91
  const getProviderInfo = (
84
- providerId: string
92
+ providerId: string,
85
93
  ): IntegrationProviderInfo | undefined => {
86
94
  return (providers as IntegrationProviderInfo[]).find(
87
- (p) => p.qualifiedId === providerId
95
+ (p) => p.qualifiedId === providerId,
88
96
  );
89
97
  };
90
98
 
@@ -124,6 +132,7 @@ export const IntegrationsPage = () => {
124
132
  <PageLayout
125
133
  title="Integrations"
126
134
  subtitle="Configure webhooks to send events to external systems"
135
+ icon={LinkIcon}
127
136
  loading={loading}
128
137
  actions={
129
138
  <Button onClick={openCreateDialog}>
@@ -91,12 +91,12 @@ export const ProviderConnectionsPage = () => {
91
91
  refetch: refetchConnections,
92
92
  } = client.listConnections.useQuery(
93
93
  { providerId: providerId ?? "" },
94
- { enabled: !!providerId }
94
+ { enabled: !!providerId },
95
95
  );
96
96
 
97
97
  const loading = providersLoading || connectionsLoading;
98
98
  const provider = (providers as IntegrationProviderInfo[]).find(
99
- (p) => p.qualifiedId === providerId
99
+ (p) => p.qualifiedId === providerId,
100
100
  );
101
101
 
102
102
  // Mutations
@@ -111,7 +111,7 @@ export const ProviderConnectionsPage = () => {
111
111
  },
112
112
  onError: (error) => {
113
113
  toast.error(
114
- error instanceof Error ? error.message : "Failed to create connection"
114
+ error instanceof Error ? error.message : "Failed to create connection",
115
115
  );
116
116
  setSaving(false);
117
117
  },
@@ -127,7 +127,7 @@ export const ProviderConnectionsPage = () => {
127
127
  },
128
128
  onError: (error) => {
129
129
  toast.error(
130
- error instanceof Error ? error.message : "Failed to update connection"
130
+ error instanceof Error ? error.message : "Failed to update connection",
131
131
  );
132
132
  setSaving(false);
133
133
  },
@@ -142,7 +142,7 @@ export const ProviderConnectionsPage = () => {
142
142
  },
143
143
  onError: (error) => {
144
144
  toast.error(
145
- error instanceof Error ? error.message : "Failed to delete connection"
145
+ error instanceof Error ? error.message : "Failed to delete connection",
146
146
  );
147
147
  },
148
148
  });
@@ -166,7 +166,7 @@ export const ProviderConnectionsPage = () => {
166
166
  [variables.connectionId]: { success: false, message: "Test failed" },
167
167
  }));
168
168
  toast.error(
169
- error instanceof Error ? error.message : "Connection test failed"
169
+ error instanceof Error ? error.message : "Connection test failed",
170
170
  );
171
171
  setTestingId(undefined);
172
172
  },
@@ -226,12 +226,16 @@ export const ProviderConnectionsPage = () => {
226
226
  };
227
227
 
228
228
  if (!providerId) {
229
- return <PageLayout title="Error">Missing provider ID</PageLayout>;
229
+ return (
230
+ <PageLayout title="Error" icon={Settings2}>
231
+ Missing provider ID
232
+ </PageLayout>
233
+ );
230
234
  }
231
235
 
232
236
  if (!loading && !provider) {
233
237
  return (
234
- <PageLayout title="Provider Not Found">
238
+ <PageLayout title="Provider Not Found" icon={Settings2}>
235
239
  <EmptyState
236
240
  icon={<Settings2 className="h-12 w-12" />}
237
241
  title="Provider not found"
@@ -243,7 +247,7 @@ export const ProviderConnectionsPage = () => {
243
247
 
244
248
  if (!loading && !provider?.hasConnectionSchema) {
245
249
  return (
246
- <PageLayout title={provider?.displayName ?? "Provider"}>
250
+ <PageLayout title={provider?.displayName ?? "Provider"} icon={Settings2}>
247
251
  <EmptyState
248
252
  icon={<Settings2 className="h-12 w-12" />}
249
253
  title="No connection management"
@@ -257,6 +261,7 @@ export const ProviderConnectionsPage = () => {
257
261
  <PageLayout
258
262
  title={`${provider?.displayName ?? "Provider"} Connections`}
259
263
  subtitle="Manage site-wide connections for this integration provider"
264
+ icon={Settings2}
260
265
  loading={loading}
261
266
  actions={
262
267
  <div className="flex items-center gap-2">