ci: trigga på master + formatfix inför Gitea Actions
CI / Typecheck, test & build (push) Failing after 2s
CI / Typecheck, test & build (push) Failing after 2s
This commit is contained in:
@@ -84,9 +84,7 @@ export function AnalyticsPage() {
|
||||
};
|
||||
|
||||
const loadRetention = () => {
|
||||
api<RetentionResult>(
|
||||
`/admin/v1/analytics/retention?startDate=${retStart}&endDate=${retEnd}`,
|
||||
)
|
||||
api<RetentionResult>(`/admin/v1/analytics/retention?startDate=${retStart}&endDate=${retEnd}`)
|
||||
.then(setRetention)
|
||||
.catch((e) => setError(String(e.message)));
|
||||
};
|
||||
|
||||
@@ -114,10 +114,7 @@ export function ReleaseGatesPage() {
|
||||
}
|
||||
};
|
||||
|
||||
const categories = useMemo(
|
||||
() => Array.from(new Set(gates.map((g) => g.category))),
|
||||
[gates],
|
||||
);
|
||||
const categories = useMemo(() => Array.from(new Set(gates.map((g) => g.category))), [gates]);
|
||||
|
||||
const filtered = useMemo(
|
||||
() => (category === "all" ? gates : gates.filter((g) => g.category === category)),
|
||||
@@ -151,8 +148,14 @@ export function ReleaseGatesPage() {
|
||||
<div className="stat-grid" style={{ marginTop: "1rem" }}>
|
||||
<div className="stat">
|
||||
<div className="value">
|
||||
<span className={`badge ${summary.overall === "go" ? "ok" : summary.overall === "no_go" ? "err" : ""}`}>
|
||||
{summary.overall === "go" ? "GO" : summary.overall === "no_go" ? "NO-GO" : "Väntar"}
|
||||
<span
|
||||
className={`badge ${summary.overall === "go" ? "ok" : summary.overall === "no_go" ? "err" : ""}`}
|
||||
>
|
||||
{summary.overall === "go"
|
||||
? "GO"
|
||||
: summary.overall === "no_go"
|
||||
? "NO-GO"
|
||||
: "Väntar"}
|
||||
</span>
|
||||
</div>
|
||||
<div className="label">Övergripande beslut</div>
|
||||
@@ -209,7 +212,9 @@ export function ReleaseGatesPage() {
|
||||
</td>
|
||||
<td>{g.evaluationWindowDays} dagar</td>
|
||||
<td>{g.blocking ? "Ja" : "Nej"}</td>
|
||||
<td>{g.lastEvaluatedAt ? new Date(g.lastEvaluatedAt).toLocaleString("sv-SE") : "–"}</td>
|
||||
<td>
|
||||
{g.lastEvaluatedAt ? new Date(g.lastEvaluatedAt).toLocaleString("sv-SE") : "–"}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user