fix: change title in lighthouse settings (#8615)

Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com>
This commit is contained in:
Chandrapal Badshah
2025-09-08 14:04:09 +05:30
committed by GitHub
parent 906a2cc651
commit 422a8a0f62
3 changed files with 9 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ export default async function ChatbotConfigPage() {
const configExists = !!lighthouseConfig;
return (
<ContentLayout title="Configure Lighthouse AI" icon="lucide:settings">
<ContentLayout title="Settings">
<ChatbotConfig
initialValues={initialValues}
configExists={configExists}

View File

@@ -6,6 +6,8 @@ import Link from "next/link";
import { usePathname, useSearchParams } from "next/navigation";
import { ReactNode } from "react";
import { LighthouseIcon } from "@/components/icons/Icons";
export interface CustomBreadcrumbItem {
name: string;
path?: string;
@@ -38,7 +40,7 @@ export function BreadcrumbNavigation({
const searchParams = useSearchParams();
const generateAutoBreadcrumbs = (): CustomBreadcrumbItem[] => {
const pathIconMapping: Record<string, string> = {
const pathIconMapping: Record<string, string | ReactNode> = {
"/integrations": "lucide:puzzle",
"/providers": "lucide:cloud",
"/users": "lucide:users",
@@ -47,7 +49,7 @@ export function BreadcrumbNavigation({
"/scans": "lucide:activity",
"/roles": "lucide:key",
"/resources": "lucide:database",
"/lighthouse": "lucide:lightbulb",
"/lighthouse": <LighthouseIcon />,
"/manage-groups": "lucide:users-2",
"/services": "lucide:server",
"/workloads": "lucide:layers",
@@ -76,6 +78,9 @@ export function BreadcrumbNavigation({
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");
}
if (segment === "lighthouse") {
displayName = "Lighthouse AI";
}
const segmentIcon = !isLast ? pathIconMapping[currentPath] : undefined;

View File

@@ -80,6 +80,7 @@ export const getMenuList = ({
href: "/lighthouse",
label: "Lighthouse AI",
icon: LighthouseIcon,
active: pathname === "/lighthouse",
},
],
},