@burdenoff/microfe-export 2026.1108.1 → 2026.1113.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.
- package/dist/export/ExportRoot.js +45 -40
- package/dist/export/ExportRoot.js.map +1 -1
- package/dist/export/ExportRoutes.d.ts +7 -0
- package/dist/export/ExportRoutes.js +70 -51
- package/dist/export/ExportRoutes.js.map +1 -1
- package/dist/export/components/ConfirmDestructiveDialog.d.ts +21 -0
- package/dist/export/components/ConfirmDestructiveDialog.js +37 -0
- package/dist/export/components/ConfirmDestructiveDialog.js.map +1 -0
- package/dist/export/components/DownloadSections.d.ts +10 -0
- package/dist/export/components/DownloadSections.js +161 -0
- package/dist/export/components/DownloadSections.js.map +1 -0
- package/dist/export/components/DownloadStatus.d.ts +13 -0
- package/dist/export/components/DownloadStatus.js +36 -0
- package/dist/export/components/DownloadStatus.js.map +1 -0
- package/dist/export/components/DownloadsTabs.d.ts +5 -0
- package/dist/export/components/DownloadsTabs.js +25 -0
- package/dist/export/components/DownloadsTabs.js.map +1 -0
- package/dist/export/hooks/useEntityLabel.d.ts +7 -0
- package/dist/export/hooks/useEntityLabel.js +16 -0
- package/dist/export/hooks/useEntityLabel.js.map +1 -0
- package/dist/export/hooks/useExportQueries.d.ts +3 -1
- package/dist/export/hooks/useExportQueries.js +23 -23
- package/dist/export/hooks/useExportQueries.js.map +1 -1
- package/dist/export/navigation-v2/NavigationV2.d.ts +7 -0
- package/dist/export/navigation-v2/NavigationV2.js +16 -0
- package/dist/export/navigation-v2/NavigationV2.js.map +1 -0
- package/dist/export/pages/CreateExportPage.js +123 -121
- package/dist/export/pages/CreateExportPage.js.map +1 -1
- package/dist/export/pages/ExportDetailPage.js +131 -124
- package/dist/export/pages/ExportDetailPage.js.map +1 -1
- package/dist/export/pages/ExportHistoryPage.js +61 -57
- package/dist/export/pages/ExportHistoryPage.js.map +1 -1
- package/dist/export/pages/ExportTemplatesPage.js +214 -182
- package/dist/export/pages/ExportTemplatesPage.js.map +1 -1
- package/dist/export/pages/TemplateDetailPage.js +141 -119
- package/dist/export/pages/TemplateDetailPage.js.map +1 -1
- package/dist/export/pages/v2/DownloadDetailPage.d.ts +8 -0
- package/dist/export/pages/v2/DownloadDetailPage.js +176 -0
- package/dist/export/pages/v2/DownloadDetailPage.js.map +1 -0
- package/dist/export/pages/v2/DownloadsPage.d.ts +10 -0
- package/dist/export/pages/v2/DownloadsPage.js +401 -0
- package/dist/export/pages/v2/DownloadsPage.js.map +1 -0
- package/dist/export/pages/v2/NewDownloadPage.d.ts +8 -0
- package/dist/export/pages/v2/NewDownloadPage.js +440 -0
- package/dist/export/pages/v2/NewDownloadPage.js.map +1 -0
- package/dist/export/types/index.d.ts +7 -0
- package/dist/export/utils/billing.d.ts +6 -0
- package/dist/export/utils/billing.js +7 -0
- package/dist/export/utils/billing.js.map +1 -0
- package/dist/export/utils/downloadStatus.d.ts +15 -0
- package/dist/export/utils/downloadStatus.js +48 -0
- package/dist/export/utils/downloadStatus.js.map +1 -0
- package/dist/export/utils/entityLabels.d.ts +47 -0
- package/dist/export/utils/entityLabels.js +150 -0
- package/dist/export/utils/entityLabels.js.map +1 -0
- package/dist/export/utils/formatBytes.d.ts +2 -0
- package/dist/export/utils/formatBytes.js +15 -0
- package/dist/export/utils/formatBytes.js.map +1 -0
- package/dist/export/utils/newDownloadForm.d.ts +32 -0
- package/dist/export/utils/newDownloadForm.js +42 -0
- package/dist/export/utils/newDownloadForm.js.map +1 -0
- package/dist/export/utils/paths.d.ts +2 -0
- package/dist/export/utils/paths.js +7 -0
- package/dist/export/utils/paths.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { exportArchiveDownload as e } from "../utils/exportAuthority.js";
|
|
2
2
|
import { useExport as t } from "../providers/ExportProvider.js";
|
|
3
|
-
import { useCancelExportJob as n, useDeleteExportJob as r, useExportJob as
|
|
4
|
-
import { ExportStatusBadge as
|
|
5
|
-
import { ExportProgressBar as
|
|
6
|
-
import { PageLayout as
|
|
7
|
-
import { getArchiveFormatDisplayName as
|
|
8
|
-
import { useTr as
|
|
9
|
-
import { cn as
|
|
10
|
-
import { nativeImpact as
|
|
11
|
-
import { useState as
|
|
12
|
-
import { AlertCircle as
|
|
3
|
+
import { useCancelExportJob as n, useDeleteExportJob as r, useExportJob as i, useExportJobProgress as a, useRetryExportJob as o } from "../hooks/useExportQueries.js";
|
|
4
|
+
import { ExportStatusBadge as s } from "../components/ExportStatusBadge.js";
|
|
5
|
+
import { ExportProgressBar as c } from "../components/ExportProgressBar.js";
|
|
6
|
+
import { PageLayout as l, PageSection as ee } from "../components/PageLayout.js";
|
|
7
|
+
import { getArchiveFormatDisplayName as te, getFormatDisplayName as ne } from "../constants/enums.js";
|
|
8
|
+
import { useTr as re } from "../hooks/useTr.js";
|
|
9
|
+
import { cn as u } from "../utils/cn.js";
|
|
10
|
+
import { nativeImpact as d, nativeNotify as f } from "../../utils/nativeBridge.js";
|
|
11
|
+
import { useState as p } from "react";
|
|
12
|
+
import { AlertCircle as m, ArrowLeft as h, CheckCircle2 as g, Clock as _, Download as v, FileDown as ie, FileText as y, HardDrive as ae, Loader2 as b, RotateCcw as x, Trash2 as oe, XCircle as se } from "lucide-react";
|
|
13
13
|
import { useNavigate as ce, useParams as le } from "react-router";
|
|
14
14
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
15
|
-
import { CTAOverflowMenu as
|
|
15
|
+
import { CTAOverflowMenu as ue, GlassCard as de, IllustratedEmptyState as w, NextSteps as T } from "@burdenoff/fe-libs/ui";
|
|
16
16
|
// src/export/pages/ExportDetailPage.tsx
|
|
17
|
-
function
|
|
17
|
+
function E(e) {
|
|
18
18
|
if (e === 0) return "0 B";
|
|
19
19
|
let t = 1024, n = [
|
|
20
20
|
"B",
|
|
@@ -25,116 +25,116 @@ function O(e) {
|
|
|
25
25
|
], r = Math.floor(Math.log(e) / Math.log(t));
|
|
26
26
|
return `${parseFloat((e / t ** r).toFixed(2))} ${n[r]}`;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
let { jobId:
|
|
31
|
-
window.history.length > 1 ?
|
|
32
|
-
}, { data:
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
if (
|
|
28
|
+
var D = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
|
|
29
|
+
function O() {
|
|
30
|
+
let { jobId: O } = le(), { basePath: k = "/", navigate: A } = t(), j = ce(), M = re(), N = () => {
|
|
31
|
+
window.history.length > 1 ? j(-1) : A?.(k);
|
|
32
|
+
}, { data: P, isLoading: F } = i(O), { data: I } = a(O), [L, R] = p(null), { cancelJob: z, isPending: B } = n(), { deleteJob: V, isPending: H } = r(), { retryJob: fe, isPending: U } = o(), W = I ?? P ?? null, G = W?.status === "CREATED" || W?.status === "QUEUED" || W?.status === "RUNNING", K = W?.status === "COMPLETED", pe = W?.status === "FAILED", q = W?.status === "FAILED" || W?.status === "CANCELLED" || W?.status === "EXPIRED", me = async () => {
|
|
33
|
+
O && R("cancel");
|
|
34
|
+
}, he = async () => {
|
|
35
|
+
O && (d("medium"), R("delete"));
|
|
36
|
+
}, [J, Y] = p(null), ge = async () => {
|
|
37
|
+
if (O && L) {
|
|
38
|
+
Y(null);
|
|
38
39
|
try {
|
|
39
|
-
|
|
40
|
-
} catch {
|
|
41
|
-
|
|
40
|
+
L === "cancel" ? await z(O) : (await V(O), A?.(k)), f("success"), R(null);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
f("error"), Y(e instanceof Error && e.message ? e.message : L === "cancel" ? M("export.detail.confirm.cancelFailed", "Couldn't cancel. Try again.") : M("export.detail.confirm.deleteFailed", "Couldn't delete. Try again."));
|
|
42
43
|
}
|
|
43
|
-
B(null);
|
|
44
44
|
}
|
|
45
45
|
}, X = async () => {
|
|
46
|
-
if (!
|
|
47
|
-
let e = await
|
|
48
|
-
e?.id &&
|
|
49
|
-
}, Z = e(
|
|
50
|
-
if (
|
|
46
|
+
if (!O) return;
|
|
47
|
+
let e = await fe(O);
|
|
48
|
+
e?.id && A?.(D(k, e.id));
|
|
49
|
+
}, Z = e(W);
|
|
50
|
+
if (F) return /* @__PURE__ */ C("div", {
|
|
51
51
|
className: "flex flex-col items-center justify-center py-20",
|
|
52
52
|
children: [/* @__PURE__ */ S(b, {
|
|
53
53
|
size: 48,
|
|
54
54
|
className: "animate-spin text-primary"
|
|
55
55
|
}), /* @__PURE__ */ S("span", {
|
|
56
56
|
className: "mt-6 text-sm font-medium text-text-secondary",
|
|
57
|
-
children:
|
|
57
|
+
children: M("export.detail.loading", "Loading export details…")
|
|
58
58
|
})]
|
|
59
59
|
});
|
|
60
|
-
if (!
|
|
60
|
+
if (!W) return /* @__PURE__ */ C(l, {
|
|
61
61
|
showHeader: !1,
|
|
62
62
|
children: [/* @__PURE__ */ C("div", {
|
|
63
63
|
className: "flex items-center gap-3 mb-6",
|
|
64
64
|
children: [/* @__PURE__ */ S("button", {
|
|
65
65
|
type: "button",
|
|
66
|
-
onClick:
|
|
67
|
-
"aria-label":
|
|
66
|
+
onClick: N,
|
|
67
|
+
"aria-label": M("export.detail.actions.back", "Go back"),
|
|
68
68
|
className: "p-2.5 hover:bg-accent rounded-lg transition-all duration-200",
|
|
69
|
-
children: /* @__PURE__ */ S(
|
|
69
|
+
children: /* @__PURE__ */ S(h, { size: 20 })
|
|
70
70
|
}), /* @__PURE__ */ S("h1", {
|
|
71
71
|
className: "text-xl font-bold",
|
|
72
|
-
children:
|
|
72
|
+
children: M("export.detail.notFound.title", "Export Not Found")
|
|
73
73
|
})]
|
|
74
|
-
}), /* @__PURE__ */ S(
|
|
74
|
+
}), /* @__PURE__ */ S(w, {
|
|
75
75
|
illustration: "empty-data",
|
|
76
|
-
title:
|
|
77
|
-
description:
|
|
76
|
+
title: M("export.detail.notFound.heading", "Export not found"),
|
|
77
|
+
description: M("export.detail.notFound.description", "The export job you are looking for does not exist or has been deleted."),
|
|
78
78
|
action: /* @__PURE__ */ C("button", {
|
|
79
79
|
type: "button",
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: N,
|
|
81
81
|
className: "inline-flex items-center gap-2 px-6 py-3 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors font-medium",
|
|
82
|
-
children: [/* @__PURE__ */ S(
|
|
82
|
+
children: [/* @__PURE__ */ S(h, { size: 18 }), M("export.detail.actions.backToDashboard", "Back to Dashboard")]
|
|
83
83
|
})
|
|
84
84
|
})]
|
|
85
85
|
});
|
|
86
86
|
let Q = Z ? {
|
|
87
|
-
label:
|
|
87
|
+
label: M("export.detail.actions.downloadArchive", "Download Archive"),
|
|
88
88
|
icon: /* @__PURE__ */ S(v, { size: 16 }),
|
|
89
89
|
onSelect: () => {
|
|
90
90
|
Z && window.location.assign(Z);
|
|
91
91
|
}
|
|
92
|
-
} :
|
|
93
|
-
label:
|
|
92
|
+
} : q ? {
|
|
93
|
+
label: M("export.detail.actions.retry", "Retry Export"),
|
|
94
94
|
icon: /* @__PURE__ */ S(x, { size: 16 }),
|
|
95
|
-
disabled:
|
|
95
|
+
disabled: U,
|
|
96
96
|
onSelect: () => {
|
|
97
97
|
X();
|
|
98
98
|
}
|
|
99
99
|
} : void 0, $ = [];
|
|
100
|
-
|
|
101
|
-
label:
|
|
100
|
+
q && Z && $.push({
|
|
101
|
+
label: M("export.detail.actions.retry", "Retry Export"),
|
|
102
102
|
icon: /* @__PURE__ */ S(x, { size: 16 }),
|
|
103
|
-
disabled:
|
|
103
|
+
disabled: U,
|
|
104
104
|
onSelect: () => {
|
|
105
105
|
X();
|
|
106
106
|
}
|
|
107
|
-
}),
|
|
108
|
-
label:
|
|
107
|
+
}), G && $.push({
|
|
108
|
+
label: M("export.detail.actions.cancel", "Cancel Export"),
|
|
109
109
|
icon: /* @__PURE__ */ S(se, { size: 16 }),
|
|
110
|
-
disabled:
|
|
110
|
+
disabled: B,
|
|
111
111
|
onSelect: () => {
|
|
112
|
-
|
|
112
|
+
me();
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
115
|
-
label:
|
|
114
|
+
}), G || $.push({
|
|
115
|
+
label: M("export.detail.actions.delete", "Delete Export"),
|
|
116
116
|
icon: /* @__PURE__ */ S(oe, { size: 16 }),
|
|
117
117
|
intent: "destructive",
|
|
118
|
-
disabled:
|
|
118
|
+
disabled: H,
|
|
119
119
|
onSelect: () => {
|
|
120
|
-
|
|
120
|
+
he();
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
|
-
let
|
|
123
|
+
let _e = [
|
|
124
124
|
{
|
|
125
125
|
id: "download",
|
|
126
|
-
label:
|
|
127
|
-
description:
|
|
126
|
+
label: M("export.detail.nextSteps.download.label", "Download your export"),
|
|
127
|
+
description: M("export.detail.nextSteps.download.description", "Grab the generated files below before their download links expire."),
|
|
128
128
|
icon: /* @__PURE__ */ S(v, { size: 16 }),
|
|
129
129
|
onClick: () => {
|
|
130
130
|
Z && window.location.assign(Z);
|
|
131
131
|
},
|
|
132
|
-
done:
|
|
132
|
+
done: K
|
|
133
133
|
},
|
|
134
|
-
...
|
|
134
|
+
...q ? [{
|
|
135
135
|
id: "retry",
|
|
136
|
-
label:
|
|
137
|
-
description:
|
|
136
|
+
label: M("export.detail.nextSteps.retry.label", "Retry this export"),
|
|
137
|
+
description: M("export.detail.nextSteps.retry.description", "This export didn't finish — start a fresh run with the same settings."),
|
|
138
138
|
icon: /* @__PURE__ */ S(x, { size: 16 }),
|
|
139
139
|
onClick: () => {
|
|
140
140
|
X();
|
|
@@ -142,13 +142,13 @@ function A() {
|
|
|
142
142
|
}] : [],
|
|
143
143
|
{
|
|
144
144
|
id: "history",
|
|
145
|
-
label:
|
|
146
|
-
description:
|
|
145
|
+
label: M("export.detail.nextSteps.history.label", "Back to History"),
|
|
146
|
+
description: M("export.detail.nextSteps.history.description", "See all your exports and track other jobs in progress."),
|
|
147
147
|
icon: /* @__PURE__ */ S(_, { size: 16 }),
|
|
148
|
-
onClick: () =>
|
|
148
|
+
onClick: () => A?.(k)
|
|
149
149
|
}
|
|
150
150
|
];
|
|
151
|
-
return /* @__PURE__ */ C(
|
|
151
|
+
return /* @__PURE__ */ C(l, {
|
|
152
152
|
showHeader: !1,
|
|
153
153
|
children: [
|
|
154
154
|
/* @__PURE__ */ S("div", {
|
|
@@ -158,10 +158,10 @@ function A() {
|
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ S("button", {
|
|
160
160
|
type: "button",
|
|
161
|
-
onClick:
|
|
162
|
-
"aria-label":
|
|
161
|
+
onClick: N,
|
|
162
|
+
"aria-label": M("export.detail.actions.back", "Go back"),
|
|
163
163
|
className: "p-2.5 hover:bg-accent rounded-lg transition-colors duration-200 self-start focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",
|
|
164
|
-
children: /* @__PURE__ */ S(
|
|
164
|
+
children: /* @__PURE__ */ S(h, { size: 20 })
|
|
165
165
|
}),
|
|
166
166
|
/* @__PURE__ */ C("div", {
|
|
167
167
|
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
@@ -177,18 +177,18 @@ function A() {
|
|
|
177
177
|
className: "flex-1 min-w-0",
|
|
178
178
|
children: [/* @__PURE__ */ S("h1", {
|
|
179
179
|
className: "text-xl sm:text-2xl font-bold truncate",
|
|
180
|
-
children:
|
|
180
|
+
children: W.name
|
|
181
181
|
}), /* @__PURE__ */ S("p", {
|
|
182
182
|
className: "text-sm text-text-secondary mt-1",
|
|
183
|
-
children:
|
|
183
|
+
children: W.entityTypes.join(", ")
|
|
184
184
|
})]
|
|
185
185
|
}),
|
|
186
|
-
/* @__PURE__ */ S(
|
|
186
|
+
/* @__PURE__ */ S(s, { status: W.status })
|
|
187
187
|
]
|
|
188
188
|
}),
|
|
189
189
|
(Q || $.length > 0) && /* @__PURE__ */ S("div", {
|
|
190
190
|
className: "flex-shrink-0",
|
|
191
|
-
children: /* @__PURE__ */ S(
|
|
191
|
+
children: /* @__PURE__ */ S(ue, {
|
|
192
192
|
primary: Q,
|
|
193
193
|
actions: $
|
|
194
194
|
})
|
|
@@ -196,56 +196,56 @@ function A() {
|
|
|
196
196
|
]
|
|
197
197
|
})
|
|
198
198
|
}),
|
|
199
|
-
(
|
|
199
|
+
(W.status === "RUNNING" || W.status === "QUEUED") && /* @__PURE__ */ C("div", {
|
|
200
200
|
className: "border border-border-seam rounded-xl bg-status-info-bg-subtle p-6",
|
|
201
|
-
children: [/* @__PURE__ */ S(
|
|
202
|
-
progress:
|
|
201
|
+
children: [/* @__PURE__ */ S(c, {
|
|
202
|
+
progress: W.progress,
|
|
203
203
|
size: "lg"
|
|
204
|
-
}),
|
|
204
|
+
}), W.processedEntities != null && W.totalEntities != null && /* @__PURE__ */ S("p", {
|
|
205
205
|
className: "text-sm text-text-secondary mt-2",
|
|
206
|
-
children:
|
|
207
|
-
processed:
|
|
208
|
-
total:
|
|
206
|
+
children: M("export.detail.progress.entitiesProcessed", "{{processed}} / {{total}} entities processed", {
|
|
207
|
+
processed: W.processedEntities.toLocaleString(),
|
|
208
|
+
total: W.totalEntities.toLocaleString()
|
|
209
209
|
})
|
|
210
210
|
})]
|
|
211
211
|
}),
|
|
212
|
-
|
|
212
|
+
pe && W.errorMessage && /* @__PURE__ */ C("div", {
|
|
213
213
|
className: "border-2 border-border-default rounded-xl bg-status-error-bg-subtle p-6 flex items-start gap-4",
|
|
214
|
-
children: [/* @__PURE__ */ S(
|
|
214
|
+
children: [/* @__PURE__ */ S(m, {
|
|
215
215
|
size: 24,
|
|
216
216
|
className: "text-status-error-text flex-shrink-0 mt-0.5"
|
|
217
217
|
}), /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
|
|
218
218
|
className: "font-semibold text-status-error-text mb-1",
|
|
219
|
-
children:
|
|
219
|
+
children: M("export.detail.error.title", "Export Failed")
|
|
220
220
|
}), /* @__PURE__ */ S("p", {
|
|
221
221
|
className: "text-sm text-status-error-text",
|
|
222
|
-
children:
|
|
222
|
+
children: W.errorMessage
|
|
223
223
|
})] })]
|
|
224
224
|
}),
|
|
225
225
|
/* @__PURE__ */ S("div", {
|
|
226
226
|
className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",
|
|
227
227
|
children: [
|
|
228
228
|
{
|
|
229
|
-
icon: /* @__PURE__ */ S(
|
|
230
|
-
label:
|
|
231
|
-
value:
|
|
229
|
+
icon: /* @__PURE__ */ S(y, { size: 18 }),
|
|
230
|
+
label: M("export.detail.info.format", "Format"),
|
|
231
|
+
value: ne(W.format)
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
icon: /* @__PURE__ */ S(ae, { size: 18 }),
|
|
235
|
-
label:
|
|
236
|
-
value:
|
|
235
|
+
label: M("export.detail.info.archive", "Archive"),
|
|
236
|
+
value: te(W.archiveFormat)
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
icon: /* @__PURE__ */ S(v, { size: 18 }),
|
|
240
|
-
label:
|
|
241
|
-
value:
|
|
240
|
+
label: M("export.detail.info.totalSize", "Total Size"),
|
|
241
|
+
value: W.totalSizeBytes == null ? "-" : E(W.totalSizeBytes)
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
icon: /* @__PURE__ */ S(_, { size: 18 }),
|
|
245
|
-
label:
|
|
246
|
-
value: new Date(
|
|
245
|
+
label: M("export.detail.info.created", "Created"),
|
|
246
|
+
value: new Date(W.createdAt).toLocaleDateString()
|
|
247
247
|
}
|
|
248
|
-
].map((e) => /* @__PURE__ */ C(
|
|
248
|
+
].map((e) => /* @__PURE__ */ C(de, {
|
|
249
249
|
treatment: "metric",
|
|
250
250
|
className: "p-4 border-border-seam",
|
|
251
251
|
children: [/* @__PURE__ */ C("div", {
|
|
@@ -260,21 +260,21 @@ function A() {
|
|
|
260
260
|
})]
|
|
261
261
|
}, e.label))
|
|
262
262
|
}),
|
|
263
|
-
/* @__PURE__ */ S(
|
|
264
|
-
storageKey: `export-detail-${
|
|
265
|
-
title:
|
|
266
|
-
steps:
|
|
263
|
+
/* @__PURE__ */ S(T, {
|
|
264
|
+
storageKey: `export-detail-${W.id}`,
|
|
265
|
+
title: M("export.detail.nextSteps.title", "What's next"),
|
|
266
|
+
steps: _e
|
|
267
267
|
}),
|
|
268
|
-
|
|
269
|
-
title:
|
|
270
|
-
description:
|
|
268
|
+
W.parts.length > 0 && /* @__PURE__ */ S(ee, {
|
|
269
|
+
title: M("export.detail.parts.title", "Export Parts"),
|
|
270
|
+
description: M("export.detail.parts.description", "{{count}} file(s) generated", { count: W.parts.length }),
|
|
271
271
|
children: /* @__PURE__ */ S("div", {
|
|
272
272
|
className: "space-y-2",
|
|
273
|
-
children:
|
|
274
|
-
className:
|
|
273
|
+
children: W.parts.map((e) => /* @__PURE__ */ C("div", {
|
|
274
|
+
className: u("border border-border-seam rounded-xl p-4 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 bg-bg-surface", "hover:border-primary/40 transition-colors duration-200"),
|
|
275
275
|
children: [/* @__PURE__ */ C("div", {
|
|
276
276
|
className: "flex items-center gap-3 min-w-0",
|
|
277
|
-
children: [/* @__PURE__ */ S(
|
|
277
|
+
children: [/* @__PURE__ */ S(ie, {
|
|
278
278
|
size: 20,
|
|
279
279
|
className: "text-primary flex-shrink-0"
|
|
280
280
|
}), /* @__PURE__ */ C("div", {
|
|
@@ -288,8 +288,8 @@ function A() {
|
|
|
288
288
|
e.entityTypes.join(", "),
|
|
289
289
|
" ·",
|
|
290
290
|
" ",
|
|
291
|
-
|
|
292
|
-
e.downloadExpiresAt && ` · ${
|
|
291
|
+
E(e.sizeBytes),
|
|
292
|
+
e.downloadExpiresAt && ` · ${M("export.detail.parts.expires", "expires {{date}}", { date: new Date(e.downloadExpiresAt).toLocaleDateString() })}`
|
|
293
293
|
]
|
|
294
294
|
})]
|
|
295
295
|
})]
|
|
@@ -298,33 +298,33 @@ function A() {
|
|
|
298
298
|
children: e.downloadUrl ? /* @__PURE__ */ C("a", {
|
|
299
299
|
href: e.downloadUrl,
|
|
300
300
|
className: "inline-flex items-center gap-2 px-3 py-1.5 bg-action-primary-bg text-action-primary-text rounded-lg hover:bg-action-primary-bg/90 transition-colors text-sm font-medium",
|
|
301
|
-
children: [/* @__PURE__ */ S(v, { size: 14 }),
|
|
301
|
+
children: [/* @__PURE__ */ S(v, { size: 14 }), M("export.detail.parts.download", "Download")]
|
|
302
302
|
}) : /* @__PURE__ */ C("span", {
|
|
303
303
|
className: "inline-flex items-center gap-1.5 text-sm text-text-secondary",
|
|
304
|
-
children: [/* @__PURE__ */ S(_, { size: 14 }),
|
|
304
|
+
children: [/* @__PURE__ */ S(_, { size: 14 }), M("export.detail.parts.pending", "Pending")]
|
|
305
305
|
})
|
|
306
306
|
})]
|
|
307
307
|
}, e.id))
|
|
308
308
|
})
|
|
309
309
|
}),
|
|
310
|
-
|
|
310
|
+
K && W.parts.length === 0 && /* @__PURE__ */ C("div", {
|
|
311
311
|
className: "border-2 border-border-default rounded-xl bg-status-success-bg-subtle p-6 text-center",
|
|
312
312
|
children: [
|
|
313
|
-
/* @__PURE__ */ S(
|
|
313
|
+
/* @__PURE__ */ S(g, {
|
|
314
314
|
size: 48,
|
|
315
315
|
className: "text-status-success-text mx-auto mb-3"
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ S("h3", {
|
|
318
318
|
className: "text-lg font-bold text-status-success-text mb-1",
|
|
319
|
-
children:
|
|
319
|
+
children: M("export.detail.complete.title", "Export Complete")
|
|
320
320
|
}),
|
|
321
321
|
/* @__PURE__ */ S("p", {
|
|
322
322
|
className: "text-sm text-status-success-text",
|
|
323
|
-
children:
|
|
323
|
+
children: M("export.detail.complete.noParts", "Your export has completed but no download parts are available yet.")
|
|
324
324
|
})
|
|
325
325
|
]
|
|
326
326
|
}),
|
|
327
|
-
|
|
327
|
+
L && /* @__PURE__ */ S("div", {
|
|
328
328
|
role: "dialog",
|
|
329
329
|
"aria-modal": "true",
|
|
330
330
|
"aria-labelledby": "export-confirm-title",
|
|
@@ -335,28 +335,35 @@ function A() {
|
|
|
335
335
|
/* @__PURE__ */ S("h2", {
|
|
336
336
|
id: "export-confirm-title",
|
|
337
337
|
className: "text-lg font-bold",
|
|
338
|
-
children:
|
|
338
|
+
children: L === "cancel" ? M("export.detail.confirm.cancel.title", "Cancel export?") : M("export.detail.confirm.delete.title", "Delete export?")
|
|
339
339
|
}),
|
|
340
340
|
/* @__PURE__ */ S("p", {
|
|
341
341
|
className: "mt-2 text-sm text-text-secondary",
|
|
342
|
-
children:
|
|
342
|
+
children: L === "cancel" ? M("export.detail.confirm.cancel.description", "This stops the running export job. You can retry it later if needed.") : M("export.detail.confirm.delete.description", "This removes the export job from history. This action cannot be undone.")
|
|
343
|
+
}),
|
|
344
|
+
J && /* @__PURE__ */ S("p", {
|
|
345
|
+
role: "alert",
|
|
346
|
+
className: "mt-3 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
347
|
+
children: J
|
|
343
348
|
}),
|
|
344
349
|
/* @__PURE__ */ C("div", {
|
|
345
350
|
className: "mt-6 flex flex-col-reverse sm:flex-row sm:justify-end gap-3",
|
|
346
351
|
children: [/* @__PURE__ */ S("button", {
|
|
347
352
|
type: "button",
|
|
348
|
-
onClick: () =>
|
|
353
|
+
onClick: () => {
|
|
354
|
+
R(null), Y(null);
|
|
355
|
+
},
|
|
349
356
|
className: "px-4 py-2 rounded-lg border-2 border-border-subtle hover:bg-accent transition-colors font-medium",
|
|
350
|
-
children:
|
|
357
|
+
children: M("export.detail.confirm.keep", "Keep Export")
|
|
351
358
|
}), /* @__PURE__ */ C("button", {
|
|
352
359
|
type: "button",
|
|
353
|
-
onClick:
|
|
354
|
-
disabled:
|
|
360
|
+
onClick: ge,
|
|
361
|
+
disabled: B || H,
|
|
355
362
|
className: "inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90 transition-colors font-medium disabled:opacity-50",
|
|
356
|
-
children: [
|
|
363
|
+
children: [B || H ? /* @__PURE__ */ S(b, {
|
|
357
364
|
size: 16,
|
|
358
365
|
className: "animate-spin"
|
|
359
|
-
}) : null,
|
|
366
|
+
}) : null, L === "cancel" ? M("export.detail.actions.cancel", "Cancel Export") : M("export.detail.actions.delete", "Delete Export")]
|
|
360
367
|
})]
|
|
361
368
|
})
|
|
362
369
|
]
|
|
@@ -365,6 +372,6 @@ function A() {
|
|
|
365
372
|
]
|
|
366
373
|
});
|
|
367
374
|
}
|
|
368
|
-
export {
|
|
375
|
+
export { O as ExportDetailPage };
|
|
369
376
|
|
|
370
377
|
//# sourceMappingURL=ExportDetailPage.js.map
|