@burdenoff/microfe-adaptercloud 2026.706.1 → 2026.706.3

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.
Files changed (53) hide show
  1. package/dist/adaptercloud/AdapterCloudRoot.js +52 -44
  2. package/dist/adaptercloud/AdapterCloudRoot.js.map +1 -1
  3. package/dist/adaptercloud/AdapterCloudRoutes.js +22 -14
  4. package/dist/adaptercloud/AdapterCloudRoutes.js.map +1 -1
  5. package/dist/adaptercloud/components/ConfirmDialog.js +27 -0
  6. package/dist/adaptercloud/components/ConfirmDialog.js.map +1 -0
  7. package/dist/adaptercloud/components/DataState.js +1 -1
  8. package/dist/adaptercloud/components/DataState.js.map +1 -1
  9. package/dist/adaptercloud/components/viz/BarChart.js +32 -0
  10. package/dist/adaptercloud/components/viz/BarChart.js.map +1 -0
  11. package/dist/adaptercloud/components/viz/Sparkline.js +50 -0
  12. package/dist/adaptercloud/components/viz/Sparkline.js.map +1 -0
  13. package/dist/adaptercloud/components/viz/StackedBar.js +1 -0
  14. package/dist/adaptercloud/components/viz/TopologyGraph.js +96 -0
  15. package/dist/adaptercloud/components/viz/TopologyGraph.js.map +1 -0
  16. package/dist/adaptercloud/components/viz/index.js +4 -0
  17. package/dist/adaptercloud/hooks/useAdapterCloudApi.js +71 -34
  18. package/dist/adaptercloud/hooks/useAdapterCloudApi.js.map +1 -1
  19. package/dist/adaptercloud/pages/OverviewPage.js +159 -156
  20. package/dist/adaptercloud/pages/OverviewPage.js.map +1 -1
  21. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js +179 -113
  22. package/dist/adaptercloud/pages/adapters/AdapterDetailPage.js.map +1 -1
  23. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js +263 -179
  24. package/dist/adaptercloud/pages/adapters/AdapterFormPage.js.map +1 -1
  25. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js +2 -0
  26. package/dist/adaptercloud/pages/adapters/AdaptersListPage.js.map +1 -1
  27. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js +141 -124
  28. package/dist/adaptercloud/pages/connections/ConnectionDetailPage.js.map +1 -1
  29. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js +2 -0
  30. package/dist/adaptercloud/pages/connections/ConnectionFormPage.js.map +1 -1
  31. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js +158 -93
  32. package/dist/adaptercloud/pages/connections/ConnectionsListPage.js.map +1 -1
  33. package/dist/adaptercloud/pages/costs/CostsPage.js +183 -109
  34. package/dist/adaptercloud/pages/costs/CostsPage.js.map +1 -1
  35. package/dist/adaptercloud/pages/drift/DriftListPage.js +172 -71
  36. package/dist/adaptercloud/pages/drift/DriftListPage.js.map +1 -1
  37. package/dist/adaptercloud/pages/policies/PoliciesListPage.js +179 -96
  38. package/dist/adaptercloud/pages/policies/PoliciesListPage.js.map +1 -1
  39. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js +109 -91
  40. package/dist/adaptercloud/pages/policies/PolicyDetailPage.js.map +1 -1
  41. package/dist/adaptercloud/pages/policies/PolicyFormPage.js +211 -184
  42. package/dist/adaptercloud/pages/policies/PolicyFormPage.js.map +1 -1
  43. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js +183 -127
  44. package/dist/adaptercloud/pages/resources/ResourceDetailPage.js.map +1 -1
  45. package/dist/adaptercloud/pages/resources/ResourcesListPage.js +121 -84
  46. package/dist/adaptercloud/pages/resources/ResourcesListPage.js.map +1 -1
  47. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js +236 -153
  48. package/dist/adaptercloud/pages/sync-runs/SyncRunsListPage.js.map +1 -1
  49. package/dist/adaptercloud/pages/topology/TopologyPage.js +397 -0
  50. package/dist/adaptercloud/pages/topology/TopologyPage.js.map +1 -0
  51. package/dist/adaptercloud/pages/violations/ViolationsListPage.js +192 -131
  52. package/dist/adaptercloud/pages/violations/ViolationsListPage.js.map +1 -1
  53. package/package.json +1 -1
@@ -7,37 +7,41 @@ import { useResources as o } from "../../hooks/useAdapterCloudApi.js";
7
7
  import { formatRelativeTime as s } from "../../utils/formatters.js";
8
8
  import { useCallback as c, useState as l } from "react";
9
9
  import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
10
- import { ChevronLeft as d, ChevronRight as f, Search as p, Server as m } from "lucide-react";
11
- import { useSearchParams as h } from "react-router-dom";
12
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
13
- import { ResponsiveTable as v } from "@burdenoff/fe-libs/ui";
10
+ import { ChevronLeft as d, ChevronRight as f, Search as p, Server as m, X as h } from "lucide-react";
11
+ import { useSearchParams as g } from "react-router-dom";
12
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
13
+ import { ResponsiveTable as y } from "@burdenoff/fe-libs/ui";
14
14
  //#region src/adaptercloud/pages/resources/ResourcesListPage.tsx
