@shipfox/client-triggers 21.0.0 → 22.0.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/client-triggers",
3
3
  "license": "MIT",
4
- "version": "21.0.0",
4
+ "version": "22.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -28,11 +28,11 @@
28
28
  "@swc/helpers": "^0.5.17",
29
29
  "@shipfox/api-triggers-dto": "9.0.2",
30
30
  "@shipfox/client-api": "6.0.1",
31
- "@shipfox/client-projects": "21.0.0",
32
- "@shipfox/client-shell": "21.0.0",
33
- "@shipfox/client-ui": "21.0.0",
34
- "@shipfox/integration-icons": "0.3.4",
35
- "@shipfox/react-ui": "2.0.0"
31
+ "@shipfox/client-projects": "22.0.0",
32
+ "@shipfox/client-shell": "22.0.0",
33
+ "@shipfox/client-ui": "22.0.0",
34
+ "@shipfox/integration-icons": "0.3.5",
35
+ "@shipfox/react-ui": "2.1.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tanstack/react-query": "^5.101.0",
@@ -8,12 +8,16 @@ import {Link} from '@tanstack/react-router';
8
8
 
9
9
  export function EventsListSkeleton() {
10
10
  return (
11
- <div className="flex flex-col gap-inline p-tight" role="status" aria-label="Loading events">
11
+ <div
12
+ className="flex flex-col divide-y divide-border-neutral-base"
13
+ role="status"
14
+ aria-label="Loading events"
15
+ >
12
16
  {Array.from({length: 8}).map((_, index) => (
13
17
  <div
14
18
  // biome-ignore lint/suspicious/noArrayIndexKey: skeleton row, stable position
15
19
  key={index}
16
- className="flex h-20 items-center gap-cluster"
20
+ className="flex min-h-44 items-center gap-cluster px-row py-row"
17
21
  >
18
22
  <Skeleton className="size-6 shrink-0 rounded-full" />
19
23
  <Skeleton className="h-12 w-1/4" />
@@ -27,39 +31,37 @@ export function EventsListSkeleton() {
27
31
 
28
32
  export function EventsListEmpty({workspaceSlug}: {workspaceSlug?: string | undefined}) {
29
33
  return (
30
- <div className="p-panel-compact">
31
- <EmptyState
32
- icon="pulseLine"
33
- title="No events yet"
34
- description="Events appear here once a connected integration delivers one or you fire a trigger."
35
- action={
36
- workspaceSlug ? (
37
- <Button asChild size="sm" variant="secondary">
38
- <Link to="/w/$workspaceSlug/settings/integrations" params={{workspaceSlug}}>
39
- Configure integrations
40
- </Link>
41
- </Button>
42
- ) : undefined
43
- }
44
- />
45
- </div>
34
+ <EmptyState
35
+ icon="pulseLine"
36
+ title="No events yet"
37
+ description="Events appear here once a connected integration delivers one or you fire a trigger."
38
+ action={
39
+ workspaceSlug ? (
40
+ <Button asChild size="sm" variant="secondary">
41
+ <Link to="/w/$workspaceSlug/settings/integrations" params={{workspaceSlug}}>
42
+ Configure integrations
43
+ </Link>
44
+ </Button>
45
+ ) : undefined
46
+ }
47
+ variant="panel"
48
+ />
46
49
  );
47
50
  }
48
51
 
49
52
  export function EventsListNoMatches({onClear}: {onClear: () => void}) {
50
53
  return (
51
- <div className="p-panel-compact">
52
- <EmptyState
53
- icon="filterOffLine"
54
- title="No matching events"
55
- description="No events match your current filters."
56
- action={
57
- <Button type="button" size="sm" variant="secondary" onClick={onClear}>
58
- Clear filters
59
- </Button>
60
- }
61
- />
62
- </div>
54
+ <EmptyState
55
+ icon="filterOffLine"
56
+ title="No matching events"
57
+ description="No events match your current filters."
58
+ action={
59
+ <Button type="button" size="sm" variant="secondary" onClick={onClear}>
60
+ Clear filters
61
+ </Button>
62
+ }
63
+ variant="panel"
64
+ />
63
65
  );
64
66
  }
65
67
 
@@ -52,7 +52,9 @@ export function EventsList({
52
52
  />
53
53
 
54
54
  {query.isPending ? <EventsListSkeleton /> : null}
55
- {!query.isPending ? <QueryLoadError query={query} subject="events" icon="pulseLine" /> : null}
55
+ {!query.isPending ? (
56
+ <QueryLoadError query={query} subject="events" icon="pulseLine" variant="panel" />
57
+ ) : null}
56
58
  {!query.isPending && refreshFailed ? <EventsListStaleError query={query} /> : null}
57
59
  {showEmptyState && !activeFilters ? <EventsListEmpty workspaceSlug={workspaceSlug} /> : null}
58
60
  {showEmptyState && activeFilters ? <EventsListNoMatches onClear={clearFilters} /> : null}