@burdenoff/microfe-i18n 2026.624.1 → 2026.625.2
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/i18n/pages/ImportExportPage.js +359 -321
- package/dist/i18n/pages/LanguagesListPage.js +150 -86
- package/dist/i18n/pages/LocaleConfigPage.js +297 -243
- package/dist/i18n/pages/ProductsListPage.js +148 -84
- package/dist/i18n/pages/ProgressDashboardPage.js +365 -283
- package/dist/i18n/pages/ReviewQueuePage.js +187 -149
- package/dist/i18n/pages/TranslationEditorPage.js +205 -126
- package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +54 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +11 -0
- package/package.json +2 -2
|
@@ -2,10 +2,11 @@ import { CircleCheckBig as e } from "../../node_modules/lucide-react/dist/esm/ic
|
|
|
2
2
|
import { CircleX as t } from "../../node_modules/lucide-react/dist/esm/icons/circle-x.js";
|
|
3
3
|
import { MessageSquare as n } from "../../node_modules/lucide-react/dist/esm/icons/message-square.js";
|
|
4
4
|
import { useRef as r, useState as i } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { CTAOverflowMenu as s, EmphasisPanel as c, GlassCard as l, GradientText as u, IllustratedEmptyState as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
|
|
6
7
|
//#region src/i18n/pages/ReviewQueuePage.tsx
|
|
7
|
-
var
|
|
8
|
-
let [
|
|
8
|
+
var p = () => {
|
|
9
|
+
let [p, m] = i([]), h = r(!1), g = [
|
|
9
10
|
{
|
|
10
11
|
id: "1",
|
|
11
12
|
key: "auth.signIn.emailLabel",
|
|
@@ -33,187 +34,224 @@ var c = () => {
|
|
|
33
34
|
submittedBy: "hans@example.com",
|
|
34
35
|
submittedAt: "1 day ago"
|
|
35
36
|
}
|
|
36
|
-
],
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
console.log(`${e} translations:`,
|
|
40
|
-
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
className: "
|
|
43
|
-
children: [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
37
|
+
], _ = (e) => {
|
|
38
|
+
m((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
39
|
+
}, v = (e) => {
|
|
40
|
+
console.log(`${e} translations:`, p), m([]);
|
|
41
|
+
}, y = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2.5 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", b = p.length > 0;
|
|
42
|
+
return /* @__PURE__ */ o("div", {
|
|
43
|
+
className: "min-h-full w-full bg-bg-surface",
|
|
44
|
+
children: [/* @__PURE__ */ a("div", {
|
|
45
|
+
className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
|
|
46
|
+
children: /* @__PURE__ */ o("div", {
|
|
47
|
+
className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
48
|
+
children: [/* @__PURE__ */ o("div", {
|
|
49
|
+
className: "flex items-center gap-4",
|
|
50
|
+
children: [/* @__PURE__ */ a("div", {
|
|
51
|
+
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
52
|
+
children: /* @__PURE__ */ a(e, {
|
|
53
|
+
className: "size-5",
|
|
54
|
+
"aria-hidden": "true"
|
|
55
|
+
})
|
|
56
|
+
}), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("h1", {
|
|
57
|
+
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
58
|
+
children: ["Review ", /* @__PURE__ */ a(u, { children: "Queue" })]
|
|
59
|
+
}), /* @__PURE__ */ a("p", {
|
|
60
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
61
|
+
children: "Approve or reject submitted translations"
|
|
62
|
+
})] })]
|
|
63
|
+
}), b && /* @__PURE__ */ a(s, {
|
|
64
|
+
primary: {
|
|
65
|
+
label: `Approve Selected (${p.length})`,
|
|
66
|
+
onSelect: () => v("approve"),
|
|
67
|
+
icon: /* @__PURE__ */ a(e, {
|
|
68
|
+
className: "size-4",
|
|
69
|
+
"aria-hidden": "true"
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
actions: [{
|
|
73
|
+
label: `Reject Selected (${p.length})`,
|
|
74
|
+
onSelect: () => {
|
|
75
|
+
window.confirm(`Reject ${p.length} selected translation(s)?`) && v("reject");
|
|
76
|
+
},
|
|
77
|
+
intent: "destructive",
|
|
78
|
+
icon: /* @__PURE__ */ a(t, {
|
|
79
|
+
className: "size-4",
|
|
80
|
+
"aria-hidden": "true"
|
|
81
|
+
})
|
|
82
|
+
}]
|
|
83
|
+
})]
|
|
84
|
+
})
|
|
85
|
+
}), /* @__PURE__ */ o("div", {
|
|
86
|
+
className: "mx-auto max-w-screen-xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ a(f, { children: "This is the quality gate before a translation goes live. Submitted translations land here so a reviewer can compare each one against its source string, then approve it (which publishes it to that locale) or reject it back to the translator with notes. Select several at once to approve or reject them in bulk and keep the backlog moving." }),
|
|
89
|
+
/* @__PURE__ */ o(c, {
|
|
90
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
91
|
+
children: [/* @__PURE__ */ o("div", {
|
|
92
|
+
className: "flex items-center gap-4",
|
|
93
|
+
children: [/* @__PURE__ */ a("div", {
|
|
94
|
+
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
95
|
+
children: /* @__PURE__ */ a(e, {
|
|
96
|
+
className: "size-7",
|
|
97
|
+
"aria-hidden": "true"
|
|
98
|
+
})
|
|
99
|
+
}), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
100
|
+
className: "text-sm font-medium text-text-secondary",
|
|
101
|
+
children: "Pending review"
|
|
102
|
+
}), /* @__PURE__ */ a("p", {
|
|
103
|
+
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
104
|
+
children: "47"
|
|
105
|
+
})] })]
|
|
54
106
|
}), /* @__PURE__ */ o("div", {
|
|
55
|
-
className: "flex
|
|
56
|
-
children:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
className: "flex items-center gap-2 rounded-md bg-success px-4 py-2 text-sm font-medium text-white hover:bg-success/90",
|
|
107
|
+
className: "flex flex-col gap-3 sm:flex-row sm:items-center",
|
|
108
|
+
children: [/* @__PURE__ */ o("select", {
|
|
109
|
+
"aria-label": "Filter by review status",
|
|
110
|
+
className: y,
|
|
60
111
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
112
|
+
/* @__PURE__ */ a("option", {
|
|
113
|
+
value: "pending",
|
|
114
|
+
children: "Pending Review"
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ a("option", {
|
|
117
|
+
value: "my-assignments",
|
|
118
|
+
children: "My Assignments"
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ a("option", {
|
|
121
|
+
value: "all",
|
|
122
|
+
children: "All"
|
|
123
|
+
})
|
|
65
124
|
]
|
|
66
|
-
}), /* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className: "flex items-center gap-2 rounded-md bg-error px-4 py-2 text-sm font-medium text-white hover:bg-error/90",
|
|
125
|
+
}), /* @__PURE__ */ o("select", {
|
|
126
|
+
"aria-label": "Filter by language",
|
|
127
|
+
className: y,
|
|
70
128
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
129
|
+
/* @__PURE__ */ a("option", {
|
|
130
|
+
value: "all",
|
|
131
|
+
children: "All Languages"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ a("option", {
|
|
134
|
+
value: "es-ES",
|
|
135
|
+
children: "Spanish"
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ a("option", {
|
|
138
|
+
value: "fr-FR",
|
|
139
|
+
children: "French"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ a("option", {
|
|
142
|
+
value: "de-DE",
|
|
143
|
+
children: "German"
|
|
144
|
+
})
|
|
75
145
|
]
|
|
76
|
-
})]
|
|
77
|
-
})]
|
|
78
|
-
})
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ o("div", {
|
|
81
|
-
className: "border-b border-border-subtle bg-surface p-4",
|
|
82
|
-
children: /* @__PURE__ */ s("div", {
|
|
83
|
-
className: "flex items-center gap-4",
|
|
84
|
-
children: [/* @__PURE__ */ s("select", {
|
|
85
|
-
"aria-label": "Filter by review status",
|
|
86
|
-
className: "rounded-md border border-border-subtle bg-surface-elevated px-3 py-2 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
|
|
87
|
-
children: [
|
|
88
|
-
/* @__PURE__ */ o("option", {
|
|
89
|
-
value: "pending",
|
|
90
|
-
children: "Pending Review"
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ o("option", {
|
|
93
|
-
value: "my-assignments",
|
|
94
|
-
children: "My Assignments"
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ o("option", {
|
|
97
|
-
value: "all",
|
|
98
|
-
children: "All"
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}), /* @__PURE__ */ s("select", {
|
|
102
|
-
"aria-label": "Filter by language",
|
|
103
|
-
className: "rounded-md border border-border-subtle bg-surface-elevated px-3 py-2 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
|
|
104
|
-
children: [
|
|
105
|
-
/* @__PURE__ */ o("option", {
|
|
106
|
-
value: "all",
|
|
107
|
-
children: "All Languages"
|
|
108
|
-
}),
|
|
109
|
-
/* @__PURE__ */ o("option", {
|
|
110
|
-
value: "es-ES",
|
|
111
|
-
children: "Spanish"
|
|
112
|
-
}),
|
|
113
|
-
/* @__PURE__ */ o("option", {
|
|
114
|
-
value: "fr-FR",
|
|
115
|
-
children: "French"
|
|
116
|
-
}),
|
|
117
|
-
/* @__PURE__ */ o("option", {
|
|
118
|
-
value: "de-DE",
|
|
119
|
-
children: "German"
|
|
120
|
-
})
|
|
121
|
-
]
|
|
146
|
+
})]
|
|
122
147
|
})]
|
|
123
|
-
})
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
148
|
+
}),
|
|
149
|
+
g.length === 0 && /* @__PURE__ */ a(d, {
|
|
150
|
+
illustration: "empty-notifications",
|
|
151
|
+
title: "Nothing to review",
|
|
152
|
+
description: "All caught up — there are no translations waiting for review."
|
|
153
|
+
}),
|
|
154
|
+
g.length > 0 && /* @__PURE__ */ o("div", {
|
|
128
155
|
className: "space-y-4",
|
|
129
|
-
children:
|
|
130
|
-
|
|
131
|
-
|
|
156
|
+
children: [g.map((r) => /* @__PURE__ */ a(l, {
|
|
157
|
+
treatment: "insight",
|
|
158
|
+
className: "border-border-seam p-6",
|
|
159
|
+
children: /* @__PURE__ */ o("div", {
|
|
132
160
|
className: "flex items-start gap-4",
|
|
133
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ a("input", {
|
|
134
162
|
type: "checkbox",
|
|
135
163
|
"aria-label": `Select translation ${r.key}`,
|
|
136
|
-
checked:
|
|
137
|
-
onChange: () =>
|
|
138
|
-
className: "mt-1 size-4 rounded border-border-
|
|
139
|
-
}), /* @__PURE__ */
|
|
164
|
+
checked: p.includes(r.id),
|
|
165
|
+
onChange: () => _(r.id),
|
|
166
|
+
className: "mt-1 size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
167
|
+
}), /* @__PURE__ */ o("div", {
|
|
140
168
|
className: "flex-1",
|
|
141
169
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
className: "mb-3 flex items-start justify-between",
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
className: "font-medium text-
|
|
170
|
+
/* @__PURE__ */ a("div", {
|
|
171
|
+
className: "mb-3 flex items-start justify-between gap-2",
|
|
172
|
+
children: /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("h3", {
|
|
173
|
+
className: "font-medium text-text-primary",
|
|
146
174
|
children: r.key
|
|
147
175
|
}), /* @__PURE__ */ o("span", {
|
|
148
|
-
className: "mt-1 inline-
|
|
149
|
-
children:
|
|
176
|
+
className: "mt-1 inline-flex items-center gap-1.5 rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
|
|
177
|
+
children: [/* @__PURE__ */ a("span", {
|
|
178
|
+
className: "size-1.5 rounded-full bg-status-warning-text motion-safe:animate-vc-glow-pulse",
|
|
179
|
+
"aria-hidden": "true"
|
|
180
|
+
}), r.languageCode]
|
|
150
181
|
})] })
|
|
151
182
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ o("div", {
|
|
153
184
|
className: "space-y-3",
|
|
154
|
-
children: [/* @__PURE__ */
|
|
155
|
-
className: "mb-1 text-xs font-medium text-
|
|
185
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
186
|
+
className: "mb-1 text-xs font-medium text-text-tertiary",
|
|
156
187
|
children: "Source"
|
|
157
|
-
}), /* @__PURE__ */
|
|
158
|
-
className: "text-sm text-
|
|
188
|
+
}), /* @__PURE__ */ a("p", {
|
|
189
|
+
className: "text-sm text-text-secondary",
|
|
159
190
|
children: r.sourceValue
|
|
160
|
-
})] }), /* @__PURE__ */
|
|
161
|
-
className: "mb-1 text-xs font-medium text-
|
|
191
|
+
})] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
192
|
+
className: "mb-1 text-xs font-medium text-text-tertiary",
|
|
162
193
|
children: "Target"
|
|
163
|
-
}), /* @__PURE__ */
|
|
164
|
-
className: "text-sm text-
|
|
194
|
+
}), /* @__PURE__ */ a("p", {
|
|
195
|
+
className: "text-sm text-text-primary",
|
|
165
196
|
children: r.targetValue
|
|
166
197
|
})] })]
|
|
167
198
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
className: "mt-4 flex items-center justify-between",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
171
|
-
className: "text-xs text-
|
|
199
|
+
/* @__PURE__ */ o("div", {
|
|
200
|
+
className: "mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
201
|
+
children: [/* @__PURE__ */ o("p", {
|
|
202
|
+
className: "text-xs text-text-tertiary",
|
|
172
203
|
children: [
|
|
173
204
|
"Submitted by ",
|
|
174
205
|
r.submittedBy,
|
|
175
206
|
" • ",
|
|
176
207
|
r.submittedAt
|
|
177
208
|
]
|
|
178
|
-
}), /* @__PURE__ */ s
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
className: "flex items-center gap-1 rounded-md border border-border-subtle bg-surface px-3 py-1.5 text-xs font-medium text-content-primary hover:bg-surface-elevated",
|
|
187
|
-
children: [/* @__PURE__ */ o(n, { className: "size-3" }), "Add Notes"]
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ s("button", {
|
|
190
|
-
type: "button",
|
|
191
|
-
className: "flex items-center gap-1 rounded-md bg-success px-3 py-1.5 text-xs font-medium text-white hover:bg-success/90",
|
|
192
|
-
children: [/* @__PURE__ */ o(e, { className: "size-3" }), "Approve"]
|
|
193
|
-
}),
|
|
194
|
-
/* @__PURE__ */ s("button", {
|
|
195
|
-
type: "button",
|
|
196
|
-
className: "flex items-center gap-1 rounded-md bg-error px-3 py-1.5 text-xs font-medium text-white hover:bg-error/90",
|
|
197
|
-
children: [/* @__PURE__ */ o(t, { className: "size-3" }), "Reject"]
|
|
209
|
+
}), /* @__PURE__ */ a(s, {
|
|
210
|
+
primary: {
|
|
211
|
+
label: "Approve",
|
|
212
|
+
onSelect: () => void 0,
|
|
213
|
+
icon: /* @__PURE__ */ a(e, {
|
|
214
|
+
className: "size-4",
|
|
215
|
+
"aria-hidden": "true"
|
|
198
216
|
})
|
|
199
|
-
|
|
217
|
+
},
|
|
218
|
+
actions: [{
|
|
219
|
+
label: "Add Notes",
|
|
220
|
+
onSelect: () => {
|
|
221
|
+
h.current = !0;
|
|
222
|
+
},
|
|
223
|
+
icon: /* @__PURE__ */ a(n, {
|
|
224
|
+
className: "size-4",
|
|
225
|
+
"aria-hidden": "true"
|
|
226
|
+
})
|
|
227
|
+
}, {
|
|
228
|
+
label: "Reject",
|
|
229
|
+
onSelect: () => {
|
|
230
|
+
window.confirm(`Reject translation "${r.key}"?`);
|
|
231
|
+
},
|
|
232
|
+
intent: "destructive",
|
|
233
|
+
icon: /* @__PURE__ */ a(t, {
|
|
234
|
+
className: "size-4",
|
|
235
|
+
"aria-hidden": "true"
|
|
236
|
+
})
|
|
237
|
+
}]
|
|
200
238
|
})]
|
|
201
239
|
})
|
|
202
240
|
]
|
|
203
241
|
})]
|
|
204
242
|
})
|
|
205
|
-
}, r.id))
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
]
|
|
213
|
-
})
|
|
214
|
-
|
|
215
|
-
]
|
|
243
|
+
}, r.id)), /* @__PURE__ */ o("p", {
|
|
244
|
+
className: "text-center text-sm text-text-tertiary",
|
|
245
|
+
children: [
|
|
246
|
+
"Showing ",
|
|
247
|
+
g.length,
|
|
248
|
+
" of 47 pending reviews"
|
|
249
|
+
]
|
|
250
|
+
})]
|
|
251
|
+
})
|
|
252
|
+
]
|
|
253
|
+
})]
|
|
216
254
|
});
|
|
217
255
|
};
|
|
218
256
|
//#endregion
|
|
219
|
-
export {
|
|
257
|
+
export { p as ReviewQueuePage };
|