@burdenoff/microfe-export 2026.1124.1 → 2026.1125.1

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 (38) hide show
  1. package/dist/export/ExportRoutes.js +62 -57
  2. package/dist/export/ExportRoutes.js.map +1 -1
  3. package/dist/export/components/ConfirmDestructiveDialog.js +18 -14
  4. package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -1
  5. package/dist/export/components/DownloadStatus.js +14 -10
  6. package/dist/export/components/DownloadStatus.js.map +1 -1
  7. package/dist/export/components/ExportProgressBar.d.ts +3 -1
  8. package/dist/export/components/ExportProgressBar.js +23 -11
  9. package/dist/export/components/ExportProgressBar.js.map +1 -1
  10. package/dist/export/components/loadingSystem.d.ts +64 -0
  11. package/dist/export/components/loadingSystem.js +49 -0
  12. package/dist/export/components/loadingSystem.js.map +1 -0
  13. package/dist/export/hooks/exportBackgroundTask.d.ts +18 -0
  14. package/dist/export/hooks/exportBackgroundTask.js +46 -0
  15. package/dist/export/hooks/exportBackgroundTask.js.map +1 -0
  16. package/dist/export/hooks/useExportQueries.js +140 -124
  17. package/dist/export/hooks/useExportQueries.js.map +1 -1
  18. package/dist/export/pages/CreateExportPage.js +29 -27
  19. package/dist/export/pages/CreateExportPage.js.map +1 -1
  20. package/dist/export/pages/ExportDashboardPage.js +114 -113
  21. package/dist/export/pages/ExportDashboardPage.js.map +1 -1
  22. package/dist/export/pages/ExportDetailPage.js +104 -98
  23. package/dist/export/pages/ExportDetailPage.js.map +1 -1
  24. package/dist/export/pages/ExportHistoryPage.js +150 -149
  25. package/dist/export/pages/ExportHistoryPage.js.map +1 -1
  26. package/dist/export/pages/ExportTemplatesPage.js +156 -154
  27. package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
  28. package/dist/export/pages/TemplateDetailPage.js +142 -136
  29. package/dist/export/pages/TemplateDetailPage.js.map +1 -1
  30. package/dist/export/pages/v2/DownloadDetailPage.js +108 -103
  31. package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -1
  32. package/dist/export/pages/v2/DownloadsPage.js +153 -152
  33. package/dist/export/pages/v2/DownloadsPage.js.map +1 -1
  34. package/dist/export/pages/v2/NewDownloadPage.js +142 -138
  35. package/dist/export/pages/v2/NewDownloadPage.js.map +1 -1
  36. package/dist/export/workspace-v2/DownloadCells.js +32 -20
  37. package/dist/export/workspace-v2/DownloadCells.js.map +1 -1
  38. package/package.json +2 -2
@@ -5,261 +5,262 @@ import { ExportProgressBar as r } from "../components/ExportProgressBar.js";
5
5
  import { PageLayout as i, PageSection as a } from "../components/PageLayout.js";
6
6
  import { useTr as o } from "../hooks/useTr.js";
7
7
  import { cn as s } from "../utils/cn.js";
8
- import { Activity as c, ArrowRight as l, CheckCircle2 as u, Clock as d, Download as f, FileBox as p, Plus as m } from "lucide-react";
9
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
10
- import { AuroraBackground as _, EmphasisPanel as v, GlassCard as y, GradientText as b, IllustratedEmptyState as x, NextSteps as S, PagePurpose as C } from "@burdenoff/fe-libs/ui";
8
+ import { SkeletonBlock as c } from "../components/loadingSystem.js";
9
+ import { Activity as l, ArrowRight as u, CheckCircle2 as d, Clock as f, Download as p, FileBox as m, Plus as h } from "lucide-react";
10
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
11
+ import { AuroraBackground as v, EmphasisPanel as y, GlassCard as b, GradientText as x, IllustratedEmptyState as S, NextSteps as C, PagePurpose as w } from "@burdenoff/fe-libs/ui";
11
12
  // src/export/pages/ExportDashboardPage.tsx
