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
refactor: move emails to carbon.ms domains
Brad Barbin1e4435fa61fe
diff --git a/.github/SECURITY.md b/.github/SECURITY.mdindex a3d25c5a87..ab9508f6e9 100644--- a/.github/SECURITY.md+++ b/.github/SECURITY.md@@ -1,6 +1,6 @@# Security-Contact: [[email protected]](mailto:[email protected])+Contact: [[email protected]](mailto:[email protected])Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)@@ -27,7 +27,7 @@ better protect our clients and our systems.## Please do the following-- E-mail your findings to [[email protected]](mailto:[email protected]).+- E-mail your findings to [[email protected]](mailto:[email protected]).- Do not run automated scanners on our infrastructure or dashboard. If you wishto do this, contact us and we will set up a sandbox for you.- Do not take advantage of the vulnerability or problem you have discovered,diff --git a/apps/erp/app/components/RealtimeDataProvider.tsx b/apps/erp/app/components/RealtimeDataProvider.tsxindex c7e352f10d..40d9e5b6cb 100644--- a/apps/erp/app/components/RealtimeDataProvider.tsx+++ b/apps/erp/app/components/RealtimeDataProvider.tsx@@ -95,7 +95,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {setCustomers(customers.data ?? []);setPeople(// @ts-ignore- people.data?.filter((p) => !p.email?.includes("@carbonos.dev")) ?? []+ people.data?.filter((p) => !p.email?.includes("@carbon.ms")) ?? []);idb.setItem("items", items.data);diff --git a/apps/erp/app/hooks/useFlags.tsx b/apps/erp/app/hooks/useFlags.tsxindex 37d20de891..1ea4a0b7c6 100644--- a/apps/erp/app/hooks/useFlags.tsx+++ b/apps/erp/app/hooks/useFlags.tsx@@ -5,7 +5,7 @@ import { useUser } from "./useUser";export function useFlags() {const user = useUser();const edition = useEdition();- const isInternal = ["@carbon.us.org", "@carbonos.dev", "@carbon.ms"].some(+ const isInternal = ["@carbon.us.org", "@carbon.ms", "@carbon.ms"].some((email) => user.email.includes(email));diff --git a/apps/erp/app/routes/x+/people+/people.tsx b/apps/erp/app/routes/x+/people+/people.tsxindex 0734ddaef2..40be53c27e 100644--- a/apps/erp/app/routes/x+/people+/people.tsx+++ b/apps/erp/app/routes/x+/people+/people.tsx@@ -58,8 +58,7 @@ export async function loader({ request }: LoaderFunctionArgs) {return json({attributeCategories: attributeCategories.data,employeeTypes: employeeTypes.data ?? [],- people:- people.data?.filter((p) => !p.email?.includes("@carbonos.dev")) ?? [],+ people: people.data?.filter((p) => !p.email?.includes("@carbon.ms")) ?? [],count: people.count,});}diff --git a/apps/erp/app/routes/x+/users+/customers.new.tsx b/apps/erp/app/routes/x+/users+/customers.new.tsxindex f7b9f21771..bcc226fdc3 100644--- a/apps/erp/app/routes/x+/users+/customers.new.tsx+++ b/apps/erp/app/routes/x+/users+/customers.new.tsx@@ -62,7 +62,7 @@ export async function action({ request }: ActionFunctionArgs) {}const invitationEmail = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: result.email,subject: `You have been invited to join ${company.data?.name} on Carbon`,headers: {diff --git a/apps/erp/app/routes/x+/users+/employees.new.tsx b/apps/erp/app/routes/x+/users+/employees.new.tsxindex 6d49f17f86..11f28d158e 100644--- a/apps/erp/app/routes/x+/users+/employees.new.tsx+++ b/apps/erp/app/routes/x+/users+/employees.new.tsx@@ -86,7 +86,7 @@ export async function action({ request }: ActionFunctionArgs) {}const invitationEmail = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: email,subject: `You have been invited to join ${company.data?.name} on Carbon`,headers: {diff --git a/apps/erp/app/routes/x+/users+/employees.tsx b/apps/erp/app/routes/x+/users+/employees.tsxindex 8f3d4904ee..ec66da5492 100644--- a/apps/erp/app/routes/x+/users+/employees.tsx+++ b/apps/erp/app/routes/x+/users+/employees.tsx@@ -57,7 +57,7 @@ export async function loader({ request }: LoaderFunctionArgs) {return json({count: employees.count ?? 0,employees:- employees.data?.filter((e) => !e.email?.includes("@carbonos.dev")) ?? [],+ employees.data?.filter((e) => !e.email?.includes("@carbon.ms")) ?? [],employeeTypes: employeeTypes.data,});}diff --git a/apps/erp/app/routes/x+/users+/resend-invite.tsx b/apps/erp/app/routes/x+/users+/resend-invite.tsxindex 172ff53e2f..4145f098fd 100644--- a/apps/erp/app/routes/x+/users+/resend-invite.tsx+++ b/apps/erp/app/routes/x+/users+/resend-invite.tsx@@ -65,7 +65,7 @@ export async function action({ request }: ActionFunctionArgs) {}const invitationEmail = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: user.data.email,subject: `You have been invited to join ${company.data?.name} on Carbon`,headers: {diff --git a/apps/erp/app/routes/x+/users+/suppliers.new.tsx b/apps/erp/app/routes/x+/users+/suppliers.new.tsxindex 9bd2912f93..0a590edde2 100644--- a/apps/erp/app/routes/x+/users+/suppliers.new.tsx+++ b/apps/erp/app/routes/x+/users+/suppliers.new.tsx@@ -62,7 +62,7 @@ export async function action({ request }: ActionFunctionArgs) {}const invitationEmail = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: result.email,subject: `You have been invited to join ${company.data?.name} on Carbon`,headers: {diff --git a/apps/mes/app/components/RealtimeDataProvider.tsx b/apps/mes/app/components/RealtimeDataProvider.tsxindex 599e5dc22b..52840ea890 100644--- a/apps/mes/app/components/RealtimeDataProvider.tsx+++ b/apps/mes/app/components/RealtimeDataProvider.tsx@@ -68,7 +68,7 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {setItems(items.data ?? []);setPeople(// @ts-ignore- people.data?.filter((p) => !p.email?.includes("@carbonos.dev")) ?? []+ people.data?.filter((p) => !p.email?.includes("@carbon.ms")) ?? []);};diff --git a/llm/cache/billing-system.md b/llm/cache/billing-system.mdindex 392884d82e..2c09fa5f57 100644--- a/llm/cache/billing-system.md+++ b/llm/cache/billing-system.md@@ -102,7 +102,7 @@ The system handles various Stripe webhook events:For plans with `userBasedPricing = true`:-- Counts active users per company (excluding @carbonos.dev emails)+- Counts active users per company (excluding @carbon.ms emails)- Automatically updates Stripe subscription quantity- Triggered when users are added/removed from companiesdiff --git a/packages/auth/src/services/verification.server.ts b/packages/auth/src/services/verification.server.tsindex ffddf7c4d5..b392553074 100644--- a/packages/auth/src/services/verification.server.ts+++ b/packages/auth/src/services/verification.server.ts@@ -24,7 +24,7 @@ export async function sendVerificationCode(email: string) {);const result = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: email,subject: "Verify your email address",html,diff --git a/packages/database/supabase/migrations/20230123004317_companies-rls.sql b/packages/database/supabase/migrations/20230123004317_companies-rls.sqlindex 03a176e87c..2cda9b15b2 100644--- a/packages/database/supabase/migrations/20230123004317_companies-rls.sql+++ b/packages/database/supabase/migrations/20230123004317_companies-rls.sql@@ -73,7 +73,7 @@ CREATE POLICY "Users can view other users from their same company" ON "user" FOR);INSERT INTO "user" ("id", "email", "firstName", "lastName")-VALUES ('system', '[email protected]', 'System', 'Operation');+VALUES ('system', '[email protected]', 'System', 'Operation');ALTER TABLE "userPermission" ENABLE ROW LEVEL SECURITY;diff --git a/packages/documents/src/email/VerificationEmail.tsx b/packages/documents/src/email/VerificationEmail.tsxindex 9624ac9b4c..518c4ceedd 100644--- a/packages/documents/src/email/VerificationEmail.tsx+++ b/packages/documents/src/email/VerificationEmail.tsx@@ -98,7 +98,7 @@ export const VerificationEmail = ({}}>If you're having trouble, you can reply to this email or contact us- at [email protected]+ at [email protected]</Text></Container></Body>diff --git a/packages/documents/src/email/WelcomeEmail.tsx b/packages/documents/src/email/WelcomeEmail.tsxindex a42bc749b2..ebc1a80436 100644--- a/packages/documents/src/email/WelcomeEmail.tsx+++ b/packages/documents/src/email/WelcomeEmail.tsx@@ -69,10 +69,9 @@ export const WelcomeEmail = ({ firstName = "Huckleberry" }: Props) => {<br /><br />Feel free to email me at{" "}- <Link href="mailto:[email protected]">[email protected]</Link> if- you have any questions. I'm happy to to help you get started and- answer any questions about the things that makes your business- unique.+ <Link href="mailto:[email protected]">[email protected]</Link> if you have+ any questions. I'm happy to to help you get started and answer any+ questions about the things that makes your business unique.<br /><br />In the meantime, you can start by exploring{" "}diff --git a/packages/jobs/trigger/onboard.ts b/packages/jobs/trigger/onboard.tsindex bc6ca6147e..1f9cfb8a9d 100644--- a/packages/jobs/trigger/onboard.ts+++ b/packages/jobs/trigger/onboard.ts@@ -43,7 +43,7 @@ export const onboardTask = task({if (sendOnboardingEmail) {await resend.emails.send({- from: "Brad from Carbon <[email protected]>",+ from: "Brad from Carbon <[email protected]>",to: user.data.email,subject: `Welcome to Carbon`,html: await render(@@ -58,7 +58,7 @@ export const onboardTask = task({if (sendOnboardingEmail) {await resend.emails.send({- from: "Brad from Carbon <[email protected]>",+ from: "Brad from Carbon <[email protected]>",to: user.data.email,subject: `Get the most out of Carbon`,html: render(diff --git a/packages/jobs/trigger/user-admin.ts b/packages/jobs/trigger/user-admin.tsindex 22bca28ba8..a0b2fb5df9 100644--- a/packages/jobs/trigger/user-admin.ts+++ b/packages/jobs/trigger/user-admin.ts@@ -82,7 +82,7 @@ export const userAdminTask = task({}const invitationEmail = await resend.emails.send({- from: "Carbon <[email protected]>",+ from: "Carbon <[email protected]>",to: user.data.email,subject: `You have been invited to join ${company.data?.name} on Carbon`,headers: {diff --git a/packages/stripe/src/stripe.server.ts b/packages/stripe/src/stripe.server.tsindex 1ea6cc9a98..8af2ec4cc9 100644--- a/packages/stripe/src/stripe.server.ts+++ b/packages/stripe/src/stripe.server.ts@@ -607,7 +607,7 @@ export async function updateSubscriptionQuantityForCompany(companyId: string) {const activeUserCount =activeUsersResult.data?.filter(- (user) => !(user?.email).includes("@carbonos.dev")+ (user) => !(user?.email).includes("@carbon.ms")).length || 1;// Get the subscription from Stripe to find the subscription itemdiff --git a/packages/utils/src/const.ts b/packages/utils/src/const.tsindex 95a88222b3..f884b3112b 100644--- a/packages/utils/src/const.ts+++ b/packages/utils/src/const.ts@@ -1 +1 @@-export const SUPPORT_EMAIL = "[email protected]";+export const SUPPORT_EMAIL = "[email protected]";