Build fixes, email preview system

This commit is contained in:
2025-07-29 19:45:38 -04:00
parent e6791f8cb8
commit 9370d5c935
78 changed files with 5798 additions and 10397 deletions

View File

@@ -1,20 +1,18 @@
"use client";
import { signOut, useSession } from "next-auth/react";
import Link from "next/link";
import { useSession, signOut } from "next-auth/react";
import { useState } from "react";
import { Button } from "~/components/ui/button";
import { Skeleton } from "~/components/ui/skeleton";
import { Logo } from "~/components/branding/logo";
import { SidebarTrigger } from "~/components/navigation/sidebar-trigger";
import { api } from "~/trpc/react";
import { FileText, Edit } from "lucide-react";
import { Button } from "~/components/ui/button";
import { Skeleton } from "~/components/ui/skeleton";
export function Navbar() {
const { data: session, status } = useSession();
const [isMobileNavOpen, setIsMobileNavOpen] = useState(false);
// Get current open invoice for quick access
const { data: currentInvoice } = api.invoices.getCurrentOpen.useQuery();
// const { data: currentInvoice } = api.invoices.getCurrentOpen.useQuery();
return (
<header className="fixed top-2 right-2 left-2 z-30 md:top-3 md:right-3 md:left-3">
@@ -30,7 +28,6 @@ export function Navbar() {
</Link>
</div>
<div className="flex items-center gap-2 md:gap-4">
{status === "loading" ? (
<>
<Skeleton className="bg-muted/20 hidden h-5 w-20 sm:inline" />

View File

@@ -22,11 +22,11 @@ export function PageHeader({
switch (variant) {
case "gradient":
return `${baseClasses} text-3xl text-brand-gradient`;
return `${baseClasses} text-3xl text-foreground`;
case "large":
return `${baseClasses} text-4xl text-foreground`;
case "large-gradient":
return `${baseClasses} text-4xl text-brand-gradient`;
return `${baseClasses} text-4xl text-foreground`;
default:
return `${baseClasses} text-3xl text-foreground`;
}