Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): show app version in settings sidebar footer
Gus8bf2f1783845
diff --git a/src/web/next.config.ts b/src/web/next.config.tsindex dc58c598a..11bf9400c 100644--- a/src/web/next.config.ts+++ b/src/web/next.config.ts@@ -1,8 +1,14 @@import type { NextConfig } from "next";import path from "node:path";+import { readFileSync } from "node:fs";import createMDX from "@next/mdx";+const pkg = JSON.parse(readFileSync(path.resolve(__dirname, "package.json"), "utf-8"));+const nextConfig: NextConfig = {+ env: {+ NEXT_PUBLIC_APP_VERSION: pkg.version,+ },// Prevent the bundler from creating duplicate copies of @better-auth/core,// which breaks AsyncLocalStorage-based request state (dual module hazard).// See: https://www.better-auth.com/docs/reference/faq#troubleshootingdiff --git a/src/web/src/app/(app)/w/[slug]/settings/page.tsx b/src/web/src/app/(app)/w/[slug]/settings/page.tsxindex 73b318e50..b07ff8aa9 100644--- a/src/web/src/app/(app)/w/[slug]/settings/page.tsx+++ b/src/web/src/app/(app)/w/[slug]/settings/page.tsx@@ -34,21 +34,28 @@ export default function SettingsPage() {</div><div className="flex flex-1 min-h-0">- <nav className="w-48 shrink-0 border-r border-border/50 py-3 px-2 hidden md:block">- {TABS.map((tab) => (- <button- key={tab.id}- onClick={() => setActiveTab(tab.id)}- className={cn(- "w-full rounded-md px-2.5 py-1.5 text-left text-sm transition-colors",- activeTab === tab.id- ? "bg-accent text-foreground font-medium"- : "text-muted-foreground hover:bg-accent/50 hover:text-foreground"- )}- >- {tab.label}- </button>- ))}+ <nav className="w-48 shrink-0 border-r border-border/50 py-3 px-2 hidden md:flex md:flex-col">+ <div className="flex-1">+ {TABS.map((tab) => (+ <button+ key={tab.id}+ onClick={() => setActiveTab(tab.id)}+ className={cn(+ "w-full rounded-md px-2.5 py-1.5 text-left text-sm transition-colors",+ activeTab === tab.id+ ? "bg-accent text-foreground font-medium"+ : "text-muted-foreground hover:bg-accent/50 hover:text-foreground"+ )}+ >+ {tab.label}+ </button>+ ))}+ </div>+ {process.env.NEXT_PUBLIC_APP_VERSION && (+ <div className="px-2.5 pt-3 border-t border-border/50 text-[11px] text-muted-foreground/60">+ v{process.env.NEXT_PUBLIC_APP_VERSION}+ </div>+ )}</nav><div className="flex-1 min-w-0 flex flex-col">@@ -81,6 +88,11 @@ export default function SettingsPage() {</div>)}</div>+ {process.env.NEXT_PUBLIC_APP_VERSION && (+ <div className="px-4 py-2 text-[11px] text-muted-foreground/60 md:hidden">+ v{process.env.NEXT_PUBLIC_APP_VERSION}+ </div>+ )}</div></div></>