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.

style: settings module spacing

Brad Barbin389d9bffcc93
diff --git a/apps/erp/app/modules/settings/ui/Company/CompanyLogoForm.tsx b/apps/erp/app/modules/settings/ui/Company/CompanyLogoForm.tsx
index 4961c111af..b07a4011ef 100644
--- a/apps/erp/app/modules/settings/ui/Company/CompanyLogoForm.tsx
+++ b/apps/erp/app/modules/settings/ui/Company/CompanyLogoForm.tsx
@@ -170,7 +170,7 @@ const CompanyLogoForm = ({
<VStack className="items-center py-4" spacing={4}>
<div
className={cn(
- "flex items-center justify-center w-full h-[156px] rounded-lg bg-[url('/grid.svg')] bg-repeat border border-input",
+ "flex items-center justify-center w-full h-[156px] rounded-lg border border-input",
mode === "dark"
? "bg-black/90 text-white"
: "bg-zinc-200/90 text-black"
diff --git a/apps/erp/app/modules/settings/ui/Integrations/IntegrationsList.tsx b/apps/erp/app/modules/settings/ui/Integrations/IntegrationsList.tsx
index 4798d558fe..20753542cb 100644
--- a/apps/erp/app/modules/settings/ui/Integrations/IntegrationsList.tsx
+++ b/apps/erp/app/modules/settings/ui/Integrations/IntegrationsList.tsx
@@ -21,7 +21,7 @@ const IntegrationsList = ({
availableIntegrations,
}: IntegrationsListProps) => {
return (
- <div className="grid gap-2 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 p-2 w-full">
+ <div className="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 p-4 w-full">
{availableIntegrations.map((integration) => {
return (
<IntegrationCard
diff --git a/apps/erp/app/routes/x+/customer+/_layout.tsx b/apps/erp/app/routes/x+/customer+/_layout.tsx
index 616f6572cc..a5caccb43e 100644
--- a/apps/erp/app/routes/x+/customer+/_layout.tsx
+++ b/apps/erp/app/routes/x+/customer+/_layout.tsx
@@ -43,7 +43,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function CustomerRoute() {
return (
<div className="flex h-full w-full justify-center bg-muted">
- <VStack spacing={4} className="h-full p-2 w-full max-w-[80rem]">
+ <VStack spacing={4} className="h-full p-4 w-full max-w-[80rem]">
<Outlet />
</VStack>
</div>
diff --git a/apps/erp/app/routes/x+/person+/_layout.tsx b/apps/erp/app/routes/x+/person+/_layout.tsx
index 79a15e4acd..f6ac725d5e 100644
--- a/apps/erp/app/routes/x+/person+/_layout.tsx
+++ b/apps/erp/app/routes/x+/person+/_layout.tsx
@@ -22,7 +22,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function PersonRoute() {
return (
<div className="flex h-full w-full justify-center bg-muted">
- <VStack spacing={4} className="h-full p-2 w-full max-w-[80rem]">
+ <VStack spacing={4} className="h-full p-4 w-full max-w-[80rem]">
<Outlet />
</VStack>
</div>
diff --git a/apps/erp/app/routes/x+/settings+/_layout.tsx b/apps/erp/app/routes/x+/settings+/_layout.tsx
index f49f4429e5..e3004ada28 100644
--- a/apps/erp/app/routes/x+/settings+/_layout.tsx
+++ b/apps/erp/app/routes/x+/settings+/_layout.tsx
@@ -34,7 +34,7 @@ export default function SettingsRoute() {
return (
<CollapsibleSidebarProvider>
- <div className="grid grid-cols-[auto_1fr] w-full h-full">
+ <div className="grid grid-cols-[auto_1fr] w-full h-full bg-card">
<GroupedContentSidebar groups={groups} />
<VStack
spacing={0}
diff --git a/apps/erp/app/routes/x+/settings+/company.tsx b/apps/erp/app/routes/x+/settings+/company.tsx
index c5269ead6f..067d1dc512 100644
--- a/apps/erp/app/routes/x+/settings+/company.tsx
+++ b/apps/erp/app/routes/x+/settings+/company.tsx
@@ -8,6 +8,8 @@ import {
CardDescription,
CardHeader,
CardTitle,
+ Heading,
+ ScrollArea,
VStack,
} from "@carbon/react";
import type { ActionFunctionArgs } from "@vercel/remix";
@@ -77,19 +79,25 @@ export default function Company() {
};
return (
- <VStack spacing={4} className="p-4 h-full">
- <Card>
- <CardHeader>
- <CardTitle>Company</CardTitle>
- <CardDescription>
- This information will be used on document headers
- </CardDescription>
- </CardHeader>
- <CardContent>
- {/* @ts-ignore */}
- <CompanyForm company={initialValues} />
- </CardContent>
- </Card>
- </VStack>
+ <ScrollArea className="w-full h-[calc(100dvh-49px)]">
+ <VStack
+ spacing={4}
+ className="py-12 px-4 max-w-[60rem] h-full mx-auto gap-4"
+ >
+ <Heading size="h3">Company</Heading>
+ <Card>
+ <CardHeader>
+ <CardTitle>Basic Information</CardTitle>
+ <CardDescription>
+ This information will be used on document headers
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ {/* @ts-ignore */}
+ <CompanyForm company={initialValues} />
+ </CardContent>
+ </Card>
+ </VStack>
+ </ScrollArea>
);
}
diff --git a/apps/erp/app/routes/x+/settings+/logos.tsx b/apps/erp/app/routes/x+/settings+/logos.tsx
index 00745ce73c..2e5a598cc7 100644
--- a/apps/erp/app/routes/x+/settings+/logos.tsx
+++ b/apps/erp/app/routes/x+/settings+/logos.tsx
@@ -3,6 +3,7 @@ import {
CardContent,
CardHeader,
CardTitle,
+ Heading,
ScrollArea,
VStack,
} from "@carbon/react";
@@ -71,32 +72,16 @@ export default function LogosRoute() {
return (
<ScrollArea className="w-full h-[calc(100dvh-49px)]">
- <VStack spacing={4} className="p-4 h-full">
- <Card>
- <CardHeader>
- <CardTitle className="flex items-center gap-2">
- <LuSun /> Horizontal Light Mode
- </CardTitle>
- </CardHeader>
- <CardContent>
- <CompanyLogoForm company={company} mode="light" icon={false} />
- </CardContent>
- </Card>
- <Card>
- <CardHeader>
- <CardTitle className="flex items-center gap-2">
- <LuMoon /> Horizontal Dark Mode
- </CardTitle>
- </CardHeader>
- <CardContent>
- <CompanyLogoForm company={company} mode="dark" icon={false} />
- </CardContent>
- </Card>
- <div className="grid grid-cols-2 gap-2 w-full">
+ <VStack
+ spacing={4}
+ className="py-12 px-4 max-w-[60rem] h-full mx-auto gap-4"
+ >
+ <Heading size="h3">Logos</Heading>
+ <div className="grid grid-cols-2 gap-4 w-full">
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
- <LuSun /> Icon Light Mode
+ <LuSun /> Mark Light Mode
</CardTitle>
</CardHeader>
<CardContent>
@@ -106,7 +91,7 @@ export default function LogosRoute() {
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
- <LuMoon /> Icon Dark Mode
+ <LuMoon /> Mark Dark Mode
</CardTitle>
</CardHeader>
<CardContent>
@@ -114,6 +99,26 @@ export default function LogosRoute() {
</CardContent>
</Card>
</div>
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <LuSun /> Wordmark Light Mode
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ <CompanyLogoForm company={company} mode="light" icon={false} />
+ </CardContent>
+ </Card>
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <LuMoon /> Wordmark Dark Mode
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ <CompanyLogoForm company={company} mode="dark" icon={false} />
+ </CardContent>
+ </Card>
</VStack>
</ScrollArea>
);
diff --git a/apps/erp/app/routes/x+/settings+/purchasing.tsx b/apps/erp/app/routes/x+/settings+/purchasing.tsx
index 1623e8b0a6..6dda2a34cc 100644
--- a/apps/erp/app/routes/x+/settings+/purchasing.tsx
+++ b/apps/erp/app/routes/x+/settings+/purchasing.tsx
@@ -8,7 +8,9 @@ import {
CardDescription,
CardHeader,
CardTitle,
+ Heading,
HStack,
+ ScrollArea,
useDebounce,
VStack,
} from "@carbon/react";
@@ -91,40 +93,46 @@ export default function Terms() {
};
return (
- <VStack spacing={4} className="p-4 h-full">
- <Card>
- <HStack className="justify-between items-start">
- <CardHeader>
- <CardTitle>Purchasing Terms &amp; Conditions</CardTitle>
- <CardDescription>
- Define the terms and conditions for purchase orders
- </CardDescription>
- </CardHeader>
- <CardAction className="py-6">
- {purchasingTermsStatus === "draft" ? (
- <Badge variant="secondary">Draft</Badge>
+ <ScrollArea className="w-full h-[calc(100dvh-49px)]">
+ <VStack
+ spacing={4}
+ className="py-12 px-4 max-w-[60rem] h-full mx-auto gap-4"
+ >
+ <Heading size="h3">Purchasing</Heading>
+ <Card>
+ <HStack className="justify-between items-start">
+ <CardHeader>
+ <CardTitle>Purchasing Terms &amp; Conditions</CardTitle>
+ <CardDescription>
+ Define the terms and conditions for purchase orders
+ </CardDescription>
+ </CardHeader>
+ <CardAction className="py-6">
+ {purchasingTermsStatus === "draft" ? (
+ <Badge variant="secondary">Draft</Badge>
+ ) : (
+ <LuCircleCheck className="w-4 h-4 text-emerald-500" />
+ )}
+ </CardAction>
+ </HStack>
+ <CardContent>
+ {permissions.can("update", "settings") ? (
+ <Editor
+ initialValue={(terms.purchasingTerms ?? {}) as JSONContent}
+ onUpload={onUploadImage}
+ onChange={handleUpdatePurchasingTerms}
+ />
) : (
- <LuCircleCheck className="w-4 h-4 text-emerald-500" />
+ <div
+ className="prose dark:prose-invert"
+ dangerouslySetInnerHTML={{
+ __html: generateHTML(terms.purchasingTerms as JSONContent),
+ }}
+ />
)}
- </CardAction>
- </HStack>
- <CardContent>
- {permissions.can("update", "settings") ? (
- <Editor
- initialValue={(terms.purchasingTerms ?? {}) as JSONContent}
- onUpload={onUploadImage}
- onChange={handleUpdatePurchasingTerms}
- />
- ) : (
- <div
- className="prose dark:prose-invert"
- dangerouslySetInnerHTML={{
- __html: generateHTML(terms.purchasingTerms as JSONContent),
- }}
- />
- )}
- </CardContent>
- </Card>
- </VStack>
+ </CardContent>
+ </Card>
+ </VStack>
+ </ScrollArea>
);
}
diff --git a/apps/erp/app/routes/x+/settings+/sales.tsx b/apps/erp/app/routes/x+/settings+/sales.tsx
index 29db641efe..f1a7f74479 100644
--- a/apps/erp/app/routes/x+/settings+/sales.tsx
+++ b/apps/erp/app/routes/x+/settings+/sales.tsx
@@ -7,6 +7,7 @@ import {
CardFooter,
CardHeader,
CardTitle,
+ Heading,
HStack,
Label,
ScrollArea,
@@ -175,7 +176,11 @@ export default function SalesSettingsRoute() {
return (
<ScrollArea className="w-full h-[calc(100dvh-49px)]">
- <VStack spacing={4} className="p-4 h-full">
+ <VStack
+ spacing={4}
+ className="py-12 px-4 max-w-[60rem] h-full mx-auto gap-4"
+ >
+ <Heading size="h3">Sales</Heading>
<Card>
<ValidatedForm
method="post"
diff --git a/apps/erp/app/routes/x+/supplier+/_layout.tsx b/apps/erp/app/routes/x+/supplier+/_layout.tsx
index a9124b27e1..7c161c1bf7 100644
--- a/apps/erp/app/routes/x+/supplier+/_layout.tsx
+++ b/apps/erp/app/routes/x+/supplier+/_layout.tsx
@@ -43,7 +43,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function SupplierRoute() {
return (
<div className="flex h-full w-full justify-center bg-muted">
- <VStack spacing={4} className="h-full p-2 w-full max-w-[80rem]">
+ <VStack spacing={4} className="h-full p-4 w-full max-w-[80rem]">
<Outlet />
</VStack>
</div>