feat: onboarding trial flow, Google sign-in, dark mode hotspot fixes
- Move trial creation from auth hook to dedicated /subscriptions/trial endpoint with eligibility checks (3-day Full Paket trial) - Add animated onboarding progress (Remotion) with confetti on completion - Register redirects to subscription page with welcome flow - Add Google social login/signup support with config injection - Improve hotspot overlay visibility in dark mode - Show "Panele Git" on landing page when authenticated - Turkish translations for API error messages - Add toast utility wrapper, UUID generation for auth IDs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,7 @@ class ApiClient {
|
||||
|
||||
if (!res.ok) {
|
||||
throw new ApiError(
|
||||
data?.error?.message || "Request failed",
|
||||
data?.error?.message || "İstek başarısız",
|
||||
data?.error?.code || "UNKNOWN",
|
||||
res.status,
|
||||
);
|
||||
@@ -66,7 +66,7 @@ class ApiClient {
|
||||
|
||||
if (!res.ok) {
|
||||
throw new ApiError(
|
||||
data?.error?.message || "Upload failed",
|
||||
data?.error?.message || "Yükleme başarısız",
|
||||
data?.error?.code || "UNKNOWN",
|
||||
res.status,
|
||||
);
|
||||
|
||||
25
apps/web/src/lib/toast.ts
Normal file
25
apps/web/src/lib/toast.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { sileo } from "sileo";
|
||||
export { Toaster } from "sileo";
|
||||
|
||||
interface ToastOptions {
|
||||
description?: string;
|
||||
duration?: number;
|
||||
position?:
|
||||
| "top-left"
|
||||
| "top-center"
|
||||
| "top-right"
|
||||
| "bottom-left"
|
||||
| "bottom-center"
|
||||
| "bottom-right";
|
||||
}
|
||||
|
||||
export const toast = {
|
||||
success: (title: string, opts?: ToastOptions) =>
|
||||
sileo.success({ title, ...opts }),
|
||||
error: (title: string, opts?: ToastOptions) =>
|
||||
sileo.error({ title, ...opts }),
|
||||
info: (title: string, opts?: ToastOptions) =>
|
||||
sileo.info({ title, ...opts }),
|
||||
warning: (title: string, opts?: ToastOptions) =>
|
||||
sileo.warning({ title, ...opts }),
|
||||
};
|
||||
Reference in New Issue
Block a user