15
- var y = 25;
16
- function b() {
17
- let { navigateTo: b } = e(), [x] = h(), S = x.get("connectionId") ?? void 0, { t: C } = u(), w = c((e, t) => {
18
- let n = C(e);
15
+ var b = 25;
16
+ function x() {
17
+ let { navigateTo: x } = e(), [S] = g(), C = S.get("connectionId") ?? void 0, { t: w } = u(), T = c((e, t) => {
18
+ let n = w(e);
19
19
  return n === e ? t : n;
20
- }, [C]), [T, E] = l(""), [D, O] = l(""), [k, A] = l(""), [j, M] = l(0), N = o({
21
- connectionId: S,
22
- state: T || void 0,
23
- resourceType: k || void 0,
20
+ }, [w]), [E, D] = l(""), [O, k] = l(""), [A, j] = l(""), [M, N] = l(0), P = o({
21
+ connectionId: C,
22
+ state: E || void 0,
23
+ resourceType: A || void 0,
24
24
  pagination: {
25
- limit: y,
26
- offset: j
25
+ limit: b,
26
+ offset: M
27
27
  }
28
- }), P = N.data?.items ?? [], F = N.data?.pageInfo.hasMore ?? !1, I = c((e) => {
29
- e.preventDefault(), A(D.trim()), M(0);
30
- }, [D]), L = [
28
+ }), F = P.data?.items ?? [], I = P.data?.pageInfo.hasMore ?? !1, L = c((e) => {
29
+ e.preventDefault(), j(O.trim()), N(0);
30
+ }, [O]), R = c(() => {
31
+ k(""), j(""), N(0);
32
+ }, []), z = c(() => {
33
+ D(""), k(""), j(""), N(0), x("/resources");
34
+ }, [x]), B = [
31
35
  {
32
36
  key: "name",
33
- header: w("adaptercloud.resources.name", "Name"),
37
+ header: T("adaptercloud.resources.name", "Name"),
34
38
  priority: "primary",
35
- cell: (e) => /* @__PURE__ */ _("div", {
39
+ cell: (e) => /* @__PURE__ */ v("div", {
36
40
  className: "min-w-0",
37
- children: [/* @__PURE__ */ g("p", {
41
+ children: [/* @__PURE__ */ _("p", {
38
42
  className: "truncate font-medium text-text-primary",
39
43
  children: e.name
40
- }), /* @__PURE__ */ g("p", {
44
+ }), /* @__PURE__ */ _("p", {
41
45
  className: "truncate text-xs text-text-secondary",
42
46
  children: e.externalId
43
47
  })]
@@ -45,131 +49,164 @@ function b() {
45
49
  },
46
50
  {
47
51
  key: "type",
48
- header: w("adaptercloud.resources.type", "Type"),
52
+ header: T("adaptercloud.resources.type", "Type"),
49
53
  priority: "primary",
50
- cell: (e) => /* @__PURE__ */ g("span", {
51
- className: "text-sm text-text-primary",
54
+ cell: (e) => /* @__PURE__ */ _("span", {
55
+ className: "font-mono text-xs text-text-primary",
52
56
  children: e.resourceType
53
57
  })
54
58
  },
59
+ {
60
+ key: "connection",
61
+ header: T("adaptercloud.resources.connection", "Connection"),
62
+ priority: "secondary",
63
+ cell: (e) => /* @__PURE__ */ _("span", {
64
+ className: "truncate text-sm text-text-secondary",
65
+ children: e.connection?.name ?? "—"
66
+ })
67
+ },
55
68
  {
56
69
  key: "region",
57
- header: w("adaptercloud.resources.region", "Region"),
70
+ header: T("adaptercloud.resources.region", "Region"),
58
71
  priority: "secondary",
59
- cell: (e) => /* @__PURE__ */ g("span", {
72
+ cell: (e) => /* @__PURE__ */ _("span", {
60
73
  className: "text-sm text-text-secondary",
61
74
  children: e.region ?? "—"
62
75
  })
63
76
  },
64
77
  {
65
78
  key: "cost",
66
- header: w("adaptercloud.resources.monthlyCost", "Monthly Cost"),
79
+ header: T("adaptercloud.resources.monthlyCost", "Monthly Cost"),
67
80
  priority: "secondary",
68
- cell: (e) => /* @__PURE__ */ g("span", {
81
+ cell: (e) => /* @__PURE__ */ _("span", {
69
82
  className: "text-sm tabular-nums text-text-primary",
70
83
  children: n(e.monthlyCost)
71
84
  })
72
85
  },
73
86
  {
74
87
  key: "state",
75
- header: w("adaptercloud.resources.state", "State"),
88
+ header: T("adaptercloud.resources.state", "State"),
76
89
  priority: "primary",
77
- cell: (e) => /* @__PURE__ */ g(i, {
90
+ cell: (e) => /* @__PURE__ */ _(i, {
78
91
  status: e.state,
79
92
  label: r[e.state]
80
93
  })
81
94
  },
82
95
  {
83
96
  key: "seen",
84
- header: w("adaptercloud.resources.lastSeen", "Last Seen"),
97
+ header: T("adaptercloud.resources.lastSeen", "Last Seen"),
85
98
  priority: "hidden-on-mobile",
86
- cell: (e) => /* @__PURE__ */ g("span", {
99
+ cell: (e) => /* @__PURE__ */ _("span", {
87
100
  className: "text-xs text-text-secondary",
88
101
  children: e.lastSeenAt ? s(e.lastSeenAt) : "—"
89
102
  })
90
103
  }
91
104
  ];
92
- return /* @__PURE__ */ _(t, {
93
- title: w("adaptercloud.resources.title", "Resources"),
94
- description: w("adaptercloud.resources.subtitle", "The unified inventory of everything discovered across every connection."),
95
- children: [/* @__PURE__ */ _("div", {
105
+ return /* @__PURE__ */ v(t, {
106
+ title: T("adaptercloud.resources.title", "Resources"),
107
+ description: T("adaptercloud.resources.subtitle", "The unified inventory of everything discovered across every connection."),
108
+ children: [/* @__PURE__ */ v("div", {
96
109
  className: "mb-6 flex flex-wrap items-center gap-3",
97
110
  children: [
98
- /* @__PURE__ */ _("select", {
99
- value: T,
111
+ /* @__PURE__ */ v("select", {
112
+ value: E,
100
113
  onChange: (e) => {
101
- E(e.target.value), M(0);
114
+ D(e.target.value), N(0);
102
115
  },
103
- className: "rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
104
- children: [/* @__PURE__ */ g("option", {
116
+ "aria-label": T("adaptercloud.resources.filterByState", "Filter by lifecycle state"),
117
+ className: "w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] sm:w-auto",
118
+ children: [/* @__PURE__ */ _("option", {
105
119
  value: "",
106
- children: w("adaptercloud.resources.allStates", "All states")
107
- }), Object.keys(r).map((e) => /* @__PURE__ */ g("option", {
120
+ children: T("adaptercloud.resources.allStates", "All states")
121
+ }), Object.keys(r).map((e) => /* @__PURE__ */ _("option", {
108
122
  value: e,
109
123
  children: r[e]
110
124
  }, e))]
111
125
  }),
112
- /* @__PURE__ */ _("form", {
113
- onSubmit: I,
114
- className: "relative",
115
- children: [/* @__PURE__ */ g(p, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ g("input", {
116
- type: "text",
117
- value: D,
118
- onChange: (e) => O(e.target.value),
119
- placeholder: w("adaptercloud.resources.filterType", "Filter by type…"),
120
- className: "w-56 rounded-lg border border-border-subtle bg-bg-surface py-2 pl-9 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
126
+ /* @__PURE__ */ v("form", {
127
+ onSubmit: L,
128
+ role: "search",
129
+ className: "flex w-full items-center gap-2 sm:w-auto",
130
+ children: [/* @__PURE__ */ v("div", {
131
+ className: "relative w-full sm:w-56",
132
+ children: [/* @__PURE__ */ _("input", {
133
+ type: "text",
134
+ value: O,
135
+ onChange: (e) => k(e.target.value),
136
+ "aria-label": T("adaptercloud.resources.filterType", "Filter by resource type"),
137
+ placeholder: T("adaptercloud.resources.filterTypePlaceholder", "Filter by type…"),
138
+ className: "w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-3 pr-9 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
139
+ }), A && /* @__PURE__ */ _("button", {
140
+ type: "button",
141
+ onClick: R,
142
+ "aria-label": T("adaptercloud.resources.clearTypeFilter", "Clear type filter"),
143
+ className: "absolute right-2 top-1/2 -translate-y-1/2 rounded p-0.5 text-text-secondary transition-colors hover:text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
144
+ children: /* @__PURE__ */ _(h, { className: "h-4 w-4" })
145
+ })]
146
+ }), /* @__PURE__ */ _("button", {
147
+ type: "submit",
148
+ "aria-label": T("adaptercloud.resources.applyTypeFilter", "Apply type filter"),
149
+ className: "inline-flex shrink-0 items-center justify-center rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-text-primary transition-colors hover:bg-accent focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
150
+ children: /* @__PURE__ */ _(p, { className: "h-4 w-4" })
121
151
  })]
122
152
  }),
123
- S && /* @__PURE__ */ _("span", {
153
+ C && /* @__PURE__ */ v("span", {
124
154
  className: "inline-flex items-center gap-1.5 rounded-full bg-accent-blue-subtle px-2.5 py-1 text-xs text-accent-blue",
125
- children: [w("adaptercloud.resources.scopedToConnection", "Scoped to connection"), /* @__PURE__ */ g("button", {
155
+ children: [T("adaptercloud.resources.scopedToConnection", "Scoped to connection"), /* @__PURE__ */ _("button", {
126
156
  type: "button",
127
- onClick: () => b("/resources"),
128
- className: "font-semibold hover:underline",
129
- children: "×"
157
+ onClick: z,
158
+ "aria-label": T("adaptercloud.resources.clearScope", "Clear connection scope"),
159
+ className: "inline-flex items-center rounded p-0.5 font-semibold transition-colors hover:text-accent-blue-hover focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
160
+ children: /* @__PURE__ */ _(h, { className: "h-3.5 w-3.5" })
130
161
  })]
131
162
  })
132
163
  ]
133
- }), /* @__PURE__ */ _(a, {
134
- isLoading: N.isLoading,
135
- isError: N.isError,
136
- isEmpty: P.length === 0,
137
- error: N.error,
138
- onRetry: () => void N.refetch(),
139
- emptyTitle: w("adaptercloud.resources.emptyTitle", "No resources found"),
140
- emptyDescription: w("adaptercloud.resources.emptyDescription", "Run a discovery sync against a connection to populate the inventory."),
141
- emptyIcon: /* @__PURE__ */ g(m, { className: "h-10 w-10" }),
142
- children: [/* @__PURE__ */ g(v, {
143
- data: P,
144
- columns: L,
164
+ }), /* @__PURE__ */ v(a, {
165
+ isLoading: P.isLoading,
166
+ isError: P.isError,
167
+ isEmpty: F.length === 0,
168
+ error: P.error,
169
+ onRetry: () => void P.refetch(),
170
+ emptyTitle: T("adaptercloud.resources.emptyTitle", "No resources found"),
171
+ emptyDescription: T("adaptercloud.resources.emptyDescription", "Run a discovery sync against a connection to populate the inventory."),
172
+ emptyIcon: /* @__PURE__ */ _(m, { className: "h-10 w-10" }),
173
+ emptyAction: /* @__PURE__ */ _("button", {
174
+ type: "button",
175
+ onClick: () => x("/connections"),
176
+ className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:opacity-90",
177
+ children: T("adaptercloud.resources.goToConnections", "Go to connections")
178
+ }),
179
+ children: [/* @__PURE__ */ _(y, {
180
+ data: F,
181
+ columns: B,
145
182
  rowKey: (e) => e.id,
146
- onRowClick: (e) => b(`/resources/${e.id}`)
147
- }), (j > 0 || F) && /* @__PURE__ */ _("div", {
183
+ onRowClick: (e) => x(`/resources/${e.id}`)
184
+ }), (M > 0 || I) && /* @__PURE__ */ v("div", {
148
185
  className: "mt-6 flex items-center justify-between",
149
186
  children: [
150
- /* @__PURE__ */ _("button", {
187
+ /* @__PURE__ */ v("button", {
151
188
  type: "button",
152
- disabled: j === 0,
153
- onClick: () => M((e) => Math.max(0, e - y)),
189
+ disabled: M === 0,
190
+ onClick: () => N((e) => Math.max(0, e - b)),
154
191
  className: "inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",
155
- children: [/* @__PURE__ */ g(d, { className: "h-4 w-4" }), w("adaptercloud.common.prev", "Previous")]
192
+ children: [/* @__PURE__ */ _(d, { className: "h-4 w-4" }), T("adaptercloud.common.prev", "Previous")]
156
193
  }),
157
- /* @__PURE__ */ _("span", {
194
+ /* @__PURE__ */ v("span", {
158
195
  className: "text-sm text-text-secondary",
159
196
  children: [
160
- w("adaptercloud.common.showing", "Showing"),
197
+ T("adaptercloud.common.showing", "Showing"),
161
198
  " ",
162
- j + 1,
199
+ M + 1,
163
200
  "–",
164
- j + P.length
201
+ M + F.length
165
202
  ]
166
203
  }),
167
- /* @__PURE__ */ _("button", {
204
+ /* @__PURE__ */ v("button", {
168
205
  type: "button",
169
- disabled: !F,
170
- onClick: () => M((e) => e + y),
206
+ disabled: !I,
207
+ onClick: () => N((e) => e + b),
171
208
  className: "inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50",
172
- children: [w("adaptercloud.common.next", "Next"), /* @__PURE__ */ g(f, { className: "h-4 w-4" })]
209
+ children: [T("adaptercloud.common.next", "Next"), /* @__PURE__ */ _(f, { className: "h-4 w-4" })]
173
210
  })
174
211
  ]
175
212
  })]
@@ -177,6 +214,6 @@ function b() {
177
214
  });
178
215
  }
179
216
  //#endregion
180
- export { b as ResourcesListPage };
217
+ export { x as ResourcesListPage };
181
218
 
182
219
  //# sourceMappingURL=ResourcesListPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourcesListPage.js","names":[],"sources":["../../../../src/adaptercloud/pages/resources/ResourcesListPage.tsx"],"sourcesContent":["/**\n * Resources List Page\n * @module adaptercloud/pages/resources\n *\n * The unified resource inventory across the workspace (`adaListResources`).\n * Supports filtering by lifecycle state, resource type (free text) and, via the\n * `?connectionId=` URL param, by connection. Offset pagination.\n */\n\nimport { useState, useCallback } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Server, ChevronLeft, ChevronRight, Search } from 'lucide-react';\nimport { ResponsiveTable, type ResponsiveTableColumn } from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../../components/PageLayout';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { DataState } from '../../components/DataState';\nimport { useAdapterCloud } from '../../context/AdapterCloudContext';\nimport { useResources } from '../../hooks/useAdapterCloudApi';\nimport { resourceStateLabels, formatMoney } from '../../utils/domain';\nimport { formatRelativeTime } from '../../utils/formatters';\nimport type { AdaResource, AdaResourceState } from '../../types';\n\nconst PAGE_SIZE = 25;\n\nexport function ResourcesListPage() {\n const { navigateTo } = useAdapterCloud();\n const [searchParams] = useSearchParams();\n const connectionId = searchParams.get('connectionId') ?? undefined;\n\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n const [state, setState] = useState<AdaResourceState | ''>('');\n const [typeInput, setTypeInput] = useState('');\n const [appliedType, setAppliedType] = useState('');\n const [offset, setOffset] = useState(0);\n\n const query = useResources({\n connectionId,\n state: state || undefined,\n resourceType: appliedType || undefined,\n pagination: { limit: PAGE_SIZE, offset },\n });\n\n const items = query.data?.items ?? [];\n const hasMore = query.data?.pageInfo.hasMore ?? false;\n\n const onSearch = useCallback(\n (e: React.FormEvent) => {\n e.preventDefault();\n setAppliedType(typeInput.trim());\n setOffset(0);\n },\n [typeInput]\n );\n\n const columns: ResponsiveTableColumn<AdaResource>[] = [\n {\n key: 'name',\n header: t('adaptercloud.resources.name', 'Name'),\n priority: 'primary',\n cell: (r) => (\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{r.name}</p>\n <p className=\"truncate text-xs text-text-secondary\">{r.externalId}</p>\n </div>\n ),\n },\n {\n key: 'type',\n header: t('adaptercloud.resources.type', 'Type'),\n priority: 'primary',\n cell: (r) => <span className=\"text-sm text-text-primary\">{r.resourceType}</span>,\n },\n {\n key: 'region',\n header: t('adaptercloud.resources.region', 'Region'),\n priority: 'secondary',\n cell: (r) => <span className=\"text-sm text-text-secondary\">{r.region ?? '—'}</span>,\n },\n {\n key: 'cost',\n header: t('adaptercloud.resources.monthlyCost', 'Monthly Cost'),\n priority: 'secondary',\n cell: (r) => (\n <span className=\"text-sm tabular-nums text-text-primary\">{formatMoney(r.monthlyCost)}</span>\n ),\n },\n {\n key: 'state',\n header: t('adaptercloud.resources.state', 'State'),\n priority: 'primary',\n cell: (r) => <StatusBadge status={r.state} label={resourceStateLabels[r.state]} />,\n },\n {\n key: 'seen',\n header: t('adaptercloud.resources.lastSeen', 'Last Seen'),\n priority: 'hidden-on-mobile',\n cell: (r) => (\n <span className=\"text-xs text-text-secondary\">\n {r.lastSeenAt ? formatRelativeTime(r.lastSeenAt) : '—'}\n </span>\n ),\n },\n ];\n\n return (\n <PageLayout\n title={t('adaptercloud.resources.title', 'Resources')}\n description={t(\n 'adaptercloud.resources.subtitle',\n 'The unified inventory of everything discovered across every connection.'\n )}\n >\n {/* Filters */}\n <div className=\"mb-6 flex flex-wrap items-center gap-3\">\n <select\n value={state}\n onChange={(e) => {\n setState(e.target.value as AdaResourceState | '');\n setOffset(0);\n }}\n className=\"rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n >\n <option value=\"\">{t('adaptercloud.resources.allStates', 'All states')}</option>\n {(Object.keys(resourceStateLabels) as AdaResourceState[]).map((s) => (\n <option key={s} value={s}>\n {resourceStateLabels[s]}\n </option>\n ))}\n </select>\n <form onSubmit={onSearch} className=\"relative\">\n <Search className=\"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary\" />\n <input\n type=\"text\"\n value={typeInput}\n onChange={(e) => setTypeInput(e.target.value)}\n placeholder={t('adaptercloud.resources.filterType', 'Filter by type…')}\n className=\"w-56 rounded-lg border border-border-subtle bg-bg-surface py-2 pl-9 pr-3 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n />\n </form>\n {connectionId && (\n <span className=\"inline-flex items-center gap-1.5 rounded-full bg-accent-blue-subtle px-2.5 py-1 text-xs text-accent-blue\">\n {t('adaptercloud.resources.scopedToConnection', 'Scoped to connection')}\n <button\n type=\"button\"\n onClick={() => navigateTo('/resources')}\n className=\"font-semibold hover:underline\"\n >\n ×\n </button>\n </span>\n )}\n </div>\n\n <DataState\n isLoading={query.isLoading}\n isError={query.isError}\n isEmpty={items.length === 0}\n error={query.error}\n onRetry={() => void query.refetch()}\n emptyTitle={t('adaptercloud.resources.emptyTitle', 'No resources found')}\n emptyDescription={t(\n 'adaptercloud.resources.emptyDescription',\n 'Run a discovery sync against a connection to populate the inventory.'\n )}\n emptyIcon={<Server className=\"h-10 w-10\" />}\n >\n <ResponsiveTable\n data={items}\n columns={columns}\n rowKey={(r) => r.id}\n onRowClick={(r) => navigateTo(`/resources/${r.id}`)}\n />\n\n {(offset > 0 || hasMore) && (\n <div className=\"mt-6 flex items-center justify-between\">\n <button\n type=\"button\"\n disabled={offset === 0}\n onClick={() => setOffset((o) => Math.max(0, o - PAGE_SIZE))}\n className=\"inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n {t('adaptercloud.common.prev', 'Previous')}\n </button>\n <span className=\"text-sm text-text-secondary\">\n {t('adaptercloud.common.showing', 'Showing')} {offset + 1}–{offset + items.length}\n </span>\n <button\n type=\"button\"\n disabled={!hasMore}\n onClick={() => setOffset((o) => o + PAGE_SIZE)}\n className=\"inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50\"\n >\n {t('adaptercloud.common.next', 'Next')}\n <ChevronRight className=\"h-4 w-4\" />\n </button>\n </div>\n )}\n </DataState>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAuBA,IAAM,IAAY;AAElB,SAAgB,IAAoB;CAClC,IAAM,EAAE,kBAAe,GAAiB,EAClC,CAAC,KAAgB,GAAiB,EAClC,IAAe,EAAa,IAAI,eAAe,IAAI,KAAA,GAEnD,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAEK,CAAC,GAAO,KAAY,EAAgC,GAAG,EACvD,CAAC,GAAW,KAAgB,EAAS,GAAG,EACxC,CAAC,GAAa,KAAkB,EAAS,GAAG,EAC5C,CAAC,GAAQ,KAAa,EAAS,EAAE,EAEjC,IAAQ,EAAa;EACzB;EACA,OAAO,KAAS,KAAA;EAChB,cAAc,KAAe,KAAA;EAC7B,YAAY;GAAE,OAAO;GAAW;GAAQ;EACzC,CAAC,EAEI,IAAQ,EAAM,MAAM,SAAS,EAAE,EAC/B,IAAU,EAAM,MAAM,SAAS,WAAW,IAE1C,IAAW,GACd,MAAuB;AAGtB,EAFA,EAAE,gBAAgB,EAClB,EAAe,EAAU,MAAM,CAAC,EAChC,EAAU,EAAE;IAEd,CAAC,EAAU,CACZ,EAEK,IAAgD;EACpD;GACE,KAAK;GACL,QAAQ,EAAE,+BAA+B,OAAO;GAChD,UAAU;GACV,OAAO,MACL,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,KAAD;KAAG,WAAU;eAA0C,EAAE;KAAS,CAAA,EAClE,kBAAC,KAAD;KAAG,WAAU;eAAwC,EAAE;KAAe,CAAA,CAClE;;GAET;EACD;GACE,KAAK;GACL,QAAQ,EAAE,+BAA+B,OAAO;GAChD,UAAU;GACV,OAAO,MAAM,kBA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","names":[],"sources":["../../../../src/adaptercloud/pages/resources/ResourcesListPage.tsx"],"sourcesContent":["/**\n * Resources List Page\n * @module adaptercloud/pages/resources\n *\n * The unified resource inventory across the workspace (`adaListResources`).\n * Supports filtering by lifecycle state, resource type (free text) and, via the\n * `?connectionId=` URL param, by connection. Offset pagination.\n */\n\nimport { useState, useCallback } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Server, ChevronLeft, ChevronRight, Search, X } from 'lucide-react';\nimport { ResponsiveTable, type ResponsiveTableColumn } from '@burdenoff/fe-libs/ui';\nimport { PageLayout } from '../../components/PageLayout';\nimport { StatusBadge } from '../../components/StatusBadge';\nimport { DataState } from '../../components/DataState';\nimport { useAdapterCloud } from '../../context/AdapterCloudContext';\nimport { useResources } from '../../hooks/useAdapterCloudApi';\nimport { resourceStateLabels, formatMoney } from '../../utils/domain';\nimport { formatRelativeTime } from '../../utils/formatters';\nimport type { AdaResource, AdaResourceState } from '../../types';\n\nconst PAGE_SIZE = 25;\n\nexport function ResourcesListPage() {\n const { navigateTo } = useAdapterCloud();\n const [searchParams] = useSearchParams();\n const connectionId = searchParams.get('connectionId') ?? undefined;\n\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n const [state, setState] = useState<AdaResourceState | ''>('');\n const [typeInput, setTypeInput] = useState('');\n const [appliedType, setAppliedType] = useState('');\n const [offset, setOffset] = useState(0);\n\n const query = useResources({\n connectionId,\n state: state || undefined,\n resourceType: appliedType || undefined,\n pagination: { limit: PAGE_SIZE, offset },\n });\n\n const items = query.data?.items ?? [];\n const hasMore = query.data?.pageInfo.hasMore ?? false;\n\n const onSearch = useCallback(\n (e: React.FormEvent) => {\n e.preventDefault();\n setAppliedType(typeInput.trim());\n setOffset(0);\n },\n [typeInput]\n );\n\n const clearType = useCallback(() => {\n setTypeInput('');\n setAppliedType('');\n setOffset(0);\n }, []);\n\n // Clearing the connection scope must return to a clean page 1 of the full\n // inventory — reset offset AND the applied filters, then drop the URL param.\n const clearScope = useCallback(() => {\n setState('');\n setTypeInput('');\n setAppliedType('');\n setOffset(0);\n navigateTo('/resources');\n }, [navigateTo]);\n\n const columns: ResponsiveTableColumn<AdaResource>[] = [\n {\n key: 'name',\n header: t('adaptercloud.resources.name', 'Name'),\n priority: 'primary',\n cell: (r) => (\n <div className=\"min-w-0\">\n <p className=\"truncate font-medium text-text-primary\">{r.name}</p>\n <p className=\"truncate text-xs text-text-secondary\">{r.externalId}</p>\n </div>\n ),\n },\n {\n key: 'type',\n header: t('adaptercloud.resources.type', 'Type'),\n priority: 'primary',\n cell: (r) => <span className=\"font-mono text-xs text-text-primary\">{r.resourceType}</span>,\n },\n {\n key: 'connection',\n header: t('adaptercloud.resources.connection', 'Connection'),\n priority: 'secondary',\n cell: (r) => (\n <span className=\"truncate text-sm text-text-secondary\">{r.connection?.name ?? '—'}</span>\n ),\n },\n {\n key: 'region',\n header: t('adaptercloud.resources.region', 'Region'),\n priority: 'secondary',\n cell: (r) => <span className=\"text-sm text-text-secondary\">{r.region ?? '—'}</span>,\n },\n {\n key: 'cost',\n header: t('adaptercloud.resources.monthlyCost', 'Monthly Cost'),\n priority: 'secondary',\n cell: (r) => (\n <span className=\"text-sm tabular-nums text-text-primary\">{formatMoney(r.monthlyCost)}</span>\n ),\n },\n {\n key: 'state',\n header: t('adaptercloud.resources.state', 'State'),\n priority: 'primary',\n cell: (r) => <StatusBadge status={r.state} label={resourceStateLabels[r.state]} />,\n },\n {\n key: 'seen',\n header: t('adaptercloud.resources.lastSeen', 'Last Seen'),\n priority: 'hidden-on-mobile',\n cell: (r) => (\n <span className=\"text-xs text-text-secondary\">\n {r.lastSeenAt ? formatRelativeTime(r.lastSeenAt) : '—'}\n </span>\n ),\n },\n ];\n\n return (\n <PageLayout\n title={t('adaptercloud.resources.title', 'Resources')}\n description={t(\n 'adaptercloud.resources.subtitle',\n 'The unified inventory of everything discovered across every connection.'\n )}\n >\n {/* Filters */}\n <div className=\"mb-6 flex flex-wrap items-center gap-3\">\n <select\n value={state}\n onChange={(e) => {\n setState(e.target.value as AdaResourceState | '');\n setOffset(0);\n }}\n aria-label={t('adaptercloud.resources.filterByState', 'Filter by lifecycle state')}\n className=\"w-full rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] sm:w-auto\"\n >\n <option value=\"\">{t('adaptercloud.resources.allStates', 'All states')}</option>\n {(Object.keys(resourceStateLabels) as AdaResourceState[]).map((s) => (\n <option key={s} value={s}>\n {resourceStateLabels[s]}\n </option>\n ))}\n </select>\n <form\n onSubmit={onSearch}\n role=\"search\"\n className=\"flex w-full items-center gap-2 sm:w-auto\"\n >\n <div className=\"relative w-full sm:w-56\">\n <input\n type=\"text\"\n value={typeInput}\n onChange={(e) => setTypeInput(e.target.value)}\n aria-label={t('adaptercloud.resources.filterType', 'Filter by resource type')}\n placeholder={t('adaptercloud.resources.filterTypePlaceholder', 'Filter by type…')}\n className=\"w-full rounded-lg border border-border-subtle bg-bg-surface py-2 pl-3 pr-9 text-sm text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n />\n {appliedType && (\n <button\n type=\"button\"\n onClick={clearType}\n aria-label={t('adaptercloud.resources.clearTypeFilter', 'Clear type filter')}\n className=\"absolute right-2 top-1/2 -translate-y-1/2 rounded p-0.5 text-text-secondary transition-colors hover:text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n >\n <X className=\"h-4 w-4\" />\n </button>\n )}\n </div>\n <button\n type=\"submit\"\n aria-label={t('adaptercloud.resources.applyTypeFilter', 'Apply type filter')}\n className=\"inline-flex shrink-0 items-center justify-center rounded-lg border border-border-subtle bg-bg-surface px-3 py-2 text-text-primary transition-colors hover:bg-accent focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n >\n <Search className=\"h-4 w-4\" />\n </button>\n </form>\n {connectionId && (\n <span className=\"inline-flex items-center gap-1.5 rounded-full bg-accent-blue-subtle px-2.5 py-1 text-xs text-accent-blue\">\n {t('adaptercloud.resources.scopedToConnection', 'Scoped to connection')}\n <button\n type=\"button\"\n onClick={clearScope}\n aria-label={t('adaptercloud.resources.clearScope', 'Clear connection scope')}\n className=\"inline-flex items-center rounded p-0.5 font-semibold transition-colors hover:text-accent-blue-hover focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]\"\n >\n <X className=\"h-3.5 w-3.5\" />\n </button>\n </span>\n )}\n </div>\n\n <DataState\n isLoading={query.isLoading}\n isError={query.isError}\n isEmpty={items.length === 0}\n error={query.error}\n onRetry={() => void query.refetch()}\n emptyTitle={t('adaptercloud.resources.emptyTitle', 'No resources found')}\n emptyDescription={t(\n 'adaptercloud.resources.emptyDescription',\n 'Run a discovery sync against a connection to populate the inventory.'\n )}\n emptyIcon={<Server className=\"h-10 w-10\" />}\n emptyAction={\n <button\n type=\"button\"\n onClick={() => navigateTo('/connections')}\n className=\"rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text transition-colors hover:opacity-90\"\n >\n {t('adaptercloud.resources.goToConnections', 'Go to connections')}\n </button>\n }\n >\n <ResponsiveTable\n data={items}\n columns={columns}\n rowKey={(r) => r.id}\n onRowClick={(r) => navigateTo(`/resources/${r.id}`)}\n />\n\n {(offset > 0 || hasMore) && (\n <div className=\"mt-6 flex items-center justify-between\">\n <button\n type=\"button\"\n disabled={offset === 0}\n onClick={() => setOffset((o) => Math.max(0, o - PAGE_SIZE))}\n className=\"inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n {t('adaptercloud.common.prev', 'Previous')}\n </button>\n <span className=\"text-sm text-text-secondary\">\n {t('adaptercloud.common.showing', 'Showing')} {offset + 1}–{offset + items.length}\n </span>\n <button\n type=\"button\"\n disabled={!hasMore}\n onClick={() => setOffset((o) => o + PAGE_SIZE)}\n className=\"inline-flex items-center gap-1 rounded-lg border border-border-subtle px-3 py-2 text-sm font-medium text-text-primary transition-colors hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50\"\n >\n {t('adaptercloud.common.next', 'Next')}\n <ChevronRight className=\"h-4 w-4\" />\n </button>\n </div>\n )}\n </DataState>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAuBA,IAAM,IAAY;AAElB,SAAgB,IAAoB;CAClC,IAAM,EAAE,kBAAe,GAAiB,EAClC,CAAC,KAAgB,GAAiB,EAClC,IAAe,EAAa,IAAI,eAAe,IAAI,KAAA,GAEnD,EAAE,GAAG,MAAc,GAAS,EAC5B,IAAI,GACP,GAAa,MAA6B;EACzC,IAAM,IAAQ,EAAU,EAAI;AAC5B,SAAO,MAAU,IAAM,IAAW;IAEpC,CAAC,EAAU,CACZ,EAEK,CAAC,GAAO,KAAY,EAAgC,GAAG,EACvD,CAAC,GAAW,KAAgB,EAAS,GAAG,EACxC,CAAC,GAAa,KAAkB,EAAS,GAAG,EAC5C,CAAC,GAAQ,KAAa,EAAS,EAAE,EAEjC,IAAQ,EAAa;EACzB;EACA,OAAO,KAAS,KAAA;EAChB,cAAc,KAAe,KAAA;EAC7B,YAAY;GAAE,OAAO;GAAW;GAAQ;EACzC,CAAC,EAEI,IAAQ,EAAM,MAAM,SAAS,EAAE,EAC/B,IAAU,EAAM,MAAM,SAAS,WAAW,IAE1C,IAAW,GACd,MAAuB;AAGtB,EAFA,EAAE,gBAAgB,EAClB,EAAe,EAAU,MAAM,CAAC,EAChC,EAAU,EAAE;IAEd,CAAC,EAAU,CACZ,EAEK,IAAY,QAAkB;AAGlC,EAFA,EAAa,GAAG,EAChB,EAAe,GAAG,EAClB,EAAU,EAAE;IACX,EA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