* refactor: migrate admin icons to @makeplane/propel Replace confirmed icon symbols in apps/admin with their audited @makeplane/propel/icons targets, merging into the imports the six already-migrated files declared. Unresolved symbols (Menu, BrainCog) and the LucideIcon type stay on lucide-react. Lucide size props become explicit width/height. Loader keeps its LoaderIcon alias so the call site is unchanged. apps/admin already declared @makeplane/propel, so no dependency change was needed. * fix: restore Settings breadcrumb label after icon rename The migration's identifier rename also rewrote the string literal, so the breadcrumb displayed the icon component name instead of the label.
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
/**
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
import { BrainCog } from "lucide-react";
|
|
// plane imports
|
|
import { ImageOutline, LockOutline, MailOutline, SettingsOutline, WorkspaceOutline } from "@makeplane/propel/icons";
|
|
// types
|
|
import type { TSidebarMenuItem } from "./types";
|
|
|
|
export type TCoreSidebarMenuKey = "general" | "email" | "workspace" | "authentication" | "ai" | "image";
|
|
|
|
export const coreSidebarMenuLinks: Record<TCoreSidebarMenuKey, TSidebarMenuItem> = {
|
|
general: {
|
|
Icon: SettingsOutline,
|
|
name: "General",
|
|
description: "Identify your instances and get key details.",
|
|
href: `/general/`,
|
|
},
|
|
email: {
|
|
Icon: MailOutline,
|
|
name: "Email",
|
|
description: "Configure your SMTP controls.",
|
|
href: `/email/`,
|
|
},
|
|
workspace: {
|
|
Icon: WorkspaceOutline,
|
|
name: "Workspaces",
|
|
description: "Manage all workspaces on this instance.",
|
|
href: `/workspace/`,
|
|
},
|
|
authentication: {
|
|
Icon: LockOutline,
|
|
name: "Authentication",
|
|
description: "Configure authentication modes.",
|
|
href: `/authentication/`,
|
|
},
|
|
ai: {
|
|
Icon: BrainCog,
|
|
name: "Artificial intelligence",
|
|
description: "Configure your OpenAI creds.",
|
|
href: `/ai/`,
|
|
},
|
|
image: {
|
|
Icon: ImageOutline,
|
|
name: "Images in Plane",
|
|
description: "Allow third-party image libraries.",
|
|
href: `/image/`,
|
|
},
|
|
};
|