@burdenoff/microfe-i18n 2026.625.1 → 2026.626.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/i18n/pages/ImportExportPage.js +95 -96
- package/dist/i18n/pages/LanguagesListPage.js +72 -40
- package/dist/i18n/pages/LocaleConfigPage.js +85 -57
- package/dist/i18n/pages/ProductsListPage.js +26 -25
- package/dist/i18n/pages/ProgressDashboardPage.js +126 -101
- package/dist/i18n/pages/ReviewQueuePage.js +55 -24
- package/dist/i18n/pages/TranslationEditorPage.js +106 -78
- package/package.json +2 -2
|
@@ -7,10 +7,10 @@ import { useI18n as a } from "../providers/I18nProvider.js";
|
|
|
7
7
|
import { useI18nStore as o } from "../store/i18nStore.js";
|
|
8
8
|
import { useState as s } from "react";
|
|
9
9
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
-
import { AuroraBackground as u, CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, IllustratedEmptyState as h } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { AuroraBackground as u, CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, IllustratedEmptyState as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
|
|
11
11
|
//#region src/i18n/pages/ProductsListPage.tsx
|
|
12
|
-
var
|
|
13
|
-
let { t:
|
|
12
|
+
var _ = () => {
|
|
13
|
+
let { t: _ } = a(), v = (e, t, n) => _(e, t, n), { setSelectedProduct: y } = o(), [b, x] = s(""), S = [{
|
|
14
14
|
id: "1",
|
|
15
15
|
name: "workspaces",
|
|
16
16
|
displayName: "Workspaces",
|
|
@@ -48,7 +48,7 @@ var g = () => {
|
|
|
48
48
|
name: "notification",
|
|
49
49
|
displayName: "Notifications"
|
|
50
50
|
}]
|
|
51
|
-
}],
|
|
51
|
+
}], C = S.filter((e) => e.displayName.toLowerCase().includes(b.toLowerCase()) || e.name.toLowerCase().includes(b.toLowerCase())), w = S.reduce((e, t) => e + t.modules.length, 0), T = b.trim().length > 0;
|
|
52
52
|
return /* @__PURE__ */ l("div", {
|
|
53
53
|
className: "min-h-full w-full bg-bg-surface",
|
|
54
54
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -65,14 +65,14 @@ var g = () => {
|
|
|
65
65
|
})
|
|
66
66
|
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
67
67
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
68
|
-
children: /* @__PURE__ */ c(m, { children:
|
|
68
|
+
children: /* @__PURE__ */ c(m, { children: v("i18n.products.title", "Products") })
|
|
69
69
|
}), /* @__PURE__ */ c("p", {
|
|
70
70
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
71
|
-
children:
|
|
71
|
+
children: v("i18n.products.subtitle", "Manage localization across products and their modules")
|
|
72
72
|
})] })]
|
|
73
73
|
}), /* @__PURE__ */ c(d, {
|
|
74
74
|
primary: {
|
|
75
|
-
label:
|
|
75
|
+
label: v("i18n.products.actions.add", "Add Product"),
|
|
76
76
|
onSelect: () => void 0,
|
|
77
77
|
icon: /* @__PURE__ */ c(r, {
|
|
78
78
|
className: "size-4",
|
|
@@ -85,6 +85,7 @@ var g = () => {
|
|
|
85
85
|
}), /* @__PURE__ */ l("div", {
|
|
86
86
|
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
87
87
|
children: [
|
|
88
|
+
/* @__PURE__ */ c(g, { children: v("i18n.products.purpose", "Products are the apps you localize. Each one groups the modules (auth, billing, calendar…) whose user-facing text needs translating. Register a product here so its translation keys, languages, and coverage are tracked together — pick a product to drill into its modules and manage their strings.") }),
|
|
88
89
|
/* @__PURE__ */ l(f, {
|
|
89
90
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
90
91
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -97,22 +98,22 @@ var g = () => {
|
|
|
97
98
|
})
|
|
98
99
|
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
|
|
99
100
|
className: "text-sm font-medium text-text-secondary",
|
|
100
|
-
children:
|
|
101
|
+
children: v("i18n.products.summary.label", "Products tracked")
|
|
101
102
|
}), /* @__PURE__ */ c("p", {
|
|
102
103
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
103
|
-
children:
|
|
104
|
+
children: S.length
|
|
104
105
|
})] })]
|
|
105
106
|
}), /* @__PURE__ */ l("div", {
|
|
106
107
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
107
108
|
children: [/* @__PURE__ */ c("div", {
|
|
108
109
|
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
|
|
109
|
-
children:
|
|
110
|
+
children: v("i18n.products.summary.modules", "{{count}} modules", { count: w })
|
|
110
111
|
}), /* @__PURE__ */ l("div", {
|
|
111
112
|
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",
|
|
112
113
|
children: [/* @__PURE__ */ c("span", {
|
|
113
114
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
114
115
|
"aria-hidden": "true"
|
|
115
|
-
}),
|
|
116
|
+
}), v("i18n.products.summary.active", "All active")]
|
|
116
117
|
})]
|
|
117
118
|
})]
|
|
118
119
|
}),
|
|
@@ -123,27 +124,27 @@ var g = () => {
|
|
|
123
124
|
"aria-hidden": "true"
|
|
124
125
|
}), /* @__PURE__ */ c("input", {
|
|
125
126
|
type: "text",
|
|
126
|
-
"aria-label":
|
|
127
|
-
placeholder:
|
|
128
|
-
value:
|
|
129
|
-
onChange: (e) =>
|
|
127
|
+
"aria-label": v("i18n.products.search.ariaLabel", "Search products"),
|
|
128
|
+
placeholder: v("i18n.products.search.placeholder", "Search products..."),
|
|
129
|
+
value: b,
|
|
130
|
+
onChange: (e) => x(e.target.value),
|
|
130
131
|
className: "w-full rounded-lg border border-border-seam bg-bg-elevated py-2.5 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-tertiary 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)]"
|
|
131
132
|
})]
|
|
132
133
|
}),
|
|
133
|
-
|
|
134
|
-
illustration:
|
|
135
|
-
title:
|
|
136
|
-
description:
|
|
134
|
+
C.length === 0 && /* @__PURE__ */ c(h, {
|
|
135
|
+
illustration: T ? "empty-search" : "empty-data",
|
|
136
|
+
title: T ? v("i18n.products.empty.search.title", "No products found") : v("i18n.products.empty.title", "No products yet"),
|
|
137
|
+
description: T ? v("i18n.products.empty.search.description", "Try a different search term to find a product.") : v("i18n.products.empty.description", "Add your first product to start managing translations.")
|
|
137
138
|
}),
|
|
138
|
-
|
|
139
|
+
C.length > 0 && /* @__PURE__ */ c("div", {
|
|
139
140
|
className: "space-y-4",
|
|
140
|
-
children:
|
|
141
|
+
children: C.map((e, n) => /* @__PURE__ */ c(p, {
|
|
141
142
|
treatment: "insight",
|
|
142
143
|
glow: n === 0,
|
|
143
144
|
className: "border-border-seam",
|
|
144
145
|
children: /* @__PURE__ */ c("button", {
|
|
145
146
|
type: "button",
|
|
146
|
-
onClick: () =>
|
|
147
|
+
onClick: () => y(e),
|
|
147
148
|
className: "block w-full cursor-pointer rounded-[inherit] p-6 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
148
149
|
children: /* @__PURE__ */ l("div", {
|
|
149
150
|
className: "flex items-start justify-between gap-4",
|
|
@@ -157,7 +158,7 @@ var g = () => {
|
|
|
157
158
|
children: e.displayName
|
|
158
159
|
}), /* @__PURE__ */ c("span", {
|
|
159
160
|
className: "rounded-full bg-status-success-bg px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
160
|
-
children: e.status === "active" ?
|
|
161
|
+
children: e.status === "active" ? v("i18n.shared.status.active", "Active") : v("i18n.shared.status.archived", "Archived")
|
|
161
162
|
})]
|
|
162
163
|
}),
|
|
163
164
|
/* @__PURE__ */ c("p", {
|
|
@@ -168,7 +169,7 @@ var g = () => {
|
|
|
168
169
|
className: "mt-4",
|
|
169
170
|
children: [/* @__PURE__ */ c("p", {
|
|
170
171
|
className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-tertiary",
|
|
171
|
-
children:
|
|
172
|
+
children: v("i18n.products.modules.count", "Modules ({{count}})", { count: e.modules.length })
|
|
172
173
|
}), /* @__PURE__ */ c("div", {
|
|
173
174
|
className: "flex flex-wrap gap-2",
|
|
174
175
|
children: e.modules.map((e) => /* @__PURE__ */ l("span", {
|
|
@@ -194,4 +195,4 @@ var g = () => {
|
|
|
194
195
|
});
|
|
195
196
|
};
|
|
196
197
|
//#endregion
|
|
197
|
-
export {
|
|
198
|
+
export { _ as ProductsListPage };
|
|
@@ -4,11 +4,12 @@ import { Gauge as n } from "../../node_modules/lucide-react/dist/esm/icons/gauge
|
|
|
4
4
|
import { TrendingUp as r } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
|
|
5
5
|
import { useI18n as i } from "../providers/I18nProvider.js";
|
|
6
6
|
import { useI18nStore as a } from "../store/i18nStore.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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";
|
|
9
10
|
//#region src/i18n/pages/ProgressDashboardPage.tsx
|
|
10
|
-
var
|
|
11
|
-
let { t:
|
|
11
|
+
var g = () => {
|
|
12
|
+
let { t: g } = i(), _ = (e, t, n) => g(e, t, n), { progressView: v, updateProgressView: y } = a(), b = o(), x = [
|
|
12
13
|
{
|
|
13
14
|
languageKey: "i18n.shared.language.en",
|
|
14
15
|
languageFallback: "English (en)",
|
|
@@ -49,7 +50,7 @@ var p = () => {
|
|
|
49
50
|
translated: 187,
|
|
50
51
|
percentage: 15
|
|
51
52
|
}
|
|
52
|
-
],
|
|
53
|
+
], S = [
|
|
53
54
|
{
|
|
54
55
|
statusKey: "i18n.progress.status.published",
|
|
55
56
|
statusFallback: "Published",
|
|
@@ -85,207 +86,231 @@ var p = () => {
|
|
|
85
86
|
percentage: 32,
|
|
86
87
|
color: "bg-status-danger-text"
|
|
87
88
|
}
|
|
88
|
-
],
|
|
89
|
+
], C = [
|
|
89
90
|
{
|
|
90
91
|
key: "totalKeys",
|
|
91
|
-
label:
|
|
92
|
+
label: _("i18n.progress.stats.totalKeys", "Total Keys"),
|
|
92
93
|
value: "6,225",
|
|
93
94
|
valueClass: "text-text-primary"
|
|
94
95
|
},
|
|
95
96
|
{
|
|
96
97
|
key: "translated",
|
|
97
|
-
label:
|
|
98
|
+
label: _("i18n.progress.stats.translated", "Translated"),
|
|
98
99
|
value: "3,735",
|
|
99
100
|
valueClass: "text-status-success-text"
|
|
100
101
|
},
|
|
101
102
|
{
|
|
102
103
|
key: "overallCoverage",
|
|
103
|
-
label:
|
|
104
|
+
label: _("i18n.progress.stats.overallCoverage", "Overall Coverage"),
|
|
104
105
|
value: "68%",
|
|
105
106
|
valueClass: "text-primary"
|
|
106
107
|
},
|
|
107
108
|
{
|
|
108
109
|
key: "languages",
|
|
109
|
-
label:
|
|
110
|
+
label: _("i18n.progress.stats.languages", "Languages"),
|
|
110
111
|
value: "5",
|
|
111
112
|
valueClass: "text-text-primary"
|
|
112
113
|
}
|
|
113
|
-
],
|
|
114
|
-
return /* @__PURE__ */
|
|
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", {
|
|
115
116
|
className: "min-h-full w-full bg-bg-surface",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ s("div", {
|
|
117
118
|
className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
|
|
118
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ c("div", {
|
|
119
120
|
className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ c("div", {
|
|
121
122
|
className: "flex items-center gap-4",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ s("div", {
|
|
123
124
|
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
124
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ s(r, {
|
|
125
126
|
className: "size-5",
|
|
126
127
|
"aria-hidden": "true"
|
|
127
128
|
})
|
|
128
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h1", {
|
|
129
130
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
130
|
-
children: /* @__PURE__ */
|
|
131
|
-
}), /* @__PURE__ */
|
|
131
|
+
children: /* @__PURE__ */ s(f, { children: _("i18n.progress.title", "Translation Progress") })
|
|
132
|
+
}), /* @__PURE__ */ s("p", {
|
|
132
133
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
133
|
-
children:
|
|
134
|
+
children: _("i18n.progress.subtitle", "Coverage and status across every locale")
|
|
134
135
|
})] })]
|
|
135
|
-
}), /* @__PURE__ */
|
|
136
|
+
}), /* @__PURE__ */ s(l, {
|
|
136
137
|
primary: {
|
|
137
|
-
label:
|
|
138
|
+
label: _("i18n.progress.actions.export", "Export"),
|
|
138
139
|
onSelect: () => void 0,
|
|
139
|
-
icon: /* @__PURE__ */
|
|
140
|
+
icon: /* @__PURE__ */ s(e, {
|
|
140
141
|
className: "size-4",
|
|
141
142
|
"aria-hidden": "true"
|
|
142
143
|
})
|
|
143
144
|
},
|
|
144
145
|
actions: [{
|
|
145
|
-
label:
|
|
146
|
+
label: _("i18n.progress.actions.generateReport", "Generate Report"),
|
|
146
147
|
onSelect: () => void 0,
|
|
147
|
-
icon: /* @__PURE__ */
|
|
148
|
+
icon: /* @__PURE__ */ s(t, {
|
|
148
149
|
className: "size-4",
|
|
149
150
|
"aria-hidden": "true"
|
|
150
151
|
})
|
|
151
152
|
}]
|
|
152
153
|
})]
|
|
153
154
|
})
|
|
154
|
-
}), /* @__PURE__ */
|
|
155
|
+
}), /* @__PURE__ */ c("div", {
|
|
155
156
|
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
156
157
|
children: [
|
|
157
|
-
/* @__PURE__ */ s(
|
|
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
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ c(u, {
|
|
158
183
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
159
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ c("div", {
|
|
160
185
|
className: "flex flex-1 items-center gap-4",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ s("div", {
|
|
162
187
|
className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
163
|
-
children: /* @__PURE__ */
|
|
188
|
+
children: /* @__PURE__ */ s(n, {
|
|
164
189
|
className: "size-7",
|
|
165
190
|
"aria-hidden": "true"
|
|
166
191
|
})
|
|
167
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("p", {
|
|
168
193
|
className: "text-sm font-medium text-text-secondary",
|
|
169
|
-
children:
|
|
170
|
-
}), /* @__PURE__ */
|
|
194
|
+
children: _("i18n.progress.stats.overallCoverage", "Overall Coverage")
|
|
195
|
+
}), /* @__PURE__ */ s("p", {
|
|
171
196
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
172
197
|
children: "68%"
|
|
173
198
|
})] })]
|
|
174
|
-
}), /* @__PURE__ */
|
|
199
|
+
}), /* @__PURE__ */ c("div", {
|
|
175
200
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ s("div", {
|
|
177
202
|
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
|
|
178
|
-
children:
|
|
179
|
-
}), /* @__PURE__ */
|
|
203
|
+
children: _("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
|
|
204
|
+
}), /* @__PURE__ */ c("div", {
|
|
180
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",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ s("span", {
|
|
182
207
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
183
208
|
"aria-hidden": "true"
|
|
184
|
-
}),
|
|
209
|
+
}), _("i18n.progress.summary.languages", "5 languages")]
|
|
185
210
|
})]
|
|
186
211
|
})]
|
|
187
212
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ s("div", {
|
|
189
214
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
190
|
-
children:
|
|
215
|
+
children: C.map((e, t) => /* @__PURE__ */ c(d, {
|
|
191
216
|
treatment: "metric",
|
|
192
217
|
glow: t === 2,
|
|
193
218
|
className: "border-border-seam p-5",
|
|
194
|
-
children: [/* @__PURE__ */
|
|
219
|
+
children: [/* @__PURE__ */ s("p", {
|
|
195
220
|
className: "text-sm text-text-secondary",
|
|
196
221
|
children: e.label
|
|
197
|
-
}), /* @__PURE__ */
|
|
222
|
+
}), /* @__PURE__ */ s("p", {
|
|
198
223
|
className: `mt-1 text-2xl font-bold tracking-tight tabular-nums ${e.valueClass}`,
|
|
199
224
|
children: e.value
|
|
200
225
|
})]
|
|
201
226
|
}, e.key))
|
|
202
227
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ s(h, {
|
|
204
229
|
collapsedHeight: 0,
|
|
205
|
-
label:
|
|
206
|
-
children: /* @__PURE__ */
|
|
230
|
+
label: _("i18n.progress.controls.show", "Display options"),
|
|
231
|
+
children: /* @__PURE__ */ c("div", {
|
|
207
232
|
className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
|
|
208
233
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
210
235
|
htmlFor: "progress-group-by",
|
|
211
236
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
212
|
-
children:
|
|
213
|
-
}), /* @__PURE__ */
|
|
237
|
+
children: _("i18n.progress.filters.groupBy", "Group By")
|
|
238
|
+
}), /* @__PURE__ */ c("select", {
|
|
214
239
|
id: "progress-group-by",
|
|
215
|
-
value:
|
|
216
|
-
onChange: (e) =>
|
|
217
|
-
className:
|
|
240
|
+
value: v.groupBy,
|
|
241
|
+
onChange: (e) => y({ groupBy: e.target.value }),
|
|
242
|
+
className: w,
|
|
218
243
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ s("option", {
|
|
220
245
|
value: "language",
|
|
221
|
-
children:
|
|
246
|
+
children: _("i18n.progress.filters.groupBy.language", "Language")
|
|
222
247
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ s("option", {
|
|
224
249
|
value: "product",
|
|
225
|
-
children:
|
|
250
|
+
children: _("i18n.progress.filters.groupBy.product", "Product")
|
|
226
251
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ s("option", {
|
|
228
253
|
value: "module",
|
|
229
|
-
children:
|
|
254
|
+
children: _("i18n.progress.filters.groupBy.module", "Module")
|
|
230
255
|
})
|
|
231
256
|
]
|
|
232
257
|
})] }),
|
|
233
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
234
259
|
htmlFor: "progress-chart-type",
|
|
235
260
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
236
|
-
children:
|
|
237
|
-
}), /* @__PURE__ */
|
|
261
|
+
children: _("i18n.progress.filters.chartType", "Chart Type")
|
|
262
|
+
}), /* @__PURE__ */ c("select", {
|
|
238
263
|
id: "progress-chart-type",
|
|
239
|
-
value:
|
|
240
|
-
onChange: (e) =>
|
|
241
|
-
className:
|
|
264
|
+
value: v.chartType,
|
|
265
|
+
onChange: (e) => y({ chartType: e.target.value }),
|
|
266
|
+
className: w,
|
|
242
267
|
children: [
|
|
243
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ s("option", {
|
|
244
269
|
value: "bar",
|
|
245
|
-
children:
|
|
270
|
+
children: _("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
246
271
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ s("option", {
|
|
248
273
|
value: "pie",
|
|
249
|
-
children:
|
|
274
|
+
children: _("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
250
275
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ s("option", {
|
|
252
277
|
value: "heatmap",
|
|
253
|
-
children:
|
|
278
|
+
children: _("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
254
279
|
})
|
|
255
280
|
]
|
|
256
281
|
})] }),
|
|
257
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ c("div", {
|
|
258
283
|
className: "flex items-center gap-2 pb-2",
|
|
259
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ s("input", {
|
|
260
285
|
type: "checkbox",
|
|
261
286
|
id: "show-percentages",
|
|
262
|
-
"aria-label":
|
|
263
|
-
checked:
|
|
264
|
-
onChange: (e) =>
|
|
287
|
+
"aria-label": _("i18n.progress.filters.showPercentages", "Show Percentages"),
|
|
288
|
+
checked: v.showPercentages,
|
|
289
|
+
onChange: (e) => y({ showPercentages: e.target.checked }),
|
|
265
290
|
className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
266
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ s("label", {
|
|
267
292
|
htmlFor: "show-percentages",
|
|
268
293
|
className: "text-sm text-text-primary",
|
|
269
|
-
children:
|
|
294
|
+
children: _("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
270
295
|
})]
|
|
271
296
|
})
|
|
272
297
|
]
|
|
273
298
|
})
|
|
274
299
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ c(d, {
|
|
276
301
|
treatment: "plain",
|
|
277
302
|
className: "border-border-seam p-6",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ s("h2", {
|
|
279
304
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
280
|
-
children:
|
|
281
|
-
}), /* @__PURE__ */
|
|
305
|
+
children: _("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
306
|
+
}), /* @__PURE__ */ s("div", {
|
|
282
307
|
className: "space-y-3",
|
|
283
|
-
children:
|
|
308
|
+
children: x.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
284
309
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ s("span", {
|
|
286
311
|
className: "text-text-primary",
|
|
287
|
-
children:
|
|
288
|
-
}), /* @__PURE__ */
|
|
312
|
+
children: _(e.languageKey, e.languageFallback)
|
|
313
|
+
}), /* @__PURE__ */ c("span", {
|
|
289
314
|
className: "text-text-tertiary tabular-nums",
|
|
290
315
|
children: [
|
|
291
316
|
e.translated,
|
|
@@ -296,34 +321,34 @@ var p = () => {
|
|
|
296
321
|
"%)"
|
|
297
322
|
]
|
|
298
323
|
})]
|
|
299
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ s("div", {
|
|
300
325
|
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
301
326
|
role: "progressbar",
|
|
302
327
|
"aria-valuenow": e.percentage,
|
|
303
328
|
"aria-valuemin": 0,
|
|
304
329
|
"aria-valuemax": 100,
|
|
305
|
-
"aria-label":
|
|
306
|
-
children: /* @__PURE__ */
|
|
330
|
+
"aria-label": _(e.languageKey, e.languageFallback),
|
|
331
|
+
children: /* @__PURE__ */ s("div", {
|
|
307
332
|
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
308
333
|
style: { width: `${e.percentage}%` }
|
|
309
334
|
})
|
|
310
335
|
})] }, e.code))
|
|
311
336
|
})]
|
|
312
337
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ c(d, {
|
|
314
339
|
treatment: "plain",
|
|
315
340
|
className: "border-border-seam p-6",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
341
|
+
children: [/* @__PURE__ */ s("h2", {
|
|
317
342
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
318
|
-
children:
|
|
319
|
-
}), /* @__PURE__ */
|
|
343
|
+
children: _("i18n.progress.sections.byStatus", "By Status")
|
|
344
|
+
}), /* @__PURE__ */ s("div", {
|
|
320
345
|
className: "space-y-3",
|
|
321
|
-
children:
|
|
346
|
+
children: S.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
322
347
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
348
|
+
children: [/* @__PURE__ */ s("span", {
|
|
324
349
|
className: "text-text-primary",
|
|
325
|
-
children:
|
|
326
|
-
}), /* @__PURE__ */
|
|
350
|
+
children: _(e.statusKey, e.statusFallback)
|
|
351
|
+
}), /* @__PURE__ */ c("span", {
|
|
327
352
|
className: "text-text-tertiary tabular-nums",
|
|
328
353
|
children: [
|
|
329
354
|
e.count,
|
|
@@ -332,14 +357,14 @@ var p = () => {
|
|
|
332
357
|
"%)"
|
|
333
358
|
]
|
|
334
359
|
})]
|
|
335
|
-
}), /* @__PURE__ */
|
|
360
|
+
}), /* @__PURE__ */ s("div", {
|
|
336
361
|
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
337
362
|
role: "progressbar",
|
|
338
363
|
"aria-valuenow": e.percentage,
|
|
339
364
|
"aria-valuemin": 0,
|
|
340
365
|
"aria-valuemax": 100,
|
|
341
|
-
"aria-label":
|
|
342
|
-
children: /* @__PURE__ */
|
|
366
|
+
"aria-label": _(e.statusKey, e.statusFallback),
|
|
367
|
+
children: /* @__PURE__ */ s("div", {
|
|
343
368
|
className: `h-full rounded-full transition-all ${e.color}`,
|
|
344
369
|
style: { width: `${e.percentage}%` }
|
|
345
370
|
})
|
|
@@ -351,4 +376,4 @@ var p = () => {
|
|
|
351
376
|
});
|
|
352
377
|
};
|
|
353
378
|
//#endregion
|
|
354
|
-
export {
|
|
379
|
+
export { g as ProgressDashboardPage };
|