feat(web): render configured app_name for brand + login; drop hardcoded app.name (#54)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 19:01:15 +02:00
parent e4badbdefc
commit 4fad3c43f0
4 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -15,6 +15,7 @@ import type { LucideIcon } from "lucide-react";
import { cn } from "@/lib/utils";
import { Tooltip } from "@/components/ui/tooltip";
import { useMediaQuery } from "@/lib/use-media-query";
import { useConfig } from "../config/config-context";
const STORAGE_KEY = "sidebar-collapsed";
@@ -50,6 +51,7 @@ function navLinkClass(collapsed: boolean) {
export function Sidebar() {
const { t } = useTranslation();
const { app_name } = useConfig();
const narrow = useMediaQuery("(max-width: 768px)");
const [stored, setStored] = useState(readStored);
@@ -73,7 +75,7 @@ export function Sidebar() {
)}
>
<div className="mb-4 flex items-center justify-between">
{!collapsed && <span className="font-semibold">{t("app.name")}</span>}
{!collapsed && <span className="font-semibold">{app_name}</span>}
<button
type="button"
onClick={toggle}