Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"react-qr-code": "^2.0.18",
"react-tweet": "^3.2.1",
"sanitize-html": "^2.11.0",
"sonner": "^2.0.7",
"superjson": "^2.2.5",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { authConfig } from "@/lib/auth/config";
import { SessionWrapper } from "./SessionWrapper";
import { TRPCProvider } from "@/providers/trpc-provider";
import { GeistSans } from "geist/font/sans";
import { Toaster } from "sonner";

// DM Mono - Used for code, terminal, and monospace text
const dmMono = localFont({
Expand Down Expand Up @@ -124,6 +125,7 @@ export default async function RootLayout({
<PostHogAuthTracker />
<TRPCProvider>{children}</TRPCProvider>
</SessionWrapper>
<Toaster theme="system" richColors />
</ThemeProvider>
</PostHogProvider>
<Analytics />
Expand Down
7 changes: 4 additions & 3 deletions apps/web/src/components/payment/PaymentFlow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import PrimaryButton from "@/components/ui/custom-button";
import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import { useAnalytics } from "@/hooks/useAnalytics";
import { toast } from "sonner";

interface PaymentFlowProps {
planId: string; // Required: Plan ID from database
Expand Down Expand Up @@ -119,7 +120,7 @@ const PaymentFlow: React.FC<PaymentFlowProps> = ({
"verification_failed",
error instanceof Error ? error.message : "Unknown error"
);
alert("Payment verification failed. Please contact support.");
toast.error("Payment verification failed. Please contact support.");
setIsProcessing(false);
}
},
Expand All @@ -131,7 +132,7 @@ const PaymentFlow: React.FC<PaymentFlowProps> = ({
"payment_failed",
error instanceof Error ? error.message : String(error)
);
alert("Payment failed. Please try again.");
toast.error("Payment failed. Please try again.");
setIsProcessing(false);
},
onDismiss: () => {
Expand All @@ -146,7 +147,7 @@ const PaymentFlow: React.FC<PaymentFlowProps> = ({

try {
if (!planId || planId.trim().length === 0) {
alert("Payment is currently unavailable. Please contact support.");
toast.error("Payment is currently unavailable. Please contact support.");
return;
}

Expand Down
3 changes: 2 additions & 1 deletion apps/web/src/components/ui/FiltersContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ import { useRenderProjects } from "@/store/useRenderProjectsStore";
import { useProjectsData } from "@/store/useProjectsDataStore";
import { useLoading } from "@/store/useLoadingStore";
import { useProjectsNotFoundStore } from "@/store/useProjectsFoundStore";
import { toast } from "sonner";

export default function FiltersContainer() {
const handleClickWipFilters = () => {
window.alert("🏗️ Coming very soon! :)");
toast.info("🏗️ Coming very soon!");
};
Comment thread
coderabbitai[bot] marked this conversation as resolved.

const { toggleShowFilters } = useFilterStore();
Expand Down
38 changes: 27 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.