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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(academy): improve active course sidebar visibility (#597)
Siddharth Gaikwad3bc53f9cb3ff
diff --git a/apps/academy/app/routes/course+/_layout.tsx b/apps/academy/app/routes/course+/_layout.tsxindex cd83f5cc78..0384d9b5dc 100644--- a/apps/academy/app/routes/course+/_layout.tsx+++ b/apps/academy/app/routes/course+/_layout.tsx@@ -1,6 +1,6 @@import { Button, Heading } from "@carbon/react";import { LuBookOpen, LuCirclePlay } from "react-icons/lu";-import { Link, Outlet } from "react-router";+import { Link, NavLink, Outlet } from "react-router";import { Hero } from "~/components/Hero";import { modules } from "~/config";import { useOptionalUser } from "~/hooks/useUser";@@ -61,13 +61,29 @@ export default function CourseLayout() {</h3><div className="space-y-0">{module.courses.map((course) => (- <Link+ <NavLinkkey={course.id}to={path.to.course(module.id, course.id)}- className="block py-1 text-sm hover:underline"+ className={({ isActive }) =>+ [+ "block py-1.5 px-2 text-sm rounded-md border-l-2 transition-all hover:underline",+ isActive+ ? "font-semibold text-foreground"+ : "text-foreground/80 border-l-transparent hover:bg-accent/60 hover:text-foreground"+ ].join(" ")+ }+ style={({ isActive }) =>+ isActive+ ? {+ backgroundColor: `${module.background}2E`,+ borderLeftColor: module.background,+ boxShadow: `inset 0 0 0 1px ${module.background}4D`+ }+ : undefined+ }>{course.name}- </Link>+ </NavLink>))}</div></div>