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.

refactor: don't prefetch redirect links -- prefetch the actual page (#102)

Brad Barbin97dde3c2c6ae
diff --git a/.env.example b/.env.example
index 9c5e14198a..b57eb137e5 100644
--- a/.env.example
+++ b/.env.example
@@ -1,5 +1,3 @@
-REDIS_URL="redis://localhost:6389"
-
SESSION_SECRET="************************"
SUPABASE_ANON_PUBLIC="******************"
@@ -11,4 +9,7 @@ TRIGGER_API_KEY="***********************"
TRIGGER_API_URL="https://api.trigger.dev"
TRIGGER_PUBLIC_API_KEY="pk_*************"
+UPSTASH_REDIS_REST_URL="https://**.upstash.io"
+UPSTASH_REDIS_REST_TOKEN="*******************"
+
VERCEL_URL="http://localhost:3000"
\ No newline at end of file
diff --git a/apps/carbon/app/components/Layout/Navigation/useModules.tsx b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
index cea1b01600..120ab06181 100644
--- a/apps/carbon/app/components/Layout/Navigation/useModules.tsx
+++ b/apps/carbon/app/components/Layout/Navigation/useModules.tsx
@@ -1,7 +1,5 @@
-import { AiOutlineFieldTime, AiOutlinePartition } from "react-icons/ai";
-import { BiListCheck, BiMessage } from "react-icons/bi";
+import { AiOutlinePartition } from "react-icons/ai";
import {
- BsCalendar2Week,
BsCartDash,
BsCartPlus,
BsCreditCard,
@@ -23,43 +21,43 @@ export function useModules() {
{
permission: "parts",
name: "Parts",
- to: path.to.parts,
+ to: path.to.partsSearch,
icon: AiOutlinePartition,
},
- {
- permission: "jobs",
- name: "Jobs",
- to: path.to.jobs,
- icon: BiListCheck,
- },
+ // {
+ // permission: "jobs",
+ // name: "Jobs",
+ // to: path.to.jobs,
+ // icon: BiListCheck,
+ // },
{
permission: "inventory",
name: "Inventory",
- to: path.to.inventory,
+ to: path.to.receipts,
icon: HiOutlineCube,
},
- {
- permission: "scheduling",
- name: "Scheduling",
- to: path.to.scheduling,
- icon: BsCalendar2Week,
- },
- {
- permission: "timecards",
- name: "Timecards",
- to: path.to.timecards,
- icon: AiOutlineFieldTime,
- },
+ // {
+ // permission: "scheduling",
+ // name: "Scheduling",
+ // to: path.to.scheduling,
+ // icon: BsCalendar2Week,
+ // },
+ // {
+ // permission: "timecards",
+ // name: "Timecards",
+ // to: path.to.timecards,
+ // icon: AiOutlineFieldTime,
+ // },
{
permission: "sales",
name: "Sales",
- to: path.to.sales,
+ to: path.to.quotes,
icon: BsCartPlus,
},
{
permission: "purchasing",
name: "Purchasing",
- to: path.to.purchasing,
+ to: path.to.purchaseOrders,
icon: BsCartDash,
},
{
@@ -68,45 +66,45 @@ export function useModules() {
to: path.to.documents,
icon: HiOutlineDocumentDuplicate,
},
- {
- permission: "messages",
- name: "Messaging",
- to: path.to.messaging,
- icon: BiMessage,
- },
+ // {
+ // permission: "messages",
+ // name: "Messaging",
+ // to: path.to.messaging,
+ // icon: BiMessage,
+ // },
{
permission: "accounting",
name: "Accounting",
- to: path.to.accounting,
+ to: path.to.chartOfAccounts,
icon: TbPigMoney,
},
{
permission: "invoicing",
name: "Invoicing",
- to: path.to.invoicing,
+ to: path.to.purchaseInvoices,
icon: BsCreditCard,
},
{
permission: "resources",
name: "Resources",
- to: path.to.resources,
+ to: path.to.people,
icon: BsPeopleFill,
},
{
permission: "users",
name: "Users",
- to: path.to.users,
+ to: path.to.employeeAccounts,
icon: BsShieldLock,
},
{
permission: "settings",
name: "Settings",
- to: path.to.settings,
+ to: path.to.company,
icon: LuSettings2,
},
{
name: "My Account",
- to: path.to.account,
+ to: path.to.profile,
icon: CgProfile,
},
];
diff --git a/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx b/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx
index 0d67319b40..dcf1dc9e51 100644
--- a/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx
+++ b/apps/carbon/app/modules/sales/ui/useSalesSubmodules.tsx
@@ -6,14 +6,14 @@ const salesRoutes: AuthenticatedRouteGroup[] = [
{
name: "Manage",
routes: [
- {
- name: "Customers",
- to: path.to.customers,
- },
{
name: "Quotations",
to: path.to.quotes,
},
+ {
+ name: "Customers",
+ to: path.to.customers,
+ },
],
},
{