@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.
@@ -1,297 +1,379 @@
1
1
  import { Download as e } from "../../node_modules/lucide-react/dist/esm/icons/download.js";
2
2
  import { FileText as t } from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
3
- import { TrendingUp as n } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
4
- import { useI18n as r } from "../providers/I18nProvider.js";
5
- import { useI18nStore as i } from "../store/i18nStore.js";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
3
+ import { Gauge as n } from "../../node_modules/lucide-react/dist/esm/icons/gauge.js";
4
+ import { TrendingUp as r } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
5
+ import { useI18n as i } from "../providers/I18nProvider.js";
6
+ import { useI18nStore as a } from "../store/i18nStore.js";
7
+ import { useNavigate as o } from "react-router-dom";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ import { CTAOverflowMenu as l, EmphasisPanel as u, GlassCard as d, GradientText as f, NextSteps as p, PagePurpose as m, ShowMore as h } from "@burdenoff/fe-libs/ui";
7
10
  //#region src/i18n/pages/ProgressDashboardPage.tsx
8
- var s = () => {
9
- let { t: s } = r(), c = (e, t, n) => s(e, t, n), { progressView: l, updateProgressView: u } = i();
10
- return /* @__PURE__ */ o("div", {
11
- className: "flex h-full flex-col",
12
- children: [
13
- /* @__PURE__ */ a("div", {
14
- className: "border-b border-border-subtle bg-surface-elevated p-6",
15
- children: /* @__PURE__ */ o("div", {
16
- className: "flex items-center justify-between",
17
- children: [/* @__PURE__ */ o("div", {
18
- className: "flex items-center gap-3",
19
- children: [/* @__PURE__ */ a(n, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ a("h1", {
20
- className: "text-2xl font-semibold text-content-primary",
21
- children: c("i18n.progress.title", "Translation Progress")
22
- })]
23
- }), /* @__PURE__ */ o("div", {
24
- className: "flex items-center gap-2",
25
- children: [/* @__PURE__ */ o("button", {
26
- type: "button",
27
- className: "flex items-center gap-2 rounded-md border border-border-subtle bg-surface px-4 py-2 text-sm font-medium text-content-primary hover:bg-surface-elevated",
28
- children: [/* @__PURE__ */ a(t, { className: "size-4" }), c("i18n.progress.actions.generateReport", "Generate Report")]
29
- }), /* @__PURE__ */ o("button", {
30
- type: "button",
31
- className: "flex items-center gap-2 rounded-md bg-accent-primary px-4 py-2 text-sm font-medium text-white hover:bg-accent-primary-hover",
32
- children: [/* @__PURE__ */ a(e, { className: "size-4" }), c("i18n.progress.actions.export", "Export")]
33
- })]
34
- })]
35
- })
36
- }),
37
- /* @__PURE__ */ a("div", {
38
- className: "border-b border-border-subtle bg-surface p-4",
39
- children: /* @__PURE__ */ o("div", {
11
+ var g = () => {
12
+ let { t: g } = i(), _ = (e, t, n) => g(e, t, n), { progressView: v, updateProgressView: y } = a(), b = o(), x = [
13
+ {
14
+ languageKey: "i18n.shared.language.en",
15
+ languageFallback: "English (en)",
16
+ code: "en",
17
+ total: 1245,
18
+ translated: 1245,
19
+ percentage: 100
20
+ },
21
+ {
22
+ languageKey: "i18n.progress.languages.spanish",
23
+ languageFallback: "Spanish (es)",
24
+ code: "es",
25
+ total: 1245,
26
+ translated: 971,
27
+ percentage: 78
28
+ },
29
+ {
30
+ languageKey: "i18n.progress.languages.french",
31
+ languageFallback: "French (fr)",
32
+ code: "fr",
33
+ total: 1245,
34
+ translated: 809,
35
+ percentage: 65
36
+ },
37
+ {
38
+ languageKey: "i18n.progress.languages.german",
39
+ languageFallback: "German (de)",
40
+ code: "de",
41
+ total: 1245,
42
+ translated: 523,
43
+ percentage: 42
44
+ },
45
+ {
46
+ languageKey: "i18n.progress.languages.japanese",
47
+ languageFallback: "Japanese (ja)",
48
+ code: "ja",
49
+ total: 1245,
50
+ translated: 187,
51
+ percentage: 15
52
+ }
53
+ ], S = [
54
+ {
55
+ statusKey: "i18n.progress.status.published",
56
+ statusFallback: "Published",
57
+ count: 2426,
58
+ percentage: 65,
59
+ color: "bg-status-success-text"
60
+ },
61
+ {
62
+ statusKey: "i18n.progress.status.approved",
63
+ statusFallback: "Approved",
64
+ count: 448,
65
+ percentage: 12,
66
+ color: "bg-chart-2"
67
+ },
68
+ {
69
+ statusKey: "i18n.progress.status.pendingReview",
70
+ statusFallback: "Pending Review",
71
+ count: 299,
72
+ percentage: 8,
73
+ color: "bg-status-warning-text"
74
+ },
75
+ {
76
+ statusKey: "i18n.progress.status.draft",
77
+ statusFallback: "Draft",
78
+ count: 562,
79
+ percentage: 15,
80
+ color: "bg-text-tertiary"
81
+ },
82
+ {
83
+ statusKey: "i18n.progress.status.missing",
84
+ statusFallback: "Missing",
85
+ count: 2490,
86
+ percentage: 32,
87
+ color: "bg-status-danger-text"
88
+ }
89
+ ], C = [
90
+ {
91
+ key: "totalKeys",
92
+ label: _("i18n.progress.stats.totalKeys", "Total Keys"),
93
+ value: "6,225",
94
+ valueClass: "text-text-primary"
95
+ },
96
+ {
97
+ key: "translated",
98
+ label: _("i18n.progress.stats.translated", "Translated"),
99
+ value: "3,735",
100
+ valueClass: "text-status-success-text"
101
+ },
102
+ {
103
+ key: "overallCoverage",
104
+ label: _("i18n.progress.stats.overallCoverage", "Overall Coverage"),
105
+ value: "68%",
106
+ valueClass: "text-primary"
107
+ },
108
+ {
109
+ key: "languages",
110
+ label: _("i18n.progress.stats.languages", "Languages"),
111
+ value: "5",
112
+ valueClass: "text-text-primary"
113
+ }
114
+ ], w = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 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)]";
115
+ return /* @__PURE__ */ c("div", {
116
+ className: "min-h-full w-full bg-bg-surface",
117
+ children: [/* @__PURE__ */ s("div", {
118
+ className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
119
+ children: /* @__PURE__ */ c("div", {
120
+ className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
121
+ children: [/* @__PURE__ */ c("div", {
40
122
  className: "flex items-center gap-4",
41
- children: [
42
- /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
43
- className: "mb-1 block text-xs font-medium text-content-tertiary",
44
- children: c("i18n.progress.filters.groupBy", "Group By")
45
- }), /* @__PURE__ */ o("select", {
46
- value: l.groupBy,
47
- onChange: (e) => u({ groupBy: e.target.value }),
48
- 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",
49
- children: [
50
- /* @__PURE__ */ a("option", {
51
- value: "language",
52
- children: c("i18n.progress.filters.groupBy.language", "Language")
53
- }),
54
- /* @__PURE__ */ a("option", {
55
- value: "product",
56
- children: c("i18n.progress.filters.groupBy.product", "Product")
57
- }),
58
- /* @__PURE__ */ a("option", {
59
- value: "module",
60
- children: c("i18n.progress.filters.groupBy.module", "Module")
61
- })
62
- ]
63
- })] }),
64
- /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
65
- className: "mb-1 block text-xs font-medium text-content-tertiary",
66
- children: c("i18n.progress.filters.chartType", "Chart Type")
67
- }), /* @__PURE__ */ o("select", {
68
- value: l.chartType,
69
- onChange: (e) => u({ chartType: e.target.value }),
70
- 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",
71
- children: [
72
- /* @__PURE__ */ a("option", {
73
- value: "bar",
74
- children: c("i18n.progress.filters.chartType.bar", "Bar Chart")
75
- }),
76
- /* @__PURE__ */ a("option", {
77
- value: "pie",
78
- children: c("i18n.progress.filters.chartType.pie", "Pie Chart")
79
- }),
80
- /* @__PURE__ */ a("option", {
81
- value: "heatmap",
82
- children: c("i18n.progress.filters.chartType.heatmap", "Heatmap")
83
- })
84
- ]
85
- })] }),
86
- /* @__PURE__ */ o("div", {
87
- className: "flex items-center gap-2",
88
- children: [/* @__PURE__ */ a("input", {
89
- type: "checkbox",
90
- id: "show-percentages",
91
- "aria-label": c("i18n.progress.filters.showPercentages", "Show Percentages"),
92
- checked: l.showPercentages,
93
- onChange: (e) => u({ showPercentages: e.target.checked }),
94
- className: "size-4 rounded border-border-subtle text-accent-primary focus:ring-accent-primary"
95
- }), /* @__PURE__ */ a("label", {
96
- htmlFor: "show-percentages",
97
- className: "text-sm text-content-primary",
98
- children: c("i18n.progress.filters.showPercentages", "Show Percentages")
99
- })]
123
+ children: [/* @__PURE__ */ s("div", {
124
+ className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
125
+ children: /* @__PURE__ */ s(r, {
126
+ className: "size-5",
127
+ "aria-hidden": "true"
128
+ })
129
+ }), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h1", {
130
+ className: "text-2xl font-bold tracking-tight text-text-primary",
131
+ children: /* @__PURE__ */ s(f, { children: _("i18n.progress.title", "Translation Progress") })
132
+ }), /* @__PURE__ */ s("p", {
133
+ className: "mt-0.5 text-sm text-text-secondary",
134
+ children: _("i18n.progress.subtitle", "Coverage and status across every locale")
135
+ })] })]
136
+ }), /* @__PURE__ */ s(l, {
137
+ primary: {
138
+ label: _("i18n.progress.actions.export", "Export"),
139
+ onSelect: () => void 0,
140
+ icon: /* @__PURE__ */ s(e, {
141
+ className: "size-4",
142
+ "aria-hidden": "true"
143
+ })
144
+ },
145
+ actions: [{
146
+ label: _("i18n.progress.actions.generateReport", "Generate Report"),
147
+ onSelect: () => void 0,
148
+ icon: /* @__PURE__ */ s(t, {
149
+ className: "size-4",
150
+ "aria-hidden": "true"
100
151
  })
152
+ }]
153
+ })]
154
+ })
155
+ }), /* @__PURE__ */ c("div", {
156
+ className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
157
+ children: [
158
+ /* @__PURE__ */ s(m, { children: _("i18n.progress.purpose", "See at a glance how complete your localization is — what share of keys are translated, approved, and published for each language and status. Use it to spot the locales that are lagging, decide where translators should focus next, and confirm you are ready to ship a language before release.") }),
159
+ /* @__PURE__ */ s(p, {
160
+ storageKey: "i18n-progress",
161
+ steps: [
162
+ {
163
+ id: "focus-language",
164
+ label: _("i18n.progress.next.groupByLanguage", "Group coverage by language"),
165
+ description: _("i18n.progress.next.groupByLanguage.desc", "Find the locales that are furthest behind so you can prioritise them."),
166
+ onClick: () => y({ groupBy: "language" })
167
+ },
168
+ {
169
+ id: "review-status",
170
+ label: _("i18n.progress.next.reviewQueue", "Clear the pending review backlog"),
171
+ description: _("i18n.progress.next.reviewQueue.desc", "Approve translations waiting in the queue to lift your published coverage."),
172
+ onClick: () => b("../review")
173
+ },
174
+ {
175
+ id: "export-snapshot",
176
+ label: _("i18n.progress.next.export", "Export a coverage snapshot"),
177
+ description: _("i18n.progress.next.export.desc", "Download the current numbers to share progress with your team."),
178
+ onClick: () => b("../export")
179
+ }
101
180
  ]
102
- })
103
- }),
104
- /* @__PURE__ */ o("div", {
105
- className: "flex-1 overflow-auto p-6",
106
- children: [
107
- /* @__PURE__ */ o("div", {
108
- className: "mb-6 grid grid-cols-4 gap-4",
181
+ }),
182
+ /* @__PURE__ */ c(u, {
183
+ className: "flex flex-col gap-4 sm:flex-row sm:items-center",
184
+ children: [/* @__PURE__ */ c("div", {
185
+ className: "flex flex-1 items-center gap-4",
186
+ children: [/* @__PURE__ */ s("div", {
187
+ className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
188
+ children: /* @__PURE__ */ s(n, {
189
+ className: "size-7",
190
+ "aria-hidden": "true"
191
+ })
192
+ }), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("p", {
193
+ className: "text-sm font-medium text-text-secondary",
194
+ children: _("i18n.progress.stats.overallCoverage", "Overall Coverage")
195
+ }), /* @__PURE__ */ s("p", {
196
+ className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
197
+ children: "68%"
198
+ })] })]
199
+ }), /* @__PURE__ */ c("div", {
200
+ className: "flex flex-wrap gap-3 sm:justify-end",
201
+ children: [/* @__PURE__ */ s("div", {
202
+ className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
203
+ children: _("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
204
+ }), /* @__PURE__ */ c("div", {
205
+ className: "flex items-center gap-1.5 rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary",
206
+ children: [/* @__PURE__ */ s("span", {
207
+ className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
208
+ "aria-hidden": "true"
209
+ }), _("i18n.progress.summary.languages", "5 languages")]
210
+ })]
211
+ })]
212
+ }),
213
+ /* @__PURE__ */ s("div", {
214
+ className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
215
+ children: C.map((e, t) => /* @__PURE__ */ c(d, {
216
+ treatment: "metric",
217
+ glow: t === 2,
218
+ className: "border-border-seam p-5",
219
+ children: [/* @__PURE__ */ s("p", {
220
+ className: "text-sm text-text-secondary",
221
+ children: e.label
222
+ }), /* @__PURE__ */ s("p", {
223
+ className: `mt-1 text-2xl font-bold tracking-tight tabular-nums ${e.valueClass}`,
224
+ children: e.value
225
+ })]
226
+ }, e.key))
227
+ }),
228
+ /* @__PURE__ */ s(h, {
229
+ collapsedHeight: 0,
230
+ label: _("i18n.progress.controls.show", "Display options"),
231
+ children: /* @__PURE__ */ c("div", {
232
+ className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
109
233
  children: [
110
- /* @__PURE__ */ o("div", {
111
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-4",
112
- children: [/* @__PURE__ */ a("p", {
113
- className: "text-sm text-content-tertiary",
114
- children: c("i18n.progress.stats.totalKeys", "Total Keys")
115
- }), /* @__PURE__ */ a("p", {
116
- className: "mt-1 text-2xl font-semibold text-content-primary",
117
- children: "6,225"
118
- })]
119
- }),
120
- /* @__PURE__ */ o("div", {
121
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-4",
122
- children: [/* @__PURE__ */ a("p", {
123
- className: "text-sm text-content-tertiary",
124
- children: c("i18n.progress.stats.translated", "Translated")
125
- }), /* @__PURE__ */ a("p", {
126
- className: "mt-1 text-2xl font-semibold text-success",
127
- children: "3,735"
128
- })]
129
- }),
130
- /* @__PURE__ */ o("div", {
131
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-4",
132
- children: [/* @__PURE__ */ a("p", {
133
- className: "text-sm text-content-tertiary",
134
- children: c("i18n.progress.stats.overallCoverage", "Overall Coverage")
135
- }), /* @__PURE__ */ a("p", {
136
- className: "mt-1 text-2xl font-semibold text-accent-primary",
137
- children: "68%"
138
- })]
139
- }),
140
- /* @__PURE__ */ o("div", {
141
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-4",
142
- children: [/* @__PURE__ */ a("p", {
143
- className: "text-sm text-content-tertiary",
144
- children: c("i18n.progress.stats.languages", "Languages")
145
- }), /* @__PURE__ */ a("p", {
146
- className: "mt-1 text-2xl font-semibold text-content-primary",
147
- children: "5"
234
+ /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
235
+ htmlFor: "progress-group-by",
236
+ className: "mb-1 block text-xs font-medium text-text-tertiary",
237
+ children: _("i18n.progress.filters.groupBy", "Group By")
238
+ }), /* @__PURE__ */ c("select", {
239
+ id: "progress-group-by",
240
+ value: v.groupBy,
241
+ onChange: (e) => y({ groupBy: e.target.value }),
242
+ className: w,
243
+ children: [
244
+ /* @__PURE__ */ s("option", {
245
+ value: "language",
246
+ children: _("i18n.progress.filters.groupBy.language", "Language")
247
+ }),
248
+ /* @__PURE__ */ s("option", {
249
+ value: "product",
250
+ children: _("i18n.progress.filters.groupBy.product", "Product")
251
+ }),
252
+ /* @__PURE__ */ s("option", {
253
+ value: "module",
254
+ children: _("i18n.progress.filters.groupBy.module", "Module")
255
+ })
256
+ ]
257
+ })] }),
258
+ /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
259
+ htmlFor: "progress-chart-type",
260
+ className: "mb-1 block text-xs font-medium text-text-tertiary",
261
+ children: _("i18n.progress.filters.chartType", "Chart Type")
262
+ }), /* @__PURE__ */ c("select", {
263
+ id: "progress-chart-type",
264
+ value: v.chartType,
265
+ onChange: (e) => y({ chartType: e.target.value }),
266
+ className: w,
267
+ children: [
268
+ /* @__PURE__ */ s("option", {
269
+ value: "bar",
270
+ children: _("i18n.progress.filters.chartType.bar", "Bar Chart")
271
+ }),
272
+ /* @__PURE__ */ s("option", {
273
+ value: "pie",
274
+ children: _("i18n.progress.filters.chartType.pie", "Pie Chart")
275
+ }),
276
+ /* @__PURE__ */ s("option", {
277
+ value: "heatmap",
278
+ children: _("i18n.progress.filters.chartType.heatmap", "Heatmap")
279
+ })
280
+ ]
281
+ })] }),
282
+ /* @__PURE__ */ c("div", {
283
+ className: "flex items-center gap-2 pb-2",
284
+ children: [/* @__PURE__ */ s("input", {
285
+ type: "checkbox",
286
+ id: "show-percentages",
287
+ "aria-label": _("i18n.progress.filters.showPercentages", "Show Percentages"),
288
+ checked: v.showPercentages,
289
+ onChange: (e) => y({ showPercentages: e.target.checked }),
290
+ className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
291
+ }), /* @__PURE__ */ s("label", {
292
+ htmlFor: "show-percentages",
293
+ className: "text-sm text-text-primary",
294
+ children: _("i18n.progress.filters.showPercentages", "Show Percentages")
148
295
  })]
149
296
  })
150
297
  ]
151
- }),
152
- /* @__PURE__ */ o("div", {
153
- className: "mb-6 rounded-lg border border-border-subtle bg-surface-elevated p-6",
154
- children: [/* @__PURE__ */ a("h2", {
155
- className: "mb-4 text-lg font-semibold text-content-primary",
156
- children: c("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
157
- }), /* @__PURE__ */ a("div", {
158
- className: "space-y-3",
159
- children: [
160
- {
161
- languageKey: "i18n.shared.language.en",
162
- languageFallback: "English (en)",
163
- code: "en",
164
- total: 1245,
165
- translated: 1245,
166
- percentage: 100
167
- },
168
- {
169
- languageKey: "i18n.progress.languages.spanish",
170
- languageFallback: "Spanish (es)",
171
- code: "es",
172
- total: 1245,
173
- translated: 971,
174
- percentage: 78
175
- },
176
- {
177
- languageKey: "i18n.progress.languages.french",
178
- languageFallback: "French (fr)",
179
- code: "fr",
180
- total: 1245,
181
- translated: 809,
182
- percentage: 65
183
- },
184
- {
185
- languageKey: "i18n.progress.languages.german",
186
- languageFallback: "German (de)",
187
- code: "de",
188
- total: 1245,
189
- translated: 523,
190
- percentage: 42
191
- },
192
- {
193
- languageKey: "i18n.progress.languages.japanese",
194
- languageFallback: "Japanese (ja)",
195
- code: "ja",
196
- total: 1245,
197
- translated: 187,
198
- percentage: 15
199
- }
200
- ].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
201
- className: "mb-1 flex items-center justify-between text-sm",
202
- children: [/* @__PURE__ */ a("span", {
203
- className: "text-content-primary",
204
- children: c(e.languageKey, e.languageFallback)
205
- }), /* @__PURE__ */ o("span", {
206
- className: "text-content-tertiary",
207
- children: [
208
- e.translated,
209
- "/",
210
- e.total,
211
- " (",
212
- e.percentage,
213
- "%)"
214
- ]
215
- })]
216
- }), /* @__PURE__ */ a("div", {
217
- className: "h-2 overflow-hidden rounded-full bg-surface",
218
- children: /* @__PURE__ */ a("div", {
219
- className: "h-full bg-accent-primary transition-all",
220
- style: { width: `${e.percentage}%` }
221
- })
222
- })] }, e.code))
223
- })]
224
- }),
225
- /* @__PURE__ */ o("div", {
226
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-6",
227
- children: [/* @__PURE__ */ a("h2", {
228
- className: "mb-4 text-lg font-semibold text-content-primary",
229
- children: c("i18n.progress.sections.byStatus", "By Status")
230
- }), /* @__PURE__ */ a("div", {
231
- className: "space-y-3",
232
- children: [
233
- {
234
- statusKey: "i18n.progress.status.published",
235
- statusFallback: "Published",
236
- count: 2426,
237
- percentage: 65,
238
- color: "bg-success"
239
- },
240
- {
241
- statusKey: "i18n.progress.status.approved",
242
- statusFallback: "Approved",
243
- count: 448,
244
- percentage: 12,
245
- color: "bg-accent-primary"
246
- },
247
- {
248
- statusKey: "i18n.progress.status.pendingReview",
249
- statusFallback: "Pending Review",
250
- count: 299,
251
- percentage: 8,
252
- color: "bg-warning"
253
- },
254
- {
255
- statusKey: "i18n.progress.status.draft",
256
- statusFallback: "Draft",
257
- count: 562,
258
- percentage: 15,
259
- color: "bg-content-tertiary"
260
- },
261
- {
262
- statusKey: "i18n.progress.status.missing",
263
- statusFallback: "Missing",
264
- count: 2490,
265
- percentage: 32,
266
- color: "bg-error"
267
- }
268
- ].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
269
- className: "mb-1 flex items-center justify-between text-sm",
270
- children: [/* @__PURE__ */ a("span", {
271
- className: "text-content-primary",
272
- children: c(e.statusKey, e.statusFallback)
273
- }), /* @__PURE__ */ o("span", {
274
- className: "text-content-tertiary",
275
- children: [
276
- e.count,
277
- " (",
278
- e.percentage,
279
- "%)"
280
- ]
281
- })]
282
- }), /* @__PURE__ */ a("div", {
283
- className: "h-2 overflow-hidden rounded-full bg-surface",
284
- children: /* @__PURE__ */ a("div", {
285
- className: `h-full transition-all ${e.color}`,
286
- style: { width: `${e.percentage}%` }
287
- })
288
- })] }, e.statusKey))
289
- })]
290
298
  })
