Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into signup-email-password

Kiran Kf3c9d68444a2
diff --cc apps/web/lib/actions/safe-action.ts
index 09b81e4445,bca3962a72..894d280ea4
--- a/apps/web/lib/actions/safe-action.ts
+++ b/apps/web/lib/actions/safe-action.ts
@@@ -14,12 -14,22 +14,26 @@@ export const actionClient = createSafeA
serverError: "An unknown error occurred.",
};
},
+
+ handleServerErrorLog(originalError) {
+ console.error("Action error:", originalError.message);
+ },
});
+ export const authUserActionClient = actionClient.use(async ({ next }) => {
+ const session = await getSession();
+
+ if (!session?.user.id) {
+ throw new Error("Unauthorized: Login required.");
+ }
+
+ return next({
+ ctx: {
+ user: session.user,
+ },
+ });
+ });
+
export const authActionClient = actionClient.use(
async ({ next, clientInput }) => {
const session = await getSession();
diff --cc apps/web/tailwind.config.ts
index 68333a4e0a,5dd32015a7..3ec52ee87c
--- a/apps/web/tailwind.config.ts
+++ b/apps/web/tailwind.config.ts
@@@ -23,8 -24,9 +24,11 @@@ const config: Pick<Config, "presets">
// Table pinned column shadow animation
"table-pinned-shadow":
"table-pinned-shadow cubic-bezier(0, 0, 1, 0)",
+ // OTP caret blink animation
+ "caret-blink": "caret-blink 1s ease-out infinite",
+ // Pulse scale animation used for onboarding/welcome
+ "pulse-scale": "pulse-scale 6s ease-out infinite",
+ "gradient-move": "gradient-move 5s linear infinite",
},
keyframes: {
...sharedConfig?.theme?.extend?.keyframes,
@@@ -49,11 -51,17 +53,22 @@@
"0%": { filter: "drop-shadow(rgba(0, 0, 0, 0.1) -2px 10px 6px)" },
"100%": { filter: "drop-shadow(rgba(0, 0, 0, 0) -2px 10px 6px)" },
},
+ // OTP caret blink animation
+ "caret-blink": {
+ "0%,70%,100%": { opacity: "0" },
+ "20%,50%": { opacity: "1" },
+ },
+ // Pulse scale animation used for onboarding/welcome
+ "pulse-scale": {
+ "0%": { transform: "scale(0.8)", opacity: "0" },
+ "30%": { opacity: "1" },
+ "100%": { transform: "scale(2)", opacity: "0" },
+ },
+ // Gradient move animation for gradient text
+ "gradient-move": {
+ "0%": { backgroundPosition: "0% 50%" },
+ "100%": { backgroundPosition: "200% 50%" },
+ },
},
},
},
diff --cc apps/web/vercel.json
index 67205920c2,2cedbdfe59..ba487b5a45
--- a/apps/web/vercel.json
+++ b/apps/web/vercel.json
@@@ -8,9 -8,9 +8,13 @@@
"path": "/api/cron/usage",
"schedule": "0 12 * * *"
},
+ {
+ "path": "/api/cron/cleanup",
+ "schedule": "0 */6 * * *"
++ },
+ {
+ "path": "/api/cron/disposable-emails",
+ "schedule": "0 12 * * 1"
}
],
"functions": {
diff --cc packages/ui/src/hooks/index.ts
index 511c9c4a4e,82924adba7..49487490fb
--- a/packages/ui/src/hooks/index.ts
+++ b/packages/ui/src/hooks/index.ts
@@@ -11,5 -12,5 +12,6 @@@ export * from "./use-pagination"
export * from "./use-resize-observer";
export * from "./use-router-stuff";
export * from "./use-scroll";
+ export * from "./use-scroll-progress";
export * from "./use-toast-with-undo";
+export * from "./use-user-avatar-url";