@burdenoff/microfe-i18n 2026.1108.1 → 2026.1119.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.
|
@@ -5,10 +5,10 @@ import { useTr as r } from "../hooks/useTr.js";
|
|
|
5
5
|
import { useI18nStore as i } from "../store/i18nStore.js";
|
|
6
6
|
import { useState as a } from "react";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
-
import { CTAOverflowMenu as c, EmphasisPanel as l, GlassCard as u, GradientText as d, IllustratedEmptyState as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { CTAOverflowMenu as c, EmphasisPanel as l, GlassCard as u, GradientText as d, IllustratedEmptyState as f, PagePurpose as p, ThemedSelect as m } from "@burdenoff/fe-libs/ui";
|
|
9
9
|
// src/i18n/pages/LanguagesListPage.tsx
|
|
10
|
-
var
|
|
11
|
-
let
|
|
10
|
+
var h = () => {
|
|
11
|
+
let h = r(), { languageFilter: g, updateLanguageFilter: _, setSelectedLanguage: v } = i(), [y, b] = a(g.search), x = [{
|
|
12
12
|
id: "1",
|
|
13
13
|
code: "en",
|
|
14
14
|
name: "English",
|
|
@@ -24,9 +24,9 @@ var m = () => {
|
|
|
24
24
|
direction: "ltr",
|
|
25
25
|
status: "active",
|
|
26
26
|
isDefault: !1
|
|
27
|
-
}],
|
|
28
|
-
|
|
29
|
-
},
|
|
27
|
+
}], S = (e) => {
|
|
28
|
+
b(e), _({ search: e });
|
|
29
|
+
}, C = "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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", w = (y ?? "").trim().length > 0 || g.status !== "all" || g.direction !== "all", T = x.filter((e) => e.status === "active").length, E = x.find((e) => e.isDefault);
|
|
30
30
|
return /* @__PURE__ */ s("div", {
|
|
31
31
|
className: "min-h-full w-full bg-bg-surface",
|
|
32
32
|
children: [/* @__PURE__ */ o("div", {
|
|
@@ -43,14 +43,14 @@ var m = () => {
|
|
|
43
43
|
})
|
|
44
44
|
}), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h1", {
|
|
45
45
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
46
|
-
children: /* @__PURE__ */ o(d, { children:
|
|
46
|
+
children: /* @__PURE__ */ o(d, { children: h("i18n.languages.title", "Languages") })
|
|
47
47
|
}), /* @__PURE__ */ o("p", {
|
|
48
48
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
49
|
-
children:
|
|
49
|
+
children: h("i18n.languages.subtitle", "Configure the locales your products ship in")
|
|
50
50
|
})] })]
|
|
51
51
|
}), /* @__PURE__ */ o(c, {
|
|
52
52
|
primary: {
|
|
53
|
-
label:
|
|
53
|
+
label: h("i18n.languages.actions.add", "Add Language"),
|
|
54
54
|
onSelect: () => void 0,
|
|
55
55
|
icon: /* @__PURE__ */ o(t, {
|
|
56
56
|
className: "size-4",
|
|
@@ -63,7 +63,7 @@ var m = () => {
|
|
|
63
63
|
}), /* @__PURE__ */ s("div", {
|
|
64
64
|
className: "mx-auto max-w-screen-xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */ o(p, { children:
|
|
66
|
+
/* @__PURE__ */ o(p, { children: h("i18n.languages.purpose", "This is the master list of every locale your products can ship in — the set of languages translators can work in and users can switch to. Add a language here before any of its translations can be entered, set which one is the default fallback, and configure its formatting and text direction.") }),
|
|
67
67
|
/* @__PURE__ */ s(l, {
|
|
68
68
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
69
69
|
children: [/* @__PURE__ */ s("div", {
|
|
@@ -76,10 +76,10 @@ var m = () => {
|
|
|
76
76
|
})
|
|
77
77
|
}), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("p", {
|
|
78
78
|
className: "text-sm font-medium text-text-secondary",
|
|
79
|
-
children:
|
|
79
|
+
children: h("i18n.languages.summary.label", "Languages configured")
|
|
80
80
|
}), /* @__PURE__ */ o("p", {
|
|
81
81
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
82
|
-
children:
|
|
82
|
+
children: x.length
|
|
83
83
|
})] })]
|
|
84
84
|
}), /* @__PURE__ */ s("div", {
|
|
85
85
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
@@ -88,10 +88,10 @@ var m = () => {
|
|
|
88
88
|
children: [/* @__PURE__ */ o("span", {
|
|
89
89
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
90
90
|
"aria-hidden": "true"
|
|
91
|
-
}),
|
|
92
|
-
}),
|
|
91
|
+
}), h("i18n.languages.summary.active", "{{count}} active", { count: T })]
|
|
92
|
+
}), E && /* @__PURE__ */ o("div", {
|
|
93
93
|
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary",
|
|
94
|
-
children:
|
|
94
|
+
children: h("i18n.languages.summary.default", "Default: {{name}}", { name: E.name })
|
|
95
95
|
})]
|
|
96
96
|
})]
|
|
97
97
|
}),
|
|
@@ -105,69 +105,69 @@ var m = () => {
|
|
|
105
105
|
"aria-hidden": "true"
|
|
106
106
|
}), /* @__PURE__ */ o("input", {
|
|
107
107
|
type: "text",
|
|
108
|
-
"aria-label":
|
|
109
|
-
placeholder:
|
|
110
|
-
value:
|
|
111
|
-
onChange: (e) =>
|
|
108
|
+
"aria-label": h("i18n.languages.filters.searchAriaLabel", "Search languages"),
|
|
109
|
+
placeholder: h("i18n.languages.filters.searchPlaceholder", "Search languages..."),
|
|
110
|
+
value: y,
|
|
111
|
+
onChange: (e) => S(e.target.value),
|
|
112
112
|
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)]"
|
|
113
113
|
})]
|
|
114
114
|
}),
|
|
115
|
-
/* @__PURE__ */ s(
|
|
116
|
-
"aria-label":
|
|
117
|
-
value:
|
|
118
|
-
onChange: (e) =>
|
|
119
|
-
className:
|
|
115
|
+
/* @__PURE__ */ s(m, {
|
|
116
|
+
"aria-label": h("i18n.languages.filters.status.label", "Filter by status"),
|
|
117
|
+
value: g.status,
|
|
118
|
+
onChange: (e) => _({ status: e.target.value }),
|
|
119
|
+
className: C,
|
|
120
120
|
children: [
|
|
121
121
|
/* @__PURE__ */ o("option", {
|
|
122
122
|
value: "all",
|
|
123
|
-
children:
|
|
123
|
+
children: h("i18n.languages.filters.status.all", "All Status")
|
|
124
124
|
}),
|
|
125
125
|
/* @__PURE__ */ o("option", {
|
|
126
126
|
value: "active",
|
|
127
|
-
children:
|
|
127
|
+
children: h("i18n.shared.status.active", "Active")
|
|
128
128
|
}),
|
|
129
129
|
/* @__PURE__ */ o("option", {
|
|
130
130
|
value: "inactive",
|
|
131
|
-
children:
|
|
131
|
+
children: h("i18n.shared.status.inactive", "Inactive")
|
|
132
132
|
})
|
|
133
133
|
]
|
|
134
134
|
}),
|
|
135
|
-
/* @__PURE__ */ s(
|
|
136
|
-
"aria-label":
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
139
|
-
className:
|
|
135
|
+
/* @__PURE__ */ s(m, {
|
|
136
|
+
"aria-label": h("i18n.languages.filters.direction.label", "Filter by direction"),
|
|
137
|
+
value: g.direction,
|
|
138
|
+
onChange: (e) => _({ direction: e.target.value }),
|
|
139
|
+
className: C,
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ o("option", {
|
|
142
142
|
value: "all",
|
|
143
|
-
children:
|
|
143
|
+
children: h("i18n.languages.filters.direction.all", "All Directions")
|
|
144
144
|
}),
|
|
145
145
|
/* @__PURE__ */ o("option", {
|
|
146
146
|
value: "ltr",
|
|
147
|
-
children:
|
|
147
|
+
children: h("i18n.shared.direction.ltr", "LTR")
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ o("option", {
|
|
150
150
|
value: "rtl",
|
|
151
|
-
children:
|
|
151
|
+
children: h("i18n.shared.direction.rtl", "RTL")
|
|
152
152
|
})
|
|
153
153
|
]
|
|
154
154
|
})
|
|
155
155
|
]
|
|
156
156
|
}),
|
|
157
|
-
|
|
158
|
-
illustration:
|
|
159
|
-
title:
|
|
160
|
-
description:
|
|
157
|
+
x.length === 0 && /* @__PURE__ */ o(f, {
|
|
158
|
+
illustration: w ? "empty-search" : "empty-data",
|
|
159
|
+
title: w ? h("i18n.languages.empty.search.title", "No languages match") : h("i18n.languages.empty.title", "No languages yet"),
|
|
160
|
+
description: w ? h("i18n.languages.empty.search.description", "Adjust your filters to see more languages.") : h("i18n.languages.empty.description", "Add a language to begin localizing your products.")
|
|
161
161
|
}),
|
|
162
|
-
|
|
162
|
+
x.length > 0 && /* @__PURE__ */ o("div", {
|
|
163
163
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
164
|
-
children:
|
|
164
|
+
children: x.map((e, t) => /* @__PURE__ */ o(u, {
|
|
165
165
|
treatment: "metric",
|
|
166
166
|
glow: t === 0,
|
|
167
167
|
className: "border-border-seam",
|
|
168
168
|
children: /* @__PURE__ */ o("button", {
|
|
169
169
|
type: "button",
|
|
170
|
-
onClick: () =>
|
|
170
|
+
onClick: () => v(e),
|
|
171
171
|
className: "block w-full cursor-pointer rounded-[inherit] p-5 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
172
172
|
children: /* @__PURE__ */ s("div", {
|
|
173
173
|
className: "flex items-start justify-between gap-3",
|
|
@@ -181,7 +181,7 @@ var m = () => {
|
|
|
181
181
|
children: e.name
|
|
182
182
|
}), e.isDefault && /* @__PURE__ */ o("span", {
|
|
183
183
|
className: "rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
|
|
184
|
-
children:
|
|
184
|
+
children: h("i18n.languages.badges.default", "Default")
|
|
185
185
|
})]
|
|
186
186
|
}),
|
|
187
187
|
/* @__PURE__ */ o("p", {
|
|
@@ -191,19 +191,19 @@ var m = () => {
|
|
|
191
191
|
/* @__PURE__ */ s("div", {
|
|
192
192
|
className: "mt-2 flex items-center gap-3 text-xs text-text-tertiary tabular-nums",
|
|
193
193
|
children: [
|
|
194
|
-
/* @__PURE__ */ o("span", { children:
|
|
194
|
+
/* @__PURE__ */ o("span", { children: h("i18n.languages.card.code", "Code: {{code}}", { code: e.code }) }),
|
|
195
195
|
/* @__PURE__ */ o("span", {
|
|
196
196
|
"aria-hidden": "true",
|
|
197
197
|
children: "•"
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */ o("span", { children: e.direction === "ltr" ?
|
|
199
|
+
/* @__PURE__ */ o("span", { children: e.direction === "ltr" ? h("i18n.shared.direction.ltr", "LTR") : h("i18n.shared.direction.rtl", "RTL") })
|
|
200
200
|
]
|
|
201
201
|
})
|
|
202
202
|
]
|
|
203
203
|
}), /* @__PURE__ */ o("span", {
|
|
204
204
|
className: `mt-1 size-2 rounded-full ${e.status === "active" ? "bg-status-success-text motion-safe:animate-vc-glow-pulse" : "bg-text-tertiary"}`,
|
|
205
|
-
title: e.status === "active" ?
|
|
206
|
-
"aria-label": e.status === "active" ?
|
|
205
|
+
title: e.status === "active" ? h("i18n.shared.status.active", "Active") : h("i18n.shared.status.inactive", "Inactive"),
|
|
206
|
+
"aria-label": e.status === "active" ? h("i18n.shared.status.active", "Active") : h("i18n.shared.status.inactive", "Inactive")
|
|
207
207
|
})]
|
|
208
208
|
})
|
|
209
209
|
})
|
|
@@ -213,4 +213,4 @@ var m = () => {
|
|
|
213
213
|
})]
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
|
-
export {
|
|
216
|
+
export { h as LanguagesListPage };
|
|
@@ -6,10 +6,10 @@ import { useTr as i } from "../hooks/useTr.js";
|
|
|
6
6
|
import { useI18nStore as a } from "../store/i18nStore.js";
|
|
7
7
|
import { useNavigate as o } from "react-router";
|
|
8
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
|
+
import { CTAOverflowMenu as l, EmphasisPanel as u, GlassCard as d, GradientText as f, NextSteps as p, PagePurpose as m, ShowMore as h, ThemedSelect as g } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
// src/i18n/pages/ProgressDashboardPage.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
11
|
+
var _ = () => {
|
|
12
|
+
let _ = i(), { progressView: v, updateProgressView: y } = a(), b = o(), x = [
|
|
13
13
|
{
|
|
14
14
|
languageKey: "i18n.shared.language.en",
|
|
15
15
|
languageFallback: "English (en)",
|
|
@@ -50,7 +50,7 @@ var g = () => {
|
|
|
50
50
|
translated: 187,
|
|
51
51
|
percentage: 15
|
|
52
52
|
}
|
|
53
|
-
],
|
|
53
|
+
], S = [
|
|
54
54
|
{
|
|
55
55
|
statusKey: "i18n.progress.status.published",
|
|
56
56
|
statusFallback: "Published",
|
|
@@ -86,32 +86,32 @@ var g = () => {
|
|
|
86
86
|
percentage: 32,
|
|
87
87
|
color: "bg-status-danger-text"
|
|
88
88
|
}
|
|
89
|
-
],
|
|
89
|
+
], C = [
|
|
90
90
|
{
|
|
91
91
|
key: "totalKeys",
|
|
92
|
-
label:
|
|
92
|
+
label: _("i18n.progress.stats.totalKeys", "Total Keys"),
|
|
93
93
|
value: "6,225",
|
|
94
94
|
valueClass: "text-text-primary"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: "translated",
|
|
98
|
-
label:
|
|
98
|
+
label: _("i18n.progress.stats.translated", "Translated"),
|
|
99
99
|
value: "3,735",
|
|
100
100
|
valueClass: "text-status-success-text"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: "overallCoverage",
|
|
104
|
-
label:
|
|
104
|
+
label: _("i18n.progress.stats.overallCoverage", "Overall Coverage"),
|
|
105
105
|
value: "68%",
|
|
106
106
|
valueClass: "text-primary"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
key: "languages",
|
|
110
|
-
label:
|
|
110
|
+
label: _("i18n.progress.stats.languages", "Languages"),
|
|
111
111
|
value: "5",
|
|
112
112
|
valueClass: "text-text-primary"
|
|
113
113
|
}
|
|
114
|
-
],
|
|
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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary";
|
|
115
115
|
return /* @__PURE__ */ c("div", {
|
|
116
116
|
className: "min-h-full w-full bg-bg-surface",
|
|
117
117
|
children: [/* @__PURE__ */ s("div", {
|
|
@@ -128,14 +128,14 @@ var g = () => {
|
|
|
128
128
|
})
|
|
129
129
|
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h1", {
|
|
130
130
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
131
|
-
children: /* @__PURE__ */ s(f, { children:
|
|
131
|
+
children: /* @__PURE__ */ s(f, { children: _("i18n.progress.title", "Translation Progress") })
|
|
132
132
|
}), /* @__PURE__ */ s("p", {
|
|
133
133
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
134
|
-
children:
|
|
134
|
+
children: _("i18n.progress.subtitle", "Coverage and status across every locale")
|
|
135
135
|
})] })]
|
|
136
136
|
}), /* @__PURE__ */ s(l, {
|
|
137
137
|
primary: {
|
|
138
|
-
label:
|
|
138
|
+
label: _("i18n.progress.actions.export", "Export"),
|
|
139
139
|
onSelect: () => void 0,
|
|
140
140
|
icon: /* @__PURE__ */ s(t, {
|
|
141
141
|
className: "size-4",
|
|
@@ -143,7 +143,7 @@ var g = () => {
|
|
|
143
143
|
})
|
|
144
144
|
},
|
|
145
145
|
actions: [{
|
|
146
|
-
label:
|
|
146
|
+
label: _("i18n.progress.actions.generateReport", "Generate Report"),
|
|
147
147
|
onSelect: () => void 0,
|
|
148
148
|
icon: /* @__PURE__ */ s(n, {
|
|
149
149
|
className: "size-4",
|
|
@@ -155,27 +155,27 @@ var g = () => {
|
|
|
155
155
|
}), /* @__PURE__ */ c("div", {
|
|
156
156
|
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ s(m, { 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
159
|
/* @__PURE__ */ s(p, {
|
|
160
160
|
storageKey: "i18n-progress",
|
|
161
161
|
steps: [
|
|
162
162
|
{
|
|
163
163
|
id: "focus-language",
|
|
164
|
-
label:
|
|
165
|
-
description:
|
|
166
|
-
onClick: () =>
|
|
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
167
|
},
|
|
168
168
|
{
|
|
169
169
|
id: "review-status",
|
|
170
|
-
label:
|
|
171
|
-
description:
|
|
172
|
-
onClick: () =>
|
|
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
173
|
},
|
|
174
174
|
{
|
|
175
175
|
id: "export-snapshot",
|
|
176
|
-
label:
|
|
177
|
-
description:
|
|
178
|
-
onClick: () =>
|
|
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
179
|
}
|
|
180
180
|
]
|
|
181
181
|
}),
|
|
@@ -191,7 +191,7 @@ var g = () => {
|
|
|
191
191
|
})
|
|
192
192
|
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("p", {
|
|
193
193
|
className: "text-sm font-medium text-text-secondary",
|
|
194
|
-
children:
|
|
194
|
+
children: _("i18n.progress.stats.overallCoverage", "Overall Coverage")
|
|
195
195
|
}), /* @__PURE__ */ s("p", {
|
|
196
196
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
197
197
|
children: "68%"
|
|
@@ -200,19 +200,19 @@ var g = () => {
|
|
|
200
200
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
201
201
|
children: [/* @__PURE__ */ s("div", {
|
|
202
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:
|
|
203
|
+
children: _("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
|
|
204
204
|
}), /* @__PURE__ */ c("div", {
|
|
205
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
206
|
children: [/* @__PURE__ */ s("span", {
|
|
207
207
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
208
208
|
"aria-hidden": "true"
|
|
209
|
-
}),
|
|
209
|
+
}), _("i18n.progress.summary.languages", "5 languages")]
|
|
210
210
|
})]
|
|
211
211
|
})]
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ s("div", {
|
|
214
214
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
215
|
-
children:
|
|
215
|
+
children: C.map((e, t) => /* @__PURE__ */ c(d, {
|
|
216
216
|
treatment: "metric",
|
|
217
217
|
glow: t === 2,
|
|
218
218
|
className: "border-border-seam p-5",
|
|
@@ -227,55 +227,55 @@ var g = () => {
|
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ s(h, {
|
|
229
229
|
collapsedHeight: 0,
|
|
230
|
-
label:
|
|
230
|
+
label: _("i18n.progress.controls.show", "Display options"),
|
|
231
231
|
children: /* @__PURE__ */ c("div", {
|
|
232
232
|
className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
|
|
233
233
|
children: [
|
|
234
234
|
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
235
235
|
htmlFor: "progress-group-by",
|
|
236
236
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
237
|
-
children:
|
|
238
|
-
}), /* @__PURE__ */ c(
|
|
237
|
+
children: _("i18n.progress.filters.groupBy", "Group By")
|
|
238
|
+
}), /* @__PURE__ */ c(g, {
|
|
239
239
|
id: "progress-group-by",
|
|
240
|
-
value:
|
|
241
|
-
onChange: (e) =>
|
|
242
|
-
className:
|
|
240
|
+
value: v.groupBy,
|
|
241
|
+
onChange: (e) => y({ groupBy: e.target.value }),
|
|
242
|
+
className: w,
|
|
243
243
|
children: [
|
|
244
244
|
/* @__PURE__ */ s("option", {
|
|
245
245
|
value: "language",
|
|
246
|
-
children:
|
|
246
|
+
children: _("i18n.progress.filters.groupBy.language", "Language")
|
|
247
247
|
}),
|
|
248
248
|
/* @__PURE__ */ s("option", {
|
|
249
249
|
value: "product",
|
|
250
|
-
children:
|
|
250
|
+
children: _("i18n.progress.filters.groupBy.product", "Product")
|
|
251
251
|
}),
|
|
252
252
|
/* @__PURE__ */ s("option", {
|
|
253
253
|
value: "module",
|
|
254
|
-
children:
|
|
254
|
+
children: _("i18n.progress.filters.groupBy.module", "Module")
|
|
255
255
|
})
|
|
256
256
|
]
|
|
257
257
|
})] }),
|
|
258
258
|
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
259
259
|
htmlFor: "progress-chart-type",
|
|
260
260
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
261
|
-
children:
|
|
262
|
-
}), /* @__PURE__ */ c(
|
|
261
|
+
children: _("i18n.progress.filters.chartType", "Chart Type")
|
|
262
|
+
}), /* @__PURE__ */ c(g, {
|
|
263
263
|
id: "progress-chart-type",
|
|
264
|
-
value:
|
|
265
|
-
onChange: (e) =>
|
|
266
|
-
className:
|
|
264
|
+
value: v.chartType,
|
|
265
|
+
onChange: (e) => y({ chartType: e.target.value }),
|
|
266
|
+
className: w,
|
|
267
267
|
children: [
|
|
268
268
|
/* @__PURE__ */ s("option", {
|
|
269
269
|
value: "bar",
|
|
270
|
-
children:
|
|
270
|
+
children: _("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ s("option", {
|
|
273
273
|
value: "pie",
|
|
274
|
-
children:
|
|
274
|
+
children: _("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ s("option", {
|
|
277
277
|
value: "heatmap",
|
|
278
|
-
children:
|
|
278
|
+
children: _("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
279
279
|
})
|
|
280
280
|
]
|
|
281
281
|
})] }),
|
|
@@ -284,14 +284,14 @@ var g = () => {
|
|
|
284
284
|
children: [/* @__PURE__ */ s("input", {
|
|
285
285
|
type: "checkbox",
|
|
286
286
|
id: "show-percentages",
|
|
287
|
-
"aria-label":
|
|
288
|
-
checked:
|
|
289
|
-
onChange: (e) =>
|
|
287
|
+
"aria-label": _("i18n.progress.filters.showPercentages", "Show Percentages"),
|
|
288
|
+
checked: v.showPercentages,
|
|
289
|
+
onChange: (e) => y({ showPercentages: e.target.checked }),
|
|
290
290
|
className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
291
291
|
}), /* @__PURE__ */ s("label", {
|
|
292
292
|
htmlFor: "show-percentages",
|
|
293
293
|
className: "text-sm text-text-primary",
|
|
294
|
-
children:
|
|
294
|
+
children: _("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
295
295
|
})]
|
|
296
296
|
})
|
|
297
297
|
]
|
|
@@ -302,14 +302,14 @@ var g = () => {
|
|
|
302
302
|
className: "border-border-seam p-6",
|
|
303
303
|
children: [/* @__PURE__ */ s("h2", {
|
|
304
304
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
305
|
-
children:
|
|
305
|
+
children: _("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
306
306
|
}), /* @__PURE__ */ s("div", {
|
|
307
307
|
className: "space-y-3",
|
|
308
|
-
children:
|
|
308
|
+
children: x.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
309
309
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
310
310
|
children: [/* @__PURE__ */ s("span", {
|
|
311
311
|
className: "text-text-primary",
|
|
312
|
-
children:
|
|
312
|
+
children: _(e.languageKey, e.languageFallback)
|
|
313
313
|
}), /* @__PURE__ */ c("span", {
|
|
314
314
|
className: "text-text-tertiary tabular-nums",
|
|
315
315
|
children: [
|
|
@@ -327,7 +327,7 @@ var g = () => {
|
|
|
327
327
|
"aria-valuenow": e.percentage,
|
|
328
328
|
"aria-valuemin": 0,
|
|
329
329
|
"aria-valuemax": 100,
|
|
330
|
-
"aria-label":
|
|
330
|
+
"aria-label": _(e.languageKey, e.languageFallback),
|
|
331
331
|
children: /* @__PURE__ */ s("div", {
|
|
332
332
|
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
333
333
|
style: { width: `${e.percentage}%` }
|
|
@@ -340,14 +340,14 @@ var g = () => {
|
|
|
340
340
|
className: "border-border-seam p-6",
|
|
341
341
|
children: [/* @__PURE__ */ s("h2", {
|
|
342
342
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
343
|
-
children:
|
|
343
|
+
children: _("i18n.progress.sections.byStatus", "By Status")
|
|
344
344
|
}), /* @__PURE__ */ s("div", {
|
|
345
345
|
className: "space-y-3",
|
|
346
|
-
children:
|
|
346
|
+
children: S.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
347
347
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
348
348
|
children: [/* @__PURE__ */ s("span", {
|
|
349
349
|
className: "text-text-primary",
|
|
350
|
-
children:
|
|
350
|
+
children: _(e.statusKey, e.statusFallback)
|
|
351
351
|
}), /* @__PURE__ */ c("span", {
|
|
352
352
|
className: "text-text-tertiary tabular-nums",
|
|
353
353
|
children: [
|
|
@@ -363,7 +363,7 @@ var g = () => {
|
|
|
363
363
|
"aria-valuenow": e.percentage,
|
|
364
364
|
"aria-valuemin": 0,
|
|
365
365
|
"aria-valuemax": 100,
|
|
366
|
-
"aria-label":
|
|
366
|
+
"aria-label": _(e.statusKey, e.statusFallback),
|
|
367
367
|
children: /* @__PURE__ */ s("div", {
|
|
368
368
|
className: `h-full rounded-full transition-all ${e.color}`,
|
|
369
369
|
style: { width: `${e.percentage}%` }
|
|
@@ -375,4 +375,4 @@ var g = () => {
|
|
|
375
375
|
})]
|
|
376
376
|
});
|
|
377
377
|
};
|
|
378
|
-
export {
|
|
378
|
+
export { _ as ProgressDashboardPage };
|