fix(i18n): localize /order validera, production stage meta, admin customers, meta description

- /order/[id]/validera: full rewrite — useT imported but never called; TABS/DIMENSIONS/CHECKS
  all Swedish; source={l.text} passed Loc object as string (type bug). Stable TabKey enum,
  all strings wrapped, fixed ProvenanceBadge source={t(l.text)}.
- /order/[id]: STAGES.meta typed as Loc; "dokument"/"LEI-länk"/"tröskel" → English.
- /admin/customers: "okänd" fallback → "unknown" stable key, translated at display layer.
- layout.tsx: meta description was Swedish, converted to English (default locale).

tsc 0 + build green.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 16:57:10 +02:00
co-authored by Claude Sonnet 4.6
parent a928ae4e98
commit 8b34271216
4 changed files with 146 additions and 77 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ interface CustomerRow {
function groupByFlow(orders: Order[]): CustomerRow[] {
const map = new Map<string, CustomerRow>();
for (const o of orders) {
const name = o.flow || "okänd";
const name = o.flow || "unknown";
const row = map.get(name) ?? { name, orders: 0, totalOre: 0, last: "" };
row.orders += 1;
row.totalOre += o.total_ore ?? 0;
@@ -121,7 +121,7 @@ export default function AdminCustomersPage() {
className="inline-block h-2 w-2 shrink-0"
style={{ backgroundColor: "var(--prov-2)" }}
/>
<span className="truncate">{c.name}</span>
<span className="truncate">{c.name === "unknown" ? t({ en: "Unknown", sv: "Okänd" }) : c.name}</span>
</span>
<span className="text-right font-mono text-xs tabular-nums text-muted-foreground">
{c.orders}
+1 -1
View File
@@ -11,7 +11,7 @@ const jetbrainsMono = JetBrains_Mono({ subsets: ["latin"], variable: "--font-jet
export const metadata: Metadata = {
title: "0pt — your data",
description:
"Datatjänster på beställning för Norden & Europa. Härkomst per fält, GDPR-native. Sätt ihop ditt datajobb, betala 50 % för att starta, följ produktionen live och validera resultatet med full insyn.",
"Data services on demand for the Nordics & Europe. Provenance per field, GDPR-native. Compose your data job, pay 50% to start, watch production live, and validate the result with full transparency.",
generator: "0pt.app",
};
+7 -7
View File
@@ -8,12 +8,12 @@ import { useT } from "@/components/locale-provider";
import { useReveal } from "@/hooks/use-reveal";
import { getLocalOrder } from "@/lib/order-client";
const STAGES: { key: string; title: { en: string; sv: string }; meta: string }[] = [
{ key: "source", title: { en: "Source race", sv: "Källracing" }, meta: "GLEIF · Brreg · CVR · PRH" },
{ key: "extract", title: { en: "Extraction & OCR", sv: "Extraktion & OCR" }, meta: "register-API · dokument" },
{ key: "structure", title: { en: "Structuring & matching", sv: "Strukturering & matchning" }, meta: "NER · entity resolution · LEI-länk" },
{ key: "enrich", title: { en: "Enrichment & fusion", sv: "Berikning & fusion" }, meta: "multi-source agreement" },
{ key: "quality", title: { en: "Quality control", sv: "Kvalitetskontroll" }, meta: "expectations · dedup · tröskel" },
const STAGES: { key: string; title: { en: string; sv: string }; meta: { en: string; sv: string } }[] = [
{ key: "source", title: { en: "Source race", sv: "Källracing" }, meta: { en: "GLEIF · Brreg · CVR · PRH", sv: "GLEIF · Brreg · CVR · PRH" } },
{ key: "extract", title: { en: "Extraction & OCR", sv: "Extraktion & OCR" }, meta: { en: "register-API · documents", sv: "register-API · dokument" } },
{ key: "structure", title: { en: "Structuring & matching", sv: "Strukturering & matchning"}, meta: { en: "NER · entity resolution · LEI-link", sv: "NER · entity resolution · LEI-länk" } },
{ key: "enrich", title: { en: "Enrichment & fusion", sv: "Berikning & fusion" }, meta: { en: "multi-source agreement", sv: "multi-source agreement" } },
{ key: "quality", title: { en: "Quality control", sv: "Kvalitetskontroll" }, meta: { en: "expectations · dedup · threshold", sv: "expectations · dedup · tröskel" } },
];
const MARKET_KEYS = [
{ code: "SE", speed: 1.0 },
@@ -192,7 +192,7 @@ export default function ProductionPage() {
/>
</div>
<p className="mt-3 pl-10 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
{s.meta}
{t(s.meta)}
</p>
</div>
);
+136 -67
View File
@@ -7,31 +7,70 @@ import { useT } from "@/components/locale-provider";
import { useReveal } from "@/hooks/use-reveal";
import { CellProvenance, ProvenanceBadge, PROVENANCE_LEGEND } from "@/components/provenance-badge";
import { MARKETS, SAMPLE_ROWS, formatSEK } from "@/lib/data";
import type { Loc } from "@/lib/data";
const TABS = ["Tabell", "Täckning", "Schema & arkitektur", "Kvalitetsrapport"] as const;
type Tab = (typeof TABS)[number];
type TabKey = "table" | "coverage" | "schema" | "quality";
const TABS: { key: TabKey; label: Loc }[] = [
{ key: "table", label: { en: "Table", sv: "Tabell" } },
{ key: "coverage", label: { en: "Coverage", sv: "Täckning" } },
{ key: "schema", label: { en: "Schema & arch", sv: "Schema & arkitektur"} },
{ key: "quality", label: { en: "Quality report", sv: "Kvalitetsrapport" } },
];
const DESTINATIONS = ["CSV", "Tabellvy (NocoDB)", "Parquet", "JSON", "Dashboard (Metabase)", "API", "Webhook", "FiveCRM", "Google Sheets"];
const DIMENSIONS: [string, number, boolean][] = [
["Komplett", 97, false], ["Färskhet", 93, false], ["Korroborering", 88, true], ["Unikhet", 99, false], ["Giltighet", 96, false],
const DESTINATIONS: { id: string; label: Loc }[] = [
{ id: "csv", label: { en: "CSV", sv: "CSV" } },
{ id: "nocodb", label: { en: "Table view (NocoDB)", sv: "Tabellvy (NocoDB)" } },
{ id: "parquet", label: { en: "Parquet", sv: "Parquet" } },
{ id: "json", label: { en: "JSON", sv: "JSON" } },
{ id: "metabase", label: { en: "Dashboard (Metabase)", sv: "Dashboard (Metabase)" } },
{ id: "api", label: { en: "API", sv: "API" } },
{ id: "webhook", label: { en: "Webhook", sv: "Webhook" } },
{ id: "fivecrm", label: { en: "FiveCRM", sv: "FiveCRM" } },
{ id: "sheets", label: { en: "Google Sheets", sv: "Google Sheets" } },
];
const CHECKS = [
"Org.nr mot register-checksumma", "LEI mot GLEIF", "E-post MX-verifierad",
"Dubbletter sammanslagna", "20 poster under tröskel utelämnade", "Sanktions/PEP-skärm utan träff",
const DIMENSIONS: { label: Loc; value: number; amber: boolean }[] = [
{ label: { en: "Complete", sv: "Komplett" }, value: 97, amber: false },
{ label: { en: "Freshness", sv: "Färskhet" }, value: 93, amber: false },
{ label: { en: "Corroboration", sv: "Korroborering" }, value: 88, amber: true },
{ label: { en: "Uniqueness", sv: "Unikhet" }, value: 99, amber: false },
{ label: { en: "Validity", sv: "Giltighet" }, value: 96, amber: false },
];
const CHECKS: Loc[] = [
{ en: "Org.no against register checksum", sv: "Org.nr mot register-checksumma" },
{ en: "LEI against GLEIF", sv: "LEI mot GLEIF" },
{ en: "Email MX-verified", sv: "E-post MX-verifierad" },
{ en: "Duplicates merged", sv: "Dubbletter sammanslagna" },
{ en: "20 records below threshold omitted", sv: "20 poster under tröskel utelämnade" },
{ en: "Sanctions/PEP screen — no match", sv: "Sanktions/PEP-skärm utan träff" },
];
const TABLE_HEADERS: Loc[] = [
{ en: "Org.no", sv: "Org.nr" },
{ en: "Company", sv: "Bolag" },
{ en: "HQ", sv: "Säte" },
{ en: "SNI", sv: "SNI" },
{ en: "Employees", sv: "Anställda" },
{ en: "Revenue (tSEK)", sv: "Oms. (tkr)" },
{ en: "Email", sv: "E-post" },
{ en: "LEI", sv: "LEI" },
];
const ENTITIES = [
{ name: "dim_company", key: true, cols: ["company_id PK", "org_nr", "lei FK", "name"] },
{ name: "fact_financials", key: false, cols: ["company_id FK", "year", "revenue", "result"] },
{ name: "dim_contact", key: false, cols: ["contact_id PK", "company_id FK", "email"] },
{ name: "dim_ubo", key: false, cols: ["ubo_id PK", "company_id FK", "share_pct"] },
{ name: "bridge_provenance", key: true, cols: ["field_id PK", "source_id FK", "confidence", "fetched_at"] },
{ name: "dim_source", key: false, cols: ["source_id PK", "name", "license", "freshness"] },
{ name: "dim_company", key: true, cols: ["company_id PK", "org_nr", "lei FK", "name"] },
{ name: "fact_financials", key: false, cols: ["company_id FK", "year", "revenue", "result"] },
{ name: "dim_contact", key: false, cols: ["contact_id PK", "company_id FK", "email"] },
{ name: "dim_ubo", key: false, cols: ["ubo_id PK", "company_id FK", "share_pct"] },
{ name: "bridge_provenance", key: true, cols: ["field_id PK", "source_id FK", "confidence", "fetched_at"] },
{ name: "dim_source", key: false, cols: ["source_id PK", "name", "license", "freshness"] },
];
export default function ValidationPage() {
const t = useT();
const { id } = useParams<{ id: string }>();
const [tab, setTab] = useState<Tab>("Tabell");
const [dests, setDests] = useState<string[]>(["CSV", "Tabellvy (NocoDB)"]);
const [tab, setTab] = useState<TabKey>("table");
const [dests, setDests] = useState<string[]>(["csv", "nocodb"]);
const [approved, setApproved] = useState(false);
const ref = useReveal<HTMLElement>();
@@ -52,26 +91,25 @@ export default function ValidationPage() {
<main ref={ref} className="min-h-screen bg-background text-foreground">
<OrderStepper active={4} />
{/* header — oversized faint numeral as graphic texture */}
{/* header */}
<div className="relative overflow-hidden border-b border-border">
<span
aria-hidden
className="pointer-events-none absolute -right-3 -top-6 select-none font-mono text-[clamp(7rem,22vw,15rem)] font-medium leading-none tracking-[-0.05em] text-secondary"
>
<span aria-hidden className="pointer-events-none absolute -right-3 -top-6 select-none font-mono text-[clamp(7rem,22vw,15rem)] font-medium leading-none tracking-[-0.05em] text-secondary">
04
</span>
<div className="relative mx-auto max-w-[80rem] px-6 py-16 md:py-24">
<div className="reveal flex items-center gap-3">
<span aria-hidden className="animate-float inline-block h-2 w-2" style={{ backgroundColor: "var(--accent-red)" }} />
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">Steg 04 — Validera</p>
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">
{t({ en: "Step 04 — Validate", sv: "Steg 04 — Validera" })}
</p>
</div>
<h1 className="reveal delay-1 mt-6 max-w-3xl text-[clamp(2.4rem,6vw,4.5rem)] font-medium leading-[0.95] tracking-[-0.035em]">
Granska allt.
{t({ en: "Review everything.", sv: "Granska allt." })}
<br />
Godkänn fritt.
{t({ en: "Approve freely.", sv: "Godkänn fritt." })}
</h1>
<p className="reveal delay-2 mt-6 font-mono text-[11px] uppercase tracking-[0.1em] text-muted-foreground">
Källan syns. Alltid. Inget gissat.
{t({ en: "The source is visible. Always. Nothing guessed.", sv: "Källan syns. Alltid. Inget gissat." })}
</p>
</div>
</div>
@@ -79,39 +117,39 @@ export default function ValidationPage() {
<div className="mx-auto max-w-[80rem] px-6 py-12">
{/* tabs */}
<div className="reveal flex flex-wrap border-b border-border">
{TABS.map((t, i) => (
{TABS.map((tb, i) => (
<button
key={t}
onClick={() => setTab(t)}
key={tb.key}
onClick={() => setTab(tb.key)}
className="group relative -mb-px px-5 py-3.5 font-mono text-[11px] uppercase tracking-[0.12em] transition-colors"
style={{ color: tab === t ? "var(--foreground)" : "var(--muted-foreground)" }}
style={{ color: tab === tb.key ? "var(--foreground)" : "var(--muted-foreground)" }}
>
<span className="mr-2 text-muted-foreground">{String(i + 1).padStart(2, "0")}</span>
{t}
{t(tb.label)}
<span
aria-hidden
className="absolute bottom-0 left-0 h-px bg-foreground transition-all duration-300 ease-out"
style={{ width: tab === t ? "100%" : "0%" }}
style={{ width: tab === tb.key ? "100%" : "0%" }}
/>
<span aria-hidden className="absolute bottom-0 left-0 h-px w-0 bg-border transition-[width] duration-300 ease-out group-hover:w-full" />
</button>
))}
</div>
<div className="mt-10">
{tab === "Tabell" ? (
{/* Table tab */}
{tab === "table" ? (
<div className="reveal-fade">
<div className="mb-5 flex flex-wrap gap-2">
{PROVENANCE_LEGEND.map((l) => (
<ProvenanceBadge key={l.level} level={l.level} source={l.text} />
<ProvenanceBadge key={l.level} level={l.level} source={t(l.text)} />
))}
</div>
<div className="overflow-x-auto border border-border">
<table className="w-full border-collapse text-sm">
<thead>
<tr className="border-b border-border bg-secondary">
{["Org.nr", "Bolag", "Säte", "SNI", "Anställda", "Oms. (tkr)", "E-post", "LEI"].map((h) => (
<th key={h} className="px-3 py-2.5 text-left font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{h}</th>
{TABLE_HEADERS.map((h) => (
<th key={h.en} className="px-3 py-2.5 text-left font-mono text-[10px] uppercase tracking-[0.1em] text-muted-foreground">{t(h)}</th>
))}
</tr>
</thead>
@@ -125,7 +163,11 @@ export default function ValidationPage() {
<td className="px-3 py-2.5 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.anstallda)}<CellProvenance level={2} /></td>
<td className="px-3 py-2.5 font-mono text-xs">{new Intl.NumberFormat("sv-SE").format(r.oms)}<CellProvenance level={2} /></td>
<td className="px-3 py-2.5 text-xs">
{r.epost ? (<>{r.epost}<CellProvenance level={r.epostLevel} /></>) : (<span className="text-muted-foreground">— licens (FI)<CellProvenance level={0} /></span>)}
{r.epost ? (
<>{r.epost}<CellProvenance level={r.epostLevel} /></>
) : (
<span className="text-muted-foreground">— {t({ en: "licence (FI)", sv: "licens (FI)" })}<CellProvenance level={0} /></span>
)}
</td>
<td className="px-3 py-2.5 font-mono text-xs">{r.lei}<CellProvenance level={3} /></td>
</tr>
@@ -134,14 +176,17 @@ export default function ValidationPage() {
</table>
</div>
<p className="mt-4 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
Varje cell bär sin källa. Tom = licens, aldrig gissning.
{t({ en: "Every cell carries its source. Empty = licence, never guessed.", sv: "Varje cell bär sin källa. Tom = licens, aldrig gissning." })}
</p>
</div>
) : null}
{tab === "Täckning" ? (
{/* Coverage tab */}
{tab === "coverage" ? (
<div className="reveal-fade">
<p className="mb-4 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Per marknad</p>
<p className="mb-4 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
{t({ en: "Per market", sv: "Per marknad" })}
</p>
<div className="grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-px bg-border">
{MARKETS.filter((m) => m.live).map((m) => (
<div key={m.code} className="group bg-background p-3 transition-colors hover:bg-secondary/40">
@@ -154,19 +199,29 @@ export default function ValidationPage() {
))}
</div>
<div className="mt-px grid grid-cols-1 gap-px bg-border sm:grid-cols-3">
{[["4 980", "poster levererade"], ["20", "utelämnade — ej gissade"], ["3,2", "källor per fält"]].map(([n, l]) => (
<div key={l} className="bg-background p-6">
{([
["4 980", { en: "records delivered", sv: "poster levererade" }],
["20", { en: "omitted — not guessed", sv: "utelämnade — ej gissade" }],
["3.2", { en: "sources per field", sv: "källor per fält" }],
] as [string, Loc][]).map(([n, l]) => (
<div key={l.en} className="bg-background p-6">
<p className="text-4xl font-medium tracking-[-0.03em]">{n}</p>
<p className="mt-2 font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">{l}</p>
<p className="mt-2 font-mono text-[10.5px] uppercase tracking-[0.1em] text-muted-foreground">{t(l)}</p>
</div>
))}
</div>
</div>
) : null}
{tab === "Schema & arkitektur" ? (
<div className="reveal-fade border border-border p-6 md:p-8" style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}>
<p className="mb-6 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Stjärnschema · spårbart per fält</p>
{/* Schema tab */}
{tab === "schema" ? (
<div
className="reveal-fade border border-border p-6 md:p-8"
style={{ backgroundImage: "radial-gradient(var(--border) 1px, transparent 1px)", backgroundSize: "16px 16px" }}
>
<p className="mb-6 font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
{t({ en: "Star schema · traceable per field", sv: "Stjärnschema · spårbart per fält" })}
</p>
<div className="grid grid-cols-2 gap-4 md:grid-cols-3">
{ENTITIES.map((e) => (
<div key={e.name} className="group bg-background transition-[border-color]" style={{ border: e.key ? "1px solid var(--accent-red)" : "1px solid var(--border)" }}>
@@ -178,33 +233,41 @@ export default function ValidationPage() {
))}
</div>
<p className="mt-6 border-t border-border pt-4 font-mono text-[10.5px] uppercase tracking-[0.08em] text-muted-foreground">
Varje fält → bridge_provenance. Ingen uppgift utan källa.
{t({ en: "Every field → bridge_provenance. No value without a source.", sv: "Varje fält → bridge_provenance. Ingen uppgift utan källa." })}
</p>
</div>
) : null}
{tab === "Kvalitetsrapport" ? (
{/* Quality tab */}
{tab === "quality" ? (
<div className="reveal-fade grid grid-cols-1 gap-px bg-border md:grid-cols-2">
<div className="bg-background p-6">
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Per dimension</p>
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
{t({ en: "Per dimension", sv: "Per dimension" })}
</p>
<div className="mt-5 flex flex-col gap-4">
{DIMENSIONS.map(([name, v, amber]) => (
<div key={name}>
<div className="flex justify-between font-mono text-xs"><span>{name}</span><span className="text-muted-foreground">{v}%</span></div>
{DIMENSIONS.map((d) => (
<div key={d.label.en}>
<div className="flex justify-between font-mono text-xs">
<span>{t(d.label)}</span>
<span className="text-muted-foreground">{d.value}%</span>
</div>
<div className="mt-1.5 h-1.5 w-full bg-secondary">
<div className="h-full" style={{ width: `${v}%`, backgroundColor: amber ? "var(--prov-2)" : "var(--prov-3)" }} />
<div className="h-full" style={{ width: `${d.value}%`, backgroundColor: d.amber ? "var(--prov-2)" : "var(--prov-3)" }} />
</div>
</div>
))}
</div>
</div>
<div className="bg-background p-6">
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Passerade kontroller</p>
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
{t({ en: "Passed checks", sv: "Passerade kontroller" })}
</p>
<ul className="mt-5 flex flex-col gap-2.5 text-sm">
{CHECKS.map((c) => (
<li key={c} className="flex items-start gap-2.5">
<li key={c.en} className="flex items-start gap-2.5">
<span aria-hidden className="mt-1.5 inline-block h-[9px] w-[9px] flex-shrink-0" style={{ backgroundColor: "var(--prov-3)" }} />
<span>{c}</span>
<span>{t(c)}</span>
</li>
))}
</ul>
@@ -215,14 +278,16 @@ export default function ValidationPage() {
{/* destinations */}
<div className="reveal mt-14 border-t border-border pt-8">
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">Leverera till</p>
<p className="font-mono text-[10.5px] uppercase tracking-[0.12em] text-muted-foreground">
{t({ en: "Deliver to", sv: "Leverera till" })}
</p>
<div className="mt-4 flex flex-wrap gap-2">
{DESTINATIONS.map((d) => {
const on = dests.includes(d);
const on = dests.includes(d.id);
return (
<button
key={d}
onClick={() => toggleDest(d)}
key={d.id}
onClick={() => toggleDest(d.id)}
className="border px-3.5 py-2 font-mono text-[11px] uppercase tracking-[0.08em] transition-colors hover:border-foreground"
style={{
borderColor: on ? "var(--foreground)" : "var(--border)",
@@ -230,7 +295,7 @@ export default function ValidationPage() {
color: on ? "var(--background)" : "var(--foreground)",
}}
>
{d}
{t(d.label)}
</button>
);
})}
@@ -243,27 +308,31 @@ export default function ValidationPage() {
<div className="border p-5" style={{ borderColor: "var(--prov-3)" }}>
<p className="flex items-center gap-2.5 font-mono text-sm" style={{ color: "var(--prov-3)" }}>
<span aria-hidden className="inline-block h-[9px] w-[9px]" style={{ backgroundColor: "var(--prov-3)" }} />
Godkänd. Slutbetalning frigjord. Export upplåst.
{t({ en: "Approved. Final payment released. Export unlocked.", sv: "Godkänd. Slutbetalning frigjord. Export upplåst." })}
</p>
<p className="mt-2 font-mono text-[11px] tracking-[0.02em] text-muted-foreground">
{t({ en: "Order", sv: "Order" })} {id} · {dests.map((id) => t(DESTINATIONS.find((d) => d.id === id)?.label ?? { en: id, sv: id })).join(" · ") || "—"}.
</p>
<p className="mt-2 font-mono text-[11px] tracking-[0.02em] text-muted-foreground">Order {id} · {dests.join(" · ") || "—"}.</p>
</div>
) : (
<div className="flex flex-col gap-6 md:flex-row md:items-center md:justify-between">
<div>
<p className="text-lg font-medium tracking-[-0.02em]">Nöjd? Frigör hälften.</p>
<p className="text-lg font-medium tracking-[-0.02em]">
{t({ en: "Happy? Release the half.", sv: "Nöjd? Frigör hälften." })}
</p>
<p className="mt-1.5 max-w-md font-mono text-[11px] uppercase leading-relaxed tracking-[0.06em] text-muted-foreground">
Godkänn → depån släpper resten. Full export. Annars: revidering, utan kostnad.
{t({ en: "Approve → escrow releases the rest. Full export. Otherwise: revision, at no cost.", sv: "Godkänn → depån släpper resten. Full export. Annars: revidering, utan kostnad." })}
</p>
</div>
<div className="flex flex-shrink-0 gap-3">
<button className="border border-foreground px-5 py-3 font-mono text-[12px] uppercase tracking-[0.1em] transition-colors hover:bg-foreground hover:text-background">
Revidera
{t({ en: "Revise", sv: "Revidera" })}
</button>
<button
onClick={approve}
className="bg-foreground px-5 py-3 font-mono text-[12px] uppercase tracking-[0.1em] text-background transition-colors hover:bg-[var(--accent-red)]"
>
Godkänn · frigör 50 %
{t({ en: "Approve · release 50%", sv: "Godkänn · frigör 50 %" })}
</button>
</div>
</div>