291
- ]
292
- })
293
- ]
299
+ }),
300
+ /* @__PURE__ */ c(d, {
301
+ treatment: "plain",
302
+ className: "border-border-seam p-6",
303
+ children: [/* @__PURE__ */ s("h2", {
304
+ className: "mb-4 text-lg font-semibold text-text-primary",
305
+ children: _("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
306
+ }), /* @__PURE__ */ s("div", {
307
+ className: "space-y-3",
308
+ children: x.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
309
+ className: "mb-1 flex items-center justify-between text-sm",
310
+ children: [/* @__PURE__ */ s("span", {
311
+ className: "text-text-primary",
312
+ children: _(e.languageKey, e.languageFallback)
313
+ }), /* @__PURE__ */ c("span", {
314
+ className: "text-text-tertiary tabular-nums",
315
+ children: [
316
+ e.translated,
317
+ "/",
318
+ e.total,
319
+ " (",
320
+ e.percentage,
321
+ "%)"
322
+ ]
323
+ })]
324
+ }), /* @__PURE__ */ s("div", {
325
+ className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
326
+ role: "progressbar",
327
+ "aria-valuenow": e.percentage,
328
+ "aria-valuemin": 0,
329
+ "aria-valuemax": 100,
330
+ "aria-label": _(e.languageKey, e.languageFallback),
331
+ children: /* @__PURE__ */ s("div", {
332
+ className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
333
+ style: { width: `${e.percentage}%` }
334
+ })
335
+ })] }, e.code))
336
+ })]
337
+ }),
338
+ /* @__PURE__ */ c(d, {
339
+ treatment: "plain",
340
+ className: "border-border-seam p-6",
341
+ children: [/* @__PURE__ */ s("h2", {
342
+ className: "mb-4 text-lg font-semibold text-text-primary",
343
+ children: _("i18n.progress.sections.byStatus", "By Status")
344
+ }), /* @__PURE__ */ s("div", {
345
+ className: "space-y-3",
346
+ children: S.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
347
+ className: "mb-1 flex items-center justify-between text-sm",
348
+ children: [/* @__PURE__ */ s("span", {
349
+ className: "text-text-primary",
350
+ children: _(e.statusKey, e.statusFallback)
351
+ }), /* @__PURE__ */ c("span", {
352
+ className: "text-text-tertiary tabular-nums",
353
+ children: [
354
+ e.count,
355
+ " (",
356
+ e.percentage,
357
+ "%)"
358
+ ]
359
+ })]
360
+ }), /* @__PURE__ */ s("div", {
361
+ className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
362
+ role: "progressbar",
363
+ "aria-valuenow": e.percentage,
364
+ "aria-valuemin": 0,
365
+ "aria-valuemax": 100,
366
+ "aria-label": _(e.statusKey, e.statusFallback),
367
+ children: /* @__PURE__ */ s("div", {
368
+ className: `h-full rounded-full transition-all ${e.color}`,
369
+ style: { width: `${e.percentage}%` }
370
+ })
371
+ })] }, e.statusKey))
372
+ })]
373
+ })
374
+ ]
375
+ })]
294
376
  });
295
377
  };
296
378
  //#endregion
297
- export { s as ProgressDashboardPage };
379
+ export { g as ProgressDashboardPage };