Unify entities navigation, redesign time clock, and add invoice PDF preview.

Combine clients and businesses under entities, polish the web time clock,
and show live invoice PDF preview with tighter line-item editing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-23 01:08:23 -04:00
co-authored by Cursor
parent 0b7ffac4e7
commit 480c50981d
19 changed files with 734 additions and 364 deletions
@@ -6,7 +6,7 @@ import { usePathname } from "next/navigation";
import { Button } from "~/components/ui/button";
import { Skeleton } from "~/components/ui/skeleton";
import { useAuthSession } from "~/hooks/use-auth-session";
import { navigationConfig } from "~/lib/navigation";
import { navigationConfig, isNavLinkActive } from "~/lib/navigation";
interface SidebarTriggerProps {
isOpen: boolean;
@@ -68,10 +68,10 @@ export function SidebarTrigger({ isOpen, onToggle }: SidebarTriggerProps) {
key={link.href}
href={link.href}
aria-current={
pathname === link.href ? "page" : undefined
isNavLinkActive(pathname, link.href) ? "page" : undefined
}
className={`flex items-center gap-3 px-3 py-2.5 text-sm font-medium transition-colors ${
pathname === link.href
isNavLinkActive(pathname, link.href)
? "bg-primary/10 text-primary"
: "text-foreground hover:bg-muted"
}`}