Add version and commit info footer to settings page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 12:17:36 -05:00
co-authored by Claude Opus 4.6
parent 472e5609e3
commit 03917e0a1d
4 changed files with 59 additions and 2 deletions
+35 -1
View File
@@ -5,6 +5,7 @@ import { auth } from "@/lib/auth/server";
import { db } from "@/lib/db/client";
import { webhookConnections, webhookEventLog } from "@/lib/db/schema";
import { getSetting } from "@/lib/services/settings";
import { APP_VERSION, GIT_COMMIT } from "@/lib/version";
import { AccountSection } from "./_components/account-section";
import { IntegrationsSection } from "./_components/integrations-section";
import { ServerSection } from "./_components/server-section";
@@ -58,8 +59,41 @@ export default async function SettingsPage() {
: Promise.resolve(false),
]);
const repoUrl = "https://github.com/jakejarvis/sofa";
return (
<SettingsShell>
<SettingsShell
footer={
<footer className="border-t border-border/50 pt-6 pb-2 text-center text-xs text-muted-foreground">
<p>
<a
href={repoUrl}
target="_blank"
rel="noopener noreferrer"
className="font-medium text-primary/80 hover:text-primary transition-colors"
>
Sofa
</a>{" "}
v{APP_VERSION}
{GIT_COMMIT !== "unknown" && (
<>
{" "}
(
<a
href={`${repoUrl}/commit/${GIT_COMMIT}`}
target="_blank"
rel="noopener noreferrer"
className="font-mono hover:text-primary transition-colors"
>
{GIT_COMMIT}
</a>
)
</>
)}
</p>
</footer>
}
>
<AccountSection
user={{
name: session.user.name,