mirror of
https://github.com/temetro/temetro.git
synced 2026-08-10 10:37:43 +00:00
ab2f10bffc
Finish the i18n pass: settings panels (profile/care-team/signing), the chat heading + input, the patient cards / detail / create-edit form, and the notes page + rich-text editor are all keyed in en/translation.json. All 526 static t() keys resolve. Document the new backend resources + Socket.io realtime (backend README/CLAUDE) and the i18n coverage (frontend CLAUDE). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
70 lines
2.2 KiB
TypeScript
70 lines
2.2 KiB
TypeScript
"use client";
|
|
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
import { Badge } from "@/components/ui/badge";
|
|
import { Button } from "@/components/ui/button";
|
|
import {
|
|
CopyField,
|
|
SettingsCard,
|
|
SettingsSection,
|
|
whiteButton,
|
|
} from "@/components/settings/settings-parts";
|
|
|
|
export function SigningPanel() {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<SettingsCard className="flex flex-col gap-6 p-6 sm:flex-row sm:items-start sm:justify-between">
|
|
<div className="space-y-4">
|
|
<div className="flex items-center gap-3">
|
|
<h3 className="text-xl font-semibold tracking-tight">
|
|
{t("settings.signing.keyTitle")}
|
|
</h3>
|
|
<Badge className="bg-emerald-500/15 text-emerald-400">
|
|
{t("settings.signing.active")}
|
|
</Badge>
|
|
</div>
|
|
<p className="text-sm text-muted-foreground">
|
|
{t("settings.signing.keyDescription")}
|
|
</p>
|
|
<Button className={cn("rounded-lg", whiteButton)}>
|
|
{t("settings.signing.rotateKey")}
|
|
</Button>
|
|
</div>
|
|
<div className="sm:text-right">
|
|
<p className="text-3xl font-semibold tracking-tight">Ed25519</p>
|
|
<p className="text-sm text-muted-foreground">
|
|
{t("settings.signing.createdAt")}
|
|
</p>
|
|
</div>
|
|
</SettingsCard>
|
|
|
|
<SettingsSection
|
|
description={t("settings.signing.identityDescription")}
|
|
title={t("settings.signing.identityTitle")}
|
|
>
|
|
<SettingsCard className="p-5">
|
|
<CopyField
|
|
description={t("settings.signing.fingerprintDescription")}
|
|
label={t("settings.signing.fingerprintLabel")}
|
|
value="ed25519:9f86 d081 884c 7d65 9a2f eaa0 c55a d015"
|
|
/>
|
|
</SettingsCard>
|
|
</SettingsSection>
|
|
|
|
<SettingsSection
|
|
description={t("settings.signing.signedRecordsDescription")}
|
|
title={t("settings.signing.signedRecordsTitle")}
|
|
>
|
|
<SettingsCard className="flex items-center justify-center p-12">
|
|
<p className="text-sm text-muted-foreground">
|
|
{t("settings.signing.noPending")}
|
|
</p>
|
|
</SettingsCard>
|
|
</SettingsSection>
|
|
</>
|
|
);
|
|
}
|