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: button hover effect

Brad Barbind85906b2c5cb
diff --git a/apps/university/app/utils/path.ts b/apps/university/app/utils/path.ts
index 9afc52e77e..6c4a413df3 100644
--- a/apps/university/app/utils/path.ts
+++ b/apps/university/app/utils/path.ts
@@ -1,11 +1,13 @@
-import { getAppUrl, SUPABASE_URL } from "@carbon/auth";
+import { SUPABASE_URL } from "@carbon/auth";
import { generatePath } from "@remix-run/react";
const challenge = "/challenge"; // from ~/routes/challenge+ folder
const course = "/course"; // from ~/routes/course+ folder
const lesson = "/lesson"; // from ~/routes/lesson+ folder
-const ERP_URL = getAppUrl();
+const ERP_URL = SUPABASE_URL.includes("localhost")
+ ? "http://localhost:3000"
+ : "https://app.carbonos.dev";
export const path = {
to: {
diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsx
index 402350c430..6772b526f4 100644
--- a/packages/react/src/Button.tsx
+++ b/packages/react/src/Button.tsx
@@ -12,6 +12,7 @@ export const buttonVariants = cva(
"focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0 whitespace-nowrap",
"after:pointer-events-none after:absolute after:-inset-[3px] after:rounded-lg after:border after:border-blue-500 after:opacity-0 after:ring-2 after:ring-blue-500/20 after:transition-opacity focus-visible:after:opacity-100 active:after:opacity-0",
"before:pointer-events-none before:bg-gradient-to-b before:transition-opacity before:from-white/[0.12] before:absolute before:inset-0 before:z-[1] before:rounded before:opacity-0",
+ "hover:scale-95 focus-visible:scale-95 transition-all duration-150 ease-in-out",
],
{
variants: {
diff --git a/packages/stripe/src/stripe.server.ts b/packages/stripe/src/stripe.server.ts
index cd7d1a28b4..8974a0fd2f 100644
--- a/packages/stripe/src/stripe.server.ts
+++ b/packages/stripe/src/stripe.server.ts
@@ -33,7 +33,7 @@ const KvStripeCustomerSchema = z.object({
z.literal("trialing"),
z.literal("unpaid"),
]),
- planId: z.string().nullable(),
+ planId: z.string().nullish(),
priceId: z.string(),
currentPeriodStart: z.number(),
currentPeriodEnd: z.number(),
@@ -145,15 +145,19 @@ export async function getStripeCustomerByCompanyId(companyId: string) {
if (!customerId) {
return null;
}
+
+ console.log({ customerId });
const customer = await getStripeCustomer(customerId);
if (!customer || customer.status === "canceled") {
return null;
}
+
return customer;
}
export async function getStripeCustomer(customerId: string) {
const customer = await redis.get(`stripe:customer:${customerId}`);
+ console.log(customer);
return KvStripeCustomerSchema.nullish().parse(customer);
}