From db06e79da3382b57d5b93be573e67c7802bf87bd Mon Sep 17 00:00:00 2001 From: Ishaan Gupta Date: Fri, 29 May 2026 22:07:36 +0530 Subject: [PATCH] add web upgrade plans UI --- apps/web/components/header.tsx | 34 ++++ apps/web/components/settings/billing.tsx | 210 +++++++++++++++++++++++ 2 files changed, 244 insertions(+) diff --git a/apps/web/components/header.tsx b/apps/web/components/header.tsx index fd81bf52..ea40bd62 100644 --- a/apps/web/components/header.tsx +++ b/apps/web/components/header.tsx @@ -15,6 +15,7 @@ import { LifeBuoy, LayoutGrid, ChevronRight, + Zap, } from "lucide-react" import { Button } from "@ui/components/button" import { cn } from "@lib/utils" @@ -352,6 +353,15 @@ export function Header({ onAddMemory, onOpenSearch }: HeaderProps) { "linear-gradient(180deg, #0A0E14 0%, #05070A 100%)", }} > + + + + Upgrade + + ) : ( <> + + + + + + Upgrade + + + ) + } + + if (currentPlan === "pro") { + return ( + + ) + } + + if (currentPlan === "scale" || currentPlan === "enterprise") { + return ( + + ) + } + + return ( + + ) + } + return (
@@ -694,6 +879,31 @@ export default function Billing() {
+
+
+ Plans +

+ All plans include usage-metered access. Top-ups roll over with paid + plans. +

+
+
+ {PLAN_CARDS.map((plan) => ( + + ))} +
+
+
Credits