12
- var w = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
13
- function T() {
14
- let { basePath: T = "/", navigate: E } = e(), D = o(), { data: O, isLoading: k } = t({}), A = O.slice(0, 5), j = O.filter((e) => e.status === "RUNNING" || e.status === "QUEUED"), M = O.filter((e) => e.status === "COMPLETED"), N = [
13
+ var T = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
14
+ function E() {
15
+ let { basePath: E = "/", navigate: D } = e(), O = o(), { data: k, isLoading: A } = t({}), j = k.slice(0, 5), M = k.filter((e) => e.status === "RUNNING" || e.status === "QUEUED"), N = k.filter((e) => e.status === "COMPLETED"), P = [
15
16
  {
16
- icon: /* @__PURE__ */ h(f, { size: 18 }),
17
- label: D("export.dashboard.metrics.total", "Total Exports"),
18
- value: O.length,
17
+ icon: /* @__PURE__ */ g(p, { size: 18 }),
18
+ label: O("export.dashboard.metrics.total", "Total Exports"),
19
+ value: k.length,
19
20
  treatment: "glass",
20
21
  glow: !0
21
22
  },
22
23
  {
23
- icon: /* @__PURE__ */ h(c, { size: 18 }),
24
- label: D("export.dashboard.metrics.active", "Active"),
25
- value: j.length,
24
+ icon: /* @__PURE__ */ g(l, { size: 18 }),
25
+ label: O("export.dashboard.metrics.active", "Active"),
26
+ value: M.length,
26
27
  treatment: "metric",
27
28
  glow: !1
28
29
  },
29
30
  {
30
- icon: /* @__PURE__ */ h(u, { size: 18 }),
31
- label: D("export.dashboard.metrics.completed", "Completed"),
32
- value: M.length,
31
+ icon: /* @__PURE__ */ g(d, { size: 18 }),
32
+ label: O("export.dashboard.metrics.completed", "Completed"),
33
+ value: N.length,
33
34
  treatment: "metric",
34
35
  glow: !1
35
36
  }
36
- ], P = (e) => {
37
- E && E(w(T, e));
38
- }, F = [
37
+ ], F = (e) => {
38
+ D && D(T(E, e));
39
+ }, I = [
39
40
  {
40
41
  id: "create",
41
- label: D("export.dashboard.nextSteps.create.label", "Create your first export"),
42
- description: D("export.dashboard.nextSteps.create.description", "Pick the data you want and download it as CSV or JSON."),
43
- icon: /* @__PURE__ */ h(m, { size: 16 }),
44
- onClick: () => P("new"),
45
- done: O.length > 0
42
+ label: O("export.dashboard.nextSteps.create.label", "Create your first export"),
43
+ description: O("export.dashboard.nextSteps.create.description", "Pick the data you want and download it as CSV or JSON."),
44
+ icon: /* @__PURE__ */ g(h, { size: 16 }),
45
+ onClick: () => F("new"),
46
+ done: k.length > 0
46
47
  },
47
48
  {
48
49
  id: "template",
49
- label: D("export.dashboard.nextSteps.template.label", "Save a reusable template"),
50
- description: D("export.dashboard.nextSteps.template.description", "Store a common export config so repeat exports are one click."),
51
- icon: /* @__PURE__ */ h(p, { size: 16 }),
52
- onClick: () => P("templates")
50
+ label: O("export.dashboard.nextSteps.template.label", "Save a reusable template"),
51
+ description: O("export.dashboard.nextSteps.template.description", "Store a common export config so repeat exports are one click."),
52
+ icon: /* @__PURE__ */ g(m, { size: 16 }),
53
+ onClick: () => F("templates")
53
54
  },
54
55
  {
55
56
  id: "history",
56
- label: D("export.dashboard.nextSteps.history.label", "Track exports in History"),
57
- description: D("export.dashboard.nextSteps.history.description", "Monitor progress and grab download links for finished jobs."),
58
- icon: /* @__PURE__ */ h(d, { size: 16 }),
59
- onClick: () => P("history"),
60
- done: M.length > 0
57
+ label: O("export.dashboard.nextSteps.history.label", "Track exports in History"),
58
+ description: O("export.dashboard.nextSteps.history.description", "Monitor progress and grab download links for finished jobs."),
59
+ icon: /* @__PURE__ */ g(f, { size: 16 }),
60
+ onClick: () => F("history"),
61
+ done: N.length > 0
61
62
  }
62
63
  ];
63
- return /* @__PURE__ */ g(i, {
64
+ return /* @__PURE__ */ _(i, {
64
65
  showHeader: !1,
65
66
  children: [
66
- /* @__PURE__ */ g("header", {
67
+ /* @__PURE__ */ _("header", {
67
68
  className: "relative overflow-hidden rounded-2xl",
68
- children: [/* @__PURE__ */ h(_, { intensity: "subtle" }), /* @__PURE__ */ g("div", {
69
+ children: [/* @__PURE__ */ g(v, { intensity: "subtle" }), /* @__PURE__ */ _("div", {
69
70
  className: "relative flex items-center gap-3 px-2 py-4 sm:py-5",
70
- children: [/* @__PURE__ */ h("div", {
71
+ children: [/* @__PURE__ */ g("div", {
71
72
  className: "flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary",
72
- children: /* @__PURE__ */ h(f, { size: 24 })
73
- }), /* @__PURE__ */ g("div", {
73
+ children: /* @__PURE__ */ g(p, { size: 24 })
74
+ }), /* @__PURE__ */ _("div", {
74
75
  className: "space-y-1",
75
- children: [/* @__PURE__ */ h("h1", {
76
+ children: [/* @__PURE__ */ g("h1", {
76
77
  className: "text-2xl sm:text-3xl font-bold tracking-tight text-text-primary",
77
- children: /* @__PURE__ */ h(b, { children: D("export.dashboard.title", "Export") })
78
- }), /* @__PURE__ */ h("p", {
78
+ children: /* @__PURE__ */ g(x, { children: O("export.dashboard.title", "Export") })
79
+ }), /* @__PURE__ */ g("p", {
79
80
  className: "text-sm sm:text-base text-text-secondary max-w-2xl",
80
- children: D("export.dashboard.subtitle", "Export your workspace data in multiple formats")
81
+ children: O("export.dashboard.subtitle", "Export your workspace data in multiple formats")
81
82
  })]
82
83
  })]
83
84
  })]
84
85
  }),
85
- /* @__PURE__ */ h(C, {
86
- icon: /* @__PURE__ */ h(f, { size: 16 }),
87
- children: D("export.dashboard.purpose", "Export takes your workspace data — people, projects, files, tags, activity and more — and packages it into downloadable CSV or JSON files. Use it to back up your data, hand it to another tool, run an audit, or take it with you when you leave. Pick what you want, choose a format, and grab the download when it's ready.")
86
+ /* @__PURE__ */ g(w, {
87
+ icon: /* @__PURE__ */ g(p, { size: 16 }),
88
+ children: O("export.dashboard.purpose", "Export takes your workspace data — people, projects, files, tags, activity and more — and packages it into downloadable CSV or JSON files. Use it to back up your data, hand it to another tool, run an audit, or take it with you when you leave. Pick what you want, choose a format, and grab the download when it's ready.")
88
89
  }),
89
- /* @__PURE__ */ h(S, {
90
+ /* @__PURE__ */ g(C, {
90
91
  storageKey: "export-dashboard",
91
- title: D("export.dashboard.nextSteps.title", "Get started"),
92
- steps: F
92
+ title: O("export.dashboard.nextSteps.title", "Get started"),
93
+ steps: I
93
94
  }),
94
- !k && O.length > 0 && /* @__PURE__ */ h("div", {
95
+ !A && k.length > 0 && /* @__PURE__ */ g("div", {
95
96
  className: "grid grid-cols-1 sm:grid-cols-3 gap-4",
96
- children: N.map((e) => /* @__PURE__ */ g(y, {
97
+ children: P.map((e) => /* @__PURE__ */ _(b, {
97
98
  treatment: e.treatment,
98
99
  glow: e.glow,
99
100
  className: "p-5 border-border-seam",
100
- children: [/* @__PURE__ */ g("div", {
101
+ children: [/* @__PURE__ */ _("div", {
101
102
  className: "flex items-center gap-2 text-text-secondary mb-2",
102
- children: [e.icon, /* @__PURE__ */ h("span", {
103
+ children: [e.icon, /* @__PURE__ */ g("span", {
103
104
  className: "text-xs font-medium",
104
105
  children: e.label
105
106
  })]
106
- }), /* @__PURE__ */ h("p", {
107
+ }), /* @__PURE__ */ g("p", {
107
108
  className: "text-3xl font-bold tabular-nums text-text-primary",
108
109
  children: e.value.toLocaleString()
109
110
  })]
110
111
  }, e.label))
111
112
  }),
112
- /* @__PURE__ */ h("div", {
113
+ /* @__PURE__ */ g("div", {
113
114
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
114
115
  "data-tour": "export-dashboard-quick-actions",
115
116
  children: [
116
117
  {
117
- icon: /* @__PURE__ */ h(m, { size: 20 }),
118
- label: D("export.dashboard.actions.newExport.label", "New Export"),
119
- description: D("export.dashboard.actions.newExport.description", "Create a new data export"),
118
+ icon: /* @__PURE__ */ g(h, { size: 20 }),
119
+ label: O("export.dashboard.actions.newExport.label", "New Export"),
120
+ description: O("export.dashboard.actions.newExport.description", "Create a new data export"),
120
121
  path: "new",
121
122
  color: "bg-action-primary-bg/10 text-primary"
122
123
  },
123
124
  {
124
- icon: /* @__PURE__ */ h(d, { size: 20 }),
125
- label: D("export.dashboard.actions.history.label", "History"),
126
- description: D("export.dashboard.actions.history.description", "View past exports"),
125
+ icon: /* @__PURE__ */ g(f, { size: 20 }),
126
+ label: O("export.dashboard.actions.history.label", "History"),
127
+ description: O("export.dashboard.actions.history.description", "View past exports"),
127
128
  path: "history",
128
129
  color: "bg-status-info-bg-subtle text-status-info-text"
129
130
  },
130
131
  {
131
- icon: /* @__PURE__ */ h(p, { size: 20 }),
132
- label: D("export.dashboard.actions.templates.label", "Templates"),
133
- description: D("export.dashboard.actions.templates.description", "Reusable export configs"),
132
+ icon: /* @__PURE__ */ g(m, { size: 20 }),
133
+ label: O("export.dashboard.actions.templates.label", "Templates"),
134
+ description: O("export.dashboard.actions.templates.description", "Reusable export configs"),
134
135
  path: "templates",
135
136
  color: "bg-accent-purple-subtle text-accent-purple"
136
137
  },
137
138
  {
138
- icon: /* @__PURE__ */ h(c, { size: 20 }),
139
- label: D("export.dashboard.actions.activeJobs.label", "Active Jobs"),
140
- description: D("export.dashboard.actions.activeJobs.description", "{{count}} running", { count: j.length }),
139
+ icon: /* @__PURE__ */ g(l, { size: 20 }),
140
+ label: O("export.dashboard.actions.activeJobs.label", "Active Jobs"),
141
+ description: O("export.dashboard.actions.activeJobs.description", "{{count}} running", { count: M.length }),
141
142
  path: "history?status=RUNNING",
142
143
  color: "bg-status-success-bg-subtle text-status-success-text"
143
144
  }
144
- ].map((e) => /* @__PURE__ */ g("button", {
145
+ ].map((e) => /* @__PURE__ */ _("button", {
145
146
  type: "button",
146
- onClick: () => P(e.path),
147
+ onClick: () => F(e.path),
147
148
  className: s("group relative overflow-hidden border border-border-seam rounded-xl p-5", "bg-bg-surface shadow-[var(--shadow-pop)]", "hover:border-primary/40 transition-colors duration-200", "text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"),
148
149
  children: [
149
- /* @__PURE__ */ h("div", {
150
+ /* @__PURE__ */ g("div", {
150
151
  className: s("p-2.5 rounded-lg w-fit mb-3", e.color),
151
152
  children: e.icon
152
153
  }),
153
- /* @__PURE__ */ h("h3", {
154
+ /* @__PURE__ */ g("h3", {
154
155
  className: "font-semibold text-text-primary mb-1",
155
156
  children: e.label
156
157
  }),
157
- /* @__PURE__ */ h("p", {
158
+ /* @__PURE__ */ g("p", {
158
159
  className: "text-sm text-text-secondary",
159
160
  children: e.description
160
161
  }),
161
- /* @__PURE__ */ h(l, {
162
+ /* @__PURE__ */ g(u, {
162
163
  size: 16,
163
164
  className: "absolute top-5 right-5 text-text-secondary opacity-0 group-hover:opacity-100 transition-opacity"
164
165
  })
165
166
  ]
166
167
  }, e.path + e.label))
167
168
  }),
168
- j.length > 0 && /* @__PURE__ */ g(v, {
169
+ M.length > 0 && /* @__PURE__ */ _(y, {
169
170
  "data-tour": "export-dashboard-active-section",
170
171
  className: "p-5 sm:p-6",
171
- children: [/* @__PURE__ */ g("div", {
172
+ children: [/* @__PURE__ */ _("div", {
172
173
  className: "mb-4",
173
- children: [/* @__PURE__ */ h("h2", {
174
+ children: [/* @__PURE__ */ g("h2", {
174
175
  className: "text-lg font-semibold text-text-primary",
175
- children: D("export.dashboard.active.title", "Active Exports")
176
- }), /* @__PURE__ */ h("p", {
176
+ children: O("export.dashboard.active.title", "Active Exports")
177
+ }), /* @__PURE__ */ g("p", {
177
178
  className: "text-sm text-text-secondary",
178
- children: D("export.dashboard.active.description", "Currently running export jobs")
179
+ children: O("export.dashboard.active.description", "Currently running export jobs")
179
180
  })]
180
- }), /* @__PURE__ */ h("div", {
181
+ }), /* @__PURE__ */ g("div", {
181
182
  className: "space-y-3",
182
- children: j.map((e) => /* @__PURE__ */ g("button", {
183
+ children: M.map((e) => /* @__PURE__ */ _("button", {
183
184
  type: "button",
184
- onClick: () => P(e.id),
185
+ onClick: () => F(e.id),
185
186
  className: s("w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface/70", "hover:border-primary/40 transition-colors duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"),
186
- children: [/* @__PURE__ */ g("div", {
187
+ children: [/* @__PURE__ */ _("div", {
187
188
  className: "flex items-center justify-between mb-2",
188
- children: [/* @__PURE__ */ h("h4", {
189
+ children: [/* @__PURE__ */ g("h4", {
189
190
  className: "font-semibold text-text-primary",
190
191
  children: e.name
191
- }), /* @__PURE__ */ h(n, { status: e.status })]
192
- }), /* @__PURE__ */ h(r, {
192
+ }), /* @__PURE__ */ g(n, { status: e.status })]
193
+ }), /* @__PURE__ */ g(r, {
193
194
  progress: e.progress,
194
195
  size: "sm"
195
196
  })]
196
197
  }, e.id))
197
198
  })]
198
199
  }),
199
- /* @__PURE__ */ h(a, {
200
+ /* @__PURE__ */ g(a, {
200
201
  "data-tour": "export-dashboard-recent-section",
201
- title: D("export.dashboard.recent.title", "Recent Exports"),
202
- description: D("export.dashboard.recent.description", "Your latest export jobs"),
203
- actions: A.length > 0 ? /* @__PURE__ */ h("button", {
202
+ title: O("export.dashboard.recent.title", "Recent Exports"),
203
+ description: O("export.dashboard.recent.description", "Your latest export jobs"),
204
+ actions: j.length > 0 ? /* @__PURE__ */ g("button", {
204
205
  type: "button",
205
- onClick: () => P("history"),
206
+ onClick: () => F("history"),
206
207
  className: "text-sm text-primary hover:underline font-medium",
207
- children: D("export.dashboard.recent.actions.viewAll", "View All")
208
+ children: O("export.dashboard.recent.actions.viewAll", "View All")
208
209
  }) : void 0,
209
- children: k ? /* @__PURE__ */ h("div", {
210
+ children: A ? /* @__PURE__ */ g("div", {
210
211
  className: "space-y-3",
211
212
  children: [...[
212
213
  ,
213
214
  ,
214
215
  ,
215
- ]].map((e, t) => /* @__PURE__ */ g("div", {
216
+ ]].map((e, t) => /* @__PURE__ */ _("div", {
216
217
  className: "border border-border-seam rounded-xl p-4",
217
- children: [/* @__PURE__ */ g("div", {
218
+ children: [/* @__PURE__ */ _("div", {
218
219
  className: "flex items-center justify-between mb-2",
219
- children: [/* @__PURE__ */ h("div", { className: "h-4 w-48 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ h("div", { className: "h-5 w-20 bg-bg-sunken rounded-full animate-vc-shimmer" })]
220
- }), /* @__PURE__ */ h("div", { className: "h-3 w-32 bg-bg-sunken rounded mt-2 animate-vc-shimmer" })]
220
+ children: [/* @__PURE__ */ g(c, { className: "h-4 w-48 bg-bg-sunken rounded animate-vc-shimmer" }), /* @__PURE__ */ g(c, { className: "h-5 w-20 bg-bg-sunken rounded-full animate-vc-shimmer" })]
221
+ }), /* @__PURE__ */ g(c, { className: "h-3 w-32 bg-bg-sunken rounded mt-2 animate-vc-shimmer" })]
221
222
  }, t))
222
- }) : A.length > 0 ? /* @__PURE__ */ h("div", {
223
+ }) : j.length > 0 ? /* @__PURE__ */ g("div", {
223
224
  className: "space-y-3",
224
- children: A.map((e, t) => /* @__PURE__ */ h("button", {
225
+ children: j.map((e, t) => /* @__PURE__ */ g("button", {
225
226
  type: "button",
226
- onClick: () => P(e.id),
227
+ onClick: () => F(e.id),
227
228
  className: s("w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface", "hover:border-primary/40 transition-colors duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40", "animate-in fade-in-0"),
228
229
  style: { animationDelay: `${t * 50}ms` },
229
- children: /* @__PURE__ */ g("div", {
230
+ children: /* @__PURE__ */ _("div", {
230
231
  className: "flex items-start sm:items-center justify-between gap-3",
231
- children: [/* @__PURE__ */ g("div", {
232
+ children: [/* @__PURE__ */ _("div", {
232
233
  className: "flex-1 min-w-0",
233
- children: [/* @__PURE__ */ h("h4", {
234
+ children: [/* @__PURE__ */ g("h4", {
234
235
  className: "font-semibold text-text-primary truncate",
235
236
  children: e.name
236
- }), /* @__PURE__ */ g("p", {
237
+ }), /* @__PURE__ */ _("p", {
237
238
  className: "text-sm text-text-secondary mt-1 line-clamp-2",
238
239
  children: [
239
240
  e.entityTypes.join(", "),
240
241
  " · ",
241
242
  e.format,
242
- e.totalEntities != null && ` · ${D("export.dashboard.recent.entitiesCount", "{{count}} entities", { count: e.totalEntities.toLocaleString() })}`
243
+ e.totalEntities != null && ` · ${O("export.dashboard.recent.entitiesCount", "{{count}} entities", { count: e.totalEntities.toLocaleString() })}`
243
244
  ]
244
245
  })]
245
- }), /* @__PURE__ */ g("div", {
246
+ }), /* @__PURE__ */ _("div", {
246
247
  className: "flex items-center gap-2 flex-shrink-0",
247
- children: [/* @__PURE__ */ h(n, { status: e.status }), /* @__PURE__ */ h(l, {
248
+ children: [/* @__PURE__ */ g(n, { status: e.status }), /* @__PURE__ */ g(u, {
248
249
  size: 16,
249
250
  className: "text-text-secondary hidden sm:block"
250
251
  })]
251
252
  })]
252
253
  })
253
254
  }, e.id))
254
- }) : /* @__PURE__ */ h(x, {
255
+ }) : /* @__PURE__ */ g(S, {
255
256
  illustration: "empty-files",
256
- title: D("export.dashboard.empty.title", "No exports yet"),
257
- description: D("export.dashboard.empty.description", "Create your first export to start downloading your workspace data."),
258
- action: /* @__PURE__ */ g("button", {
257
+ title: O("export.dashboard.empty.title", "No exports yet"),
258
+ description: O("export.dashboard.empty.description", "Create your first export to start downloading your workspace data."),
259
+ action: /* @__PURE__ */ _("button", {
259
260
  type: "button",
260
- onClick: () => P("new"),
261
+ onClick: () => F("new"),
261
262
  className: "inline-flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium",
262
- children: [/* @__PURE__ */ h(m, { size: 16 }), D("export.dashboard.empty.actions.createFirst", "Create First Export")]
263
+ children: [/* @__PURE__ */ g(h, { size: 16 }), O("export.dashboard.empty.actions.createFirst", "Create First Export")]
263
264
  }),
264
265
  size: "panel"
265
266
  })
@@ -267,6 +268,6 @@ function T() {
267
268
  ]
268
269
  });
269
270
  }
270
- export { T as ExportDashboardPage };
271
+ export { E as ExportDashboardPage };
271
272
 
272
273
  //# sourceMappingURL=ExportDashboardPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportDashboardPage.js","names":["joinPath","base","path","ExportDashboardPage","useExport","tr","useTr","jobs","useExportJobs","recentJobs","activeJobs","j","completedJobs","metrics","Download","Activity","CheckCircle2","handleNavigate","navigate","basePath","nextSteps","Plus","FileBox","Clock","PageLayout","AuroraBackground","GradientText","PagePurpose","NextSteps","isLoading","GlassCard","m","action","cn","ArrowRight","EmphasisPanel","job","ExportStatusBadge","ExportProgressBar","PageSection","i","index","IllustratedEmptyState"],"sources":["../../../src/export/pages/ExportDashboardPage.tsx"],"sourcesContent":["import {\n Plus,\n Download,\n Clock,\n FileBox,\n ArrowRight,\n Activity,\n CheckCircle2,\n} from \"lucide-react\";\nimport {\n GlassCard,\n EmphasisPanel,\n AuroraBackground,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n NextSteps,\n type NextStep,\n} from \"@burdenoff/fe-libs/ui\";\nimport { useExport } from \"../providers/ExportProvider\";\nimport { useExportJobs } from \"../hooks/useExportQueries\";\nimport { ExportStatusBadge } from \"../components/ExportStatusBadge\";\nimport { ExportProgressBar } from \"../components/ExportProgressBar\";\nimport { PageLayout, PageSection } from \"../components/PageLayout\";\nimport { useTr } from \"../hooks/useTr\";\nimport { cn } from \"../utils/cn\";\n\n/**\n * Helper to join paths correctly, avoiding double slashes\n */\nconst joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith(\"/\") ? path : `/${path}`;\n return cleanBase + cleanPath;\n};\n\n/**\n * Export Dashboard Page\n * Overview with recent exports, quick actions, and status summary\n */\nexport function ExportDashboardPage() {\n const { basePath = \"/\", navigate } = useExport();\n const tr = useTr();\n const { data: jobs, isLoading } = useExportJobs({});\n\n const recentJobs = jobs.slice(0, 5);\n const activeJobs = jobs.filter(\n (j) => j.status === \"RUNNING\" || j.status === \"QUEUED\",\n );\n const completedJobs = jobs.filter((j) => j.status === \"COMPLETED\");\n\n const metrics = [\n {\n icon: <Download size={18} />,\n label: tr(\"export.dashboard.metrics.total\", \"Total Exports\"),\n value: jobs.length,\n treatment: \"glass\" as const,\n glow: true,\n },\n {\n icon: <Activity size={18} />,\n label: tr(\"export.dashboard.metrics.active\", \"Active\"),\n value: activeJobs.length,\n treatment: \"metric\" as const,\n glow: false,\n },\n {\n icon: <CheckCircle2 size={18} />,\n label: tr(\"export.dashboard.metrics.completed\", \"Completed\"),\n value: completedJobs.length,\n treatment: \"metric\" as const,\n glow: false,\n },\n ];\n\n const handleNavigate = (path: string) => {\n if (!navigate) return;\n navigate(joinPath(basePath, path));\n };\n\n // New-user orientation: 2–4 concrete next actions wired to real navigation.\n const nextSteps: NextStep[] = [\n {\n id: \"create\",\n label: tr(\n \"export.dashboard.nextSteps.create.label\",\n \"Create your first export\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.create.description\",\n \"Pick the data you want and download it as CSV or JSON.\",\n ),\n icon: <Plus size={16} />,\n onClick: () => handleNavigate(\"new\"),\n done: jobs.length > 0,\n },\n {\n id: \"template\",\n label: tr(\n \"export.dashboard.nextSteps.template.label\",\n \"Save a reusable template\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.template.description\",\n \"Store a common export config so repeat exports are one click.\",\n ),\n icon: <FileBox size={16} />,\n onClick: () => handleNavigate(\"templates\"),\n },\n {\n id: \"history\",\n label: tr(\n \"export.dashboard.nextSteps.history.label\",\n \"Track exports in History\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.history.description\",\n \"Monitor progress and grab download links for finished jobs.\",\n ),\n icon: <Clock size={16} />,\n onClick: () => handleNavigate(\"history\"),\n done: completedJobs.length > 0,\n },\n ];\n\n return (\n <PageLayout showHeader={false}>\n {/* Hero header with living-glass aurora backdrop (primary page only) */}\n <header className=\"relative overflow-hidden rounded-2xl\">\n <AuroraBackground intensity=\"subtle\" />\n <div className=\"relative flex items-center gap-3 px-2 py-4 sm:py-5\">\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n <Download size={24} />\n </div>\n <div className=\"space-y-1\">\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n <GradientText>\n {tr(\"export.dashboard.title\", \"Export\")}\n </GradientText>\n </h1>\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">\n {tr(\n \"export.dashboard.subtitle\",\n \"Export your workspace data in multiple formats\",\n )}\n </p>\n </div>\n </div>\n </header>\n\n {/* Page purpose — plain-language story of what Export is for */}\n <PagePurpose icon={<Download size={16} />}>\n {tr(\n \"export.dashboard.purpose\",\n \"Export takes your workspace data — people, projects, files, tags, activity and more — and packages it into downloadable CSV or JSON files. Use it to back up your data, hand it to another tool, run an audit, or take it with you when you leave. Pick what you want, choose a format, and grab the download when it's ready.\",\n )}\n </PagePurpose>\n\n {/* New-user next steps — dismissable, recommends concrete actions */}\n <NextSteps\n storageKey=\"export-dashboard\"\n title={tr(\"export.dashboard.nextSteps.title\", \"Get started\")}\n steps={nextSteps}\n />\n\n {/* Metric strip */}\n {!isLoading && jobs.length > 0 && (\n <div className=\"grid grid-cols-1 sm:grid-cols-3 gap-4\">\n {metrics.map((m) => (\n <GlassCard\n key={m.label}\n treatment={m.treatment}\n glow={m.glow}\n className=\"p-5 border-border-seam\"\n >\n <div className=\"flex items-center gap-2 text-text-secondary mb-2\">\n {m.icon}\n <span className=\"text-xs font-medium\">{m.label}</span>\n </div>\n <p className=\"text-3xl font-bold tabular-nums text-text-primary\">\n {m.value.toLocaleString()}\n </p>\n </GlassCard>\n ))}\n </div>\n )}\n\n {/* Quick Actions */}\n <div\n className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4\"\n data-tour=\"export-dashboard-quick-actions\"\n >\n {[\n {\n icon: <Plus size={20} />,\n label: tr(\"export.dashboard.actions.newExport.label\", \"New Export\"),\n description: tr(\n \"export.dashboard.actions.newExport.description\",\n \"Create a new data export\",\n ),\n path: \"new\",\n color: \"bg-action-primary-bg/10 text-primary\",\n },\n {\n icon: <Clock size={20} />,\n label: tr(\"export.dashboard.actions.history.label\", \"History\"),\n description: tr(\n \"export.dashboard.actions.history.description\",\n \"View past exports\",\n ),\n path: \"history\",\n color: \"bg-status-info-bg-subtle text-status-info-text\",\n },\n {\n icon: <FileBox size={20} />,\n label: tr(\"export.dashboard.actions.templates.label\", \"Templates\"),\n description: tr(\n \"export.dashboard.actions.templates.description\",\n \"Reusable export configs\",\n ),\n path: \"templates\",\n color: \"bg-accent-purple-subtle text-accent-purple\",\n },\n {\n icon: <Activity size={20} />,\n label: tr(\n \"export.dashboard.actions.activeJobs.label\",\n \"Active Jobs\",\n ),\n description: tr(\n \"export.dashboard.actions.activeJobs.description\",\n \"{{count}} running\",\n { count: activeJobs.length },\n ),\n path: \"history?status=RUNNING\",\n color: \"bg-status-success-bg-subtle text-status-success-text\",\n },\n ].map((action) => (\n <button\n type=\"button\"\n key={action.path + action.label}\n onClick={() => handleNavigate(action.path)}\n className={cn(\n \"group relative overflow-hidden border border-border-seam rounded-xl p-5\",\n \"bg-bg-surface shadow-[var(--shadow-pop)]\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n )}\n >\n <div className={cn(\"p-2.5 rounded-lg w-fit mb-3\", action.color)}>\n {action.icon}\n </div>\n <h3 className=\"font-semibold text-text-primary mb-1\">\n {action.label}\n </h3>\n <p className=\"text-sm text-text-secondary\">{action.description}</p>\n <ArrowRight\n size={16}\n className=\"absolute top-5 right-5 text-text-secondary opacity-0 group-hover:opacity-100 transition-opacity\"\n />\n </button>\n ))}\n </div>\n\n {/* Active Exports — the single emphasised zone on this page */}\n {activeJobs.length > 0 && (\n <EmphasisPanel\n data-tour=\"export-dashboard-active-section\"\n className=\"p-5 sm:p-6\"\n >\n <div className=\"mb-4\">\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.dashboard.active.title\", \"Active Exports\")}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr(\n \"export.dashboard.active.description\",\n \"Currently running export jobs\",\n )}\n </p>\n </div>\n <div className=\"space-y-3\">\n {activeJobs.map((job) => (\n <button\n type=\"button\"\n key={job.id}\n onClick={() => handleNavigate(job.id)}\n className={cn(\n \"w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface/70\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n )}\n >\n <div className=\"flex items-center justify-between mb-2\">\n <h4 className=\"font-semibold text-text-primary\">\n {job.name}\n </h4>\n <ExportStatusBadge status={job.status} />\n </div>\n <ExportProgressBar progress={job.progress} size=\"sm\" />\n </button>\n ))}\n </div>\n </EmphasisPanel>\n )}\n\n {/* Recent Exports */}\n <PageSection\n data-tour=\"export-dashboard-recent-section\"\n title={tr(\"export.dashboard.recent.title\", \"Recent Exports\")}\n description={tr(\n \"export.dashboard.recent.description\",\n \"Your latest export jobs\",\n )}\n actions={\n recentJobs.length > 0 ? (\n <button\n type=\"button\"\n onClick={() => handleNavigate(\"history\")}\n className=\"text-sm text-primary hover:underline font-medium\"\n >\n {tr(\"export.dashboard.recent.actions.viewAll\", \"View All\")}\n </button>\n ) : undefined\n }\n >\n {isLoading ? (\n <div className=\"space-y-3\">\n {[...Array(3)].map((_, i) => (\n <div key={i} className=\"border border-border-seam rounded-xl p-4\">\n <div className=\"flex items-center justify-between mb-2\">\n <div className=\"h-4 w-48 bg-bg-sunken rounded animate-vc-shimmer\" />\n <div className=\"h-5 w-20 bg-bg-sunken rounded-full animate-vc-shimmer\" />\n </div>\n <div className=\"h-3 w-32 bg-bg-sunken rounded mt-2 animate-vc-shimmer\" />\n </div>\n ))}\n </div>\n ) : recentJobs.length > 0 ? (\n <div className=\"space-y-3\">\n {recentJobs.map((job, index) => (\n <button\n type=\"button\"\n key={job.id}\n onClick={() => handleNavigate(job.id)}\n className={cn(\n \"w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n \"animate-in fade-in-0\",\n )}\n style={{ animationDelay: `${index * 50}ms` }}\n >\n <div className=\"flex items-start sm:items-center justify-between gap-3\">\n <div className=\"flex-1 min-w-0\">\n <h4 className=\"font-semibold text-text-primary truncate\">\n {job.name}\n </h4>\n <p className=\"text-sm text-text-secondary mt-1 line-clamp-2\">\n {job.entityTypes.join(\", \")} &middot; {job.format}\n {job.totalEntities != null &&\n ` · ${tr(\n \"export.dashboard.recent.entitiesCount\",\n \"{{count}} entities\",\n { count: job.totalEntities.toLocaleString() },\n )}`}\n </p>\n </div>\n <div className=\"flex items-center gap-2 flex-shrink-0\">\n <ExportStatusBadge status={job.status} />\n <ArrowRight\n size={16}\n className=\"text-text-secondary hidden sm:block\"\n />\n </div>\n </div>\n </button>\n ))}\n </div>\n ) : (\n <IllustratedEmptyState\n illustration=\"empty-files\"\n title={tr(\"export.dashboard.empty.title\", \"No exports yet\")}\n description={tr(\n \"export.dashboard.empty.description\",\n \"Create your first export to start downloading your workspace data.\",\n )}\n action={\n <button\n type=\"button\"\n onClick={() => handleNavigate(\"new\")}\n className=\"inline-flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium\"\n >\n <Plus size={16} />\n {tr(\n \"export.dashboard.empty.actions.createFirst\",\n \"Create First Export\",\n )}\n </button>\n }\n size=\"panel\"\n />\n )}\n </PageSection>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;AA8BA,IAAMA,KAAY,GAAc,OACZC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,MACzCC,EAAK,WAAW,GAAG,IAAIA,IAAO,IAAIA;AAQtD,SAAgBC,IAAsB;CACpC,IAAM,EAAE,cAAW,KAAK,gBAAaC,EAAU,GACzCC,IAAKC,EAAM,GACX,EAAE,MAAMC,GAAM,iBAAcC,EAAc,CAAC,CAAC,GAE5CC,IAAaF,EAAK,MAAM,GAAG,CAAC,GAC5BG,IAAaH,EAAK,QACrB,MAAMI,EAAE,WAAW,aAAaA,EAAE,WAAW,QAChD,GACMC,IAAgBL,EAAK,QAAQ,MAAMI,EAAE,WAAW,WAAW,GAE3DE,IAAU;EACd;GACE,MAAM,kBAACC,GAAD,EAAU,MAAM,GAAK,CAAA;GAC3B,OAAOT,EAAG,kCAAkC,eAAe;GAC3D,OAAOE,EAAK;GACZ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AAC,MAAD;SAAI,WAAU;SACX,UAAAL,EAAI;QACH,CAAA,GACJ,kBAAC,KAAD;SAAG,WAAU;SAAb,UAAA;UACGA,EAAI,YAAY,KAAK,IAAI;UAAE;UAAWA,EAAI;UAC1CA,EAAI,iBAAiB,QACpB,MAAM/B,EACJ,yCACA,sBACA,EAAE,OAAO+B,EAAI,cAAc,eAAe,EAAE,CAC9C;SACD;QACA,CAAA,CAAA;OACL,CAAA,GAAA,kBAAC,OAAD;QAAK,WAAU;QAAf,UAAA,CACE,kBAACC,GAAD,EAAmB,QAAQD,EAAI,OAAS,CAAA,GACxC,kBAACF,GAAD;SACE,MAAM;SACN,WAAU;QACX,CAAA,CACE;OACF,CAAA,CAAA;;KACC,GAjCDE,EAAI,EAiCH,CACT;IACE,CAAA,IAEL,kBAACM,GAAD;KACE,cAAa;KACb,OAAOrC,EAAG,gCAAgC,gBAAgB;KAC1D,aAAaA,EACX,sCACA,oEACF;KACA,QACE,kBAAC,UAAD;MACE,MAAK;MACL,eAAeY,EAAe,KAAK;MACnC,WAAU;MAHZ,UAAA,CAKE,kBAACI,GAAD,EAAM,MAAM,GAAK,CAAA,GAChBhB,EACC,8CACA,qBACF,CACM;;KAEV,MAAK;IACN,CAAA;GAEQ,CAAA;EACH;;AAEhB"}
1
+ {"version":3,"file":"ExportDashboardPage.js","names":["joinPath","base","path","ExportDashboardPage","useExport","tr","useTr","jobs","useExportJobs","recentJobs","activeJobs","j","completedJobs","metrics","Download","Activity","CheckCircle2","handleNavigate","navigate","basePath","nextSteps","Plus","FileBox","Clock","PageLayout","AuroraBackground","GradientText","PagePurpose","NextSteps","isLoading","GlassCard","m","action","cn","ArrowRight","EmphasisPanel","job","ExportStatusBadge","ExportProgressBar","PageSection","SkeletonBlock","i","index","IllustratedEmptyState"],"sources":["../../../src/export/pages/ExportDashboardPage.tsx"],"sourcesContent":["import {\n Plus,\n Download,\n Clock,\n FileBox,\n ArrowRight,\n Activity,\n CheckCircle2,\n} from \"lucide-react\";\nimport {\n GlassCard,\n EmphasisPanel,\n AuroraBackground,\n GradientText,\n IllustratedEmptyState,\n PagePurpose,\n NextSteps,\n type NextStep,\n} from \"@burdenoff/fe-libs/ui\";\nimport { useExport } from \"../providers/ExportProvider\";\nimport { useExportJobs } from \"../hooks/useExportQueries\";\nimport { ExportStatusBadge } from \"../components/ExportStatusBadge\";\nimport { ExportProgressBar } from \"../components/ExportProgressBar\";\nimport { PageLayout, PageSection } from \"../components/PageLayout\";\nimport { useTr } from \"../hooks/useTr\";\nimport { cn } from \"../utils/cn\";\nimport { SkeletonBlock } from \"../components/loadingSystem\";\n\n/**\n * Helper to join paths correctly, avoiding double slashes\n */\nconst joinPath = (base: string, path: string): string => {\n const cleanBase = base.endsWith(\"/\") ? base.slice(0, -1) : base;\n const cleanPath = path.startsWith(\"/\") ? path : `/${path}`;\n return cleanBase + cleanPath;\n};\n\n/**\n * Export Dashboard Page\n * Overview with recent exports, quick actions, and status summary\n */\nexport function ExportDashboardPage() {\n const { basePath = \"/\", navigate } = useExport();\n const tr = useTr();\n const { data: jobs, isLoading } = useExportJobs({});\n\n const recentJobs = jobs.slice(0, 5);\n const activeJobs = jobs.filter(\n (j) => j.status === \"RUNNING\" || j.status === \"QUEUED\",\n );\n const completedJobs = jobs.filter((j) => j.status === \"COMPLETED\");\n\n const metrics = [\n {\n icon: <Download size={18} />,\n label: tr(\"export.dashboard.metrics.total\", \"Total Exports\"),\n value: jobs.length,\n treatment: \"glass\" as const,\n glow: true,\n },\n {\n icon: <Activity size={18} />,\n label: tr(\"export.dashboard.metrics.active\", \"Active\"),\n value: activeJobs.length,\n treatment: \"metric\" as const,\n glow: false,\n },\n {\n icon: <CheckCircle2 size={18} />,\n label: tr(\"export.dashboard.metrics.completed\", \"Completed\"),\n value: completedJobs.length,\n treatment: \"metric\" as const,\n glow: false,\n },\n ];\n\n const handleNavigate = (path: string) => {\n if (!navigate) return;\n navigate(joinPath(basePath, path));\n };\n\n // New-user orientation: 2–4 concrete next actions wired to real navigation.\n const nextSteps: NextStep[] = [\n {\n id: \"create\",\n label: tr(\n \"export.dashboard.nextSteps.create.label\",\n \"Create your first export\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.create.description\",\n \"Pick the data you want and download it as CSV or JSON.\",\n ),\n icon: <Plus size={16} />,\n onClick: () => handleNavigate(\"new\"),\n done: jobs.length > 0,\n },\n {\n id: \"template\",\n label: tr(\n \"export.dashboard.nextSteps.template.label\",\n \"Save a reusable template\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.template.description\",\n \"Store a common export config so repeat exports are one click.\",\n ),\n icon: <FileBox size={16} />,\n onClick: () => handleNavigate(\"templates\"),\n },\n {\n id: \"history\",\n label: tr(\n \"export.dashboard.nextSteps.history.label\",\n \"Track exports in History\",\n ),\n description: tr(\n \"export.dashboard.nextSteps.history.description\",\n \"Monitor progress and grab download links for finished jobs.\",\n ),\n icon: <Clock size={16} />,\n onClick: () => handleNavigate(\"history\"),\n done: completedJobs.length > 0,\n },\n ];\n\n return (\n <PageLayout showHeader={false}>\n {/* Hero header with living-glass aurora backdrop (primary page only) */}\n <header className=\"relative overflow-hidden rounded-2xl\">\n <AuroraBackground intensity=\"subtle\" />\n <div className=\"relative flex items-center gap-3 px-2 py-4 sm:py-5\">\n <div className=\"flex-shrink-0 p-2.5 rounded-xl bg-action-primary-bg/10 text-primary\">\n <Download size={24} />\n </div>\n <div className=\"space-y-1\">\n <h1 className=\"text-2xl sm:text-3xl font-bold tracking-tight text-text-primary\">\n <GradientText>\n {tr(\"export.dashboard.title\", \"Export\")}\n </GradientText>\n </h1>\n <p className=\"text-sm sm:text-base text-text-secondary max-w-2xl\">\n {tr(\n \"export.dashboard.subtitle\",\n \"Export your workspace data in multiple formats\",\n )}\n </p>\n </div>\n </div>\n </header>\n\n {/* Page purpose — plain-language story of what Export is for */}\n <PagePurpose icon={<Download size={16} />}>\n {tr(\n \"export.dashboard.purpose\",\n \"Export takes your workspace data — people, projects, files, tags, activity and more — and packages it into downloadable CSV or JSON files. Use it to back up your data, hand it to another tool, run an audit, or take it with you when you leave. Pick what you want, choose a format, and grab the download when it's ready.\",\n )}\n </PagePurpose>\n\n {/* New-user next steps — dismissable, recommends concrete actions */}\n <NextSteps\n storageKey=\"export-dashboard\"\n title={tr(\"export.dashboard.nextSteps.title\", \"Get started\")}\n steps={nextSteps}\n />\n\n {/* Metric strip */}\n {!isLoading && jobs.length > 0 && (\n <div className=\"grid grid-cols-1 sm:grid-cols-3 gap-4\">\n {metrics.map((m) => (\n <GlassCard\n key={m.label}\n treatment={m.treatment}\n glow={m.glow}\n className=\"p-5 border-border-seam\"\n >\n <div className=\"flex items-center gap-2 text-text-secondary mb-2\">\n {m.icon}\n <span className=\"text-xs font-medium\">{m.label}</span>\n </div>\n <p className=\"text-3xl font-bold tabular-nums text-text-primary\">\n {m.value.toLocaleString()}\n </p>\n </GlassCard>\n ))}\n </div>\n )}\n\n {/* Quick Actions */}\n <div\n className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4\"\n data-tour=\"export-dashboard-quick-actions\"\n >\n {[\n {\n icon: <Plus size={20} />,\n label: tr(\"export.dashboard.actions.newExport.label\", \"New Export\"),\n description: tr(\n \"export.dashboard.actions.newExport.description\",\n \"Create a new data export\",\n ),\n path: \"new\",\n color: \"bg-action-primary-bg/10 text-primary\",\n },\n {\n icon: <Clock size={20} />,\n label: tr(\"export.dashboard.actions.history.label\", \"History\"),\n description: tr(\n \"export.dashboard.actions.history.description\",\n \"View past exports\",\n ),\n path: \"history\",\n color: \"bg-status-info-bg-subtle text-status-info-text\",\n },\n {\n icon: <FileBox size={20} />,\n label: tr(\"export.dashboard.actions.templates.label\", \"Templates\"),\n description: tr(\n \"export.dashboard.actions.templates.description\",\n \"Reusable export configs\",\n ),\n path: \"templates\",\n color: \"bg-accent-purple-subtle text-accent-purple\",\n },\n {\n icon: <Activity size={20} />,\n label: tr(\n \"export.dashboard.actions.activeJobs.label\",\n \"Active Jobs\",\n ),\n description: tr(\n \"export.dashboard.actions.activeJobs.description\",\n \"{{count}} running\",\n { count: activeJobs.length },\n ),\n path: \"history?status=RUNNING\",\n color: \"bg-status-success-bg-subtle text-status-success-text\",\n },\n ].map((action) => (\n <button\n type=\"button\"\n key={action.path + action.label}\n onClick={() => handleNavigate(action.path)}\n className={cn(\n \"group relative overflow-hidden border border-border-seam rounded-xl p-5\",\n \"bg-bg-surface shadow-[var(--shadow-pop)]\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n )}\n >\n <div className={cn(\"p-2.5 rounded-lg w-fit mb-3\", action.color)}>\n {action.icon}\n </div>\n <h3 className=\"font-semibold text-text-primary mb-1\">\n {action.label}\n </h3>\n <p className=\"text-sm text-text-secondary\">{action.description}</p>\n <ArrowRight\n size={16}\n className=\"absolute top-5 right-5 text-text-secondary opacity-0 group-hover:opacity-100 transition-opacity\"\n />\n </button>\n ))}\n </div>\n\n {/* Active Exports — the single emphasised zone on this page */}\n {activeJobs.length > 0 && (\n <EmphasisPanel\n data-tour=\"export-dashboard-active-section\"\n className=\"p-5 sm:p-6\"\n >\n <div className=\"mb-4\">\n <h2 className=\"text-lg font-semibold text-text-primary\">\n {tr(\"export.dashboard.active.title\", \"Active Exports\")}\n </h2>\n <p className=\"text-sm text-text-secondary\">\n {tr(\n \"export.dashboard.active.description\",\n \"Currently running export jobs\",\n )}\n </p>\n </div>\n <div className=\"space-y-3\">\n {activeJobs.map((job) => (\n <button\n type=\"button\"\n key={job.id}\n onClick={() => handleNavigate(job.id)}\n className={cn(\n \"w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface/70\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n )}\n >\n <div className=\"flex items-center justify-between mb-2\">\n <h4 className=\"font-semibold text-text-primary\">\n {job.name}\n </h4>\n <ExportStatusBadge status={job.status} />\n </div>\n <ExportProgressBar progress={job.progress} size=\"sm\" />\n </button>\n ))}\n </div>\n </EmphasisPanel>\n )}\n\n {/* Recent Exports */}\n <PageSection\n data-tour=\"export-dashboard-recent-section\"\n title={tr(\"export.dashboard.recent.title\", \"Recent Exports\")}\n description={tr(\n \"export.dashboard.recent.description\",\n \"Your latest export jobs\",\n )}\n actions={\n recentJobs.length > 0 ? (\n <button\n type=\"button\"\n onClick={() => handleNavigate(\"history\")}\n className=\"text-sm text-primary hover:underline font-medium\"\n >\n {tr(\"export.dashboard.recent.actions.viewAll\", \"View All\")}\n </button>\n ) : undefined\n }\n >\n {isLoading ? (\n <div className=\"space-y-3\">\n {[...Array(3)].map((_, i) => (\n <div key={i} className=\"border border-border-seam rounded-xl p-4\">\n <div className=\"flex items-center justify-between mb-2\">\n <SkeletonBlock className=\"h-4 w-48 bg-bg-sunken rounded animate-vc-shimmer\" />\n <SkeletonBlock className=\"h-5 w-20 bg-bg-sunken rounded-full animate-vc-shimmer\" />\n </div>\n <SkeletonBlock className=\"h-3 w-32 bg-bg-sunken rounded mt-2 animate-vc-shimmer\" />\n </div>\n ))}\n </div>\n ) : recentJobs.length > 0 ? (\n <div className=\"space-y-3\">\n {recentJobs.map((job, index) => (\n <button\n type=\"button\"\n key={job.id}\n onClick={() => handleNavigate(job.id)}\n className={cn(\n \"w-full text-left border border-border-seam rounded-xl p-4 bg-bg-surface\",\n \"hover:border-primary/40 transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40\",\n \"animate-in fade-in-0\",\n )}\n style={{ animationDelay: `${index * 50}ms` }}\n >\n <div className=\"flex items-start sm:items-center justify-between gap-3\">\n <div className=\"flex-1 min-w-0\">\n <h4 className=\"font-semibold text-text-primary truncate\">\n {job.name}\n </h4>\n <p className=\"text-sm text-text-secondary mt-1 line-clamp-2\">\n {job.entityTypes.join(\", \")} &middot; {job.format}\n {job.totalEntities != null &&\n ` · ${tr(\n \"export.dashboard.recent.entitiesCount\",\n \"{{count}} entities\",\n { count: job.totalEntities.toLocaleString() },\n )}`}\n </p>\n </div>\n <div className=\"flex items-center gap-2 flex-shrink-0\">\n <ExportStatusBadge status={job.status} />\n <ArrowRight\n size={16}\n className=\"text-text-secondary hidden sm:block\"\n />\n </div>\n </div>\n </button>\n ))}\n </div>\n ) : (\n <IllustratedEmptyState\n illustration=\"empty-files\"\n title={tr(\"export.dashboard.empty.title\", \"No exports yet\")}\n description={tr(\n \"export.dashboard.empty.description\",\n \"Create your first export to start downloading your workspace data.\",\n )}\n action={\n <button\n type=\"button\"\n onClick={() => handleNavigate(\"new\")}\n className=\"inline-flex items-center gap-2 px-4 py-2 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium\"\n >\n <Plus size={16} />\n {tr(\n \"export.dashboard.empty.actions.createFirst\",\n \"Create First Export\",\n )}\n </button>\n }\n size=\"panel\"\n />\n )}\n </PageSection>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA+BA,IAAMA,KAAY,GAAc,OACZC,EAAK,SAAS,GAAG,IAAIA,EAAK,MAAM,GAAG,EAAE,IAAIA,MACzCC,EAAK,WAAW,GAAG,IAAIA,IAAO,IAAIA;AAQtD,SAAgBC,IAAsB;CACpC,IAAM,EAAE,cAAW,KAAK,gBAAaC,EAAU,GACzCC,IAAKC,EAAM,GACX,EAAE,MAAMC,GAAM,iBAAcC,EAAc,CAAC,CAAC,GAE5CC,IAAaF,EAAK,MAAM,GAAG,CAAC,GAC5BG,IAAaH,EAAK,QACrB,MAAMI,EAAE,WAAW,aAAaA,EAAE,WAAW,QAChD,GACMC,IAAgBL,EAAK,QAAQ,MAAMI,EAAE,WAAW,WAAW,GAE3DE,IAAU;EACd;GACE,MAAM,kBAACC,GAAD,EAAU,MAAM,GAAK,CAAA;GAC3B,OAAOT,EAAG,kCAAkC,eAAe;GAC3D,OAAOE,EAAK;GACZ,WAAW;GACX,MAAM;EACR;EACA;GACE,MAAM,kBAACQ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