Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: move API docs link to help menu

Rob Carrington4f8873da7f81
diff --git a/apps/carbon/app/components/Layout/Navigation/useModules.tsx b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
index 2baaca2449..211466af45 100644
--- a/apps/carbon/app/components/Layout/Navigation/useModules.tsx
+++ b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
@@ -103,11 +103,6 @@ export function useModules() {
to: path.to.employeeAccounts,
icon: LuShield,
},
- {
- name: "API Docs",
- to: path.to.apiIntroduction,
- icon: LuFiles,
- },
{
permission: "settings",
name: "Settings",
diff --git a/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx b/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
index e35b61bdb3..3b5a24acfb 100644
--- a/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
+++ b/apps/carbon/app/components/Layout/Topbar/HelpMenu.tsx
@@ -6,7 +6,9 @@ import {
DropdownMenuTrigger,
IconButton,
} from "@carbon/react";
-import { LuHelpCircle, LuMessageSquare } from "react-icons/lu";
+import { Link } from "@remix-run/react";
+import { LuFiles, LuHelpCircle } from "react-icons/lu";
+import { path } from "~/utils/path";
const HelpMenu = () => {
return (
@@ -21,24 +23,10 @@ const HelpMenu = () => {
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-48">
<DropdownMenuItem asChild>
- <a
- href="https://github.com/barbinbrad/carbon/issues/new/choose"
- target="_blank"
- rel="noreferrer"
- >
- <DropdownMenuIcon icon={<LuHelpCircle />} />
- Help
- </a>
- </DropdownMenuItem>
- <DropdownMenuItem asChild>
- <a
- href="https://github.com/barbinbrad/carbon/discussions/new/choose"
- target="_blank"
- rel="noreferrer"
- >
- <DropdownMenuIcon icon={<LuMessageSquare />} />
- Feedback
- </a>
+ <Link to={path.to.apiIntroduction}>
+ <DropdownMenuIcon icon={<LuFiles />} />
+ API Docs
+ </Link>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx b/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
index 23be23397f..b62449f72f 100644
--- a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
+++ b/apps/carbon/app/components/Layout/Topbar/Topbar.tsx
@@ -4,6 +4,7 @@ import { usePermissions } from "~/hooks";
import AvatarMenu from "./AvatarMenu";
import Breadcrumbs from "./Breadcrumbs";
import CreateMenu from "./CreateMenu";
+import HelpMenu from "./HelpMenu";
import ModeSwitcher from "./ModeSwitcher";
const Topbar = () => {
@@ -15,7 +16,7 @@ const Topbar = () => {
<HStack spacing={2} className="justify-end py-2">
{permissions.is("employee") ? <Search /> : <div />}
<CreateMenu />
- {/* <HelpMenu /> */}
+ <HelpMenu />
<ModeSwitcher />
<AvatarMenu />
</HStack>