mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +00:00
fix: change title in lighthouse settings (#8615)
Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
906a2cc651
commit
422a8a0f62
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@ export const getMenuList = ({
|
||||
href: "/lighthouse",
|
||||
label: "Lighthouse AI",
|
||||
icon: LighthouseIcon,
|
||||
active: pathname === "/lighthouse",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user