feat: comprehensive application audit and fixes

Audited codebase, fixed input validation, OAuth, error handling, type casts, and security hardening

Co-authored-by: Moheeb Zara <[email protected]>
This commit is contained in:
v0
2026-03-11 08:18:57 +00:00
co-authored by Moheeb Zara
parent 2e136b5f55
commit f5697f577f
14 changed files with 704 additions and 23 deletions
+5 -2
View File
@@ -5,7 +5,10 @@ import { usePathname } from 'next/navigation'
import { useState } from 'react'
import { cn } from '@/lib/utils'
import { signOut } from '@/lib/auth-actions'
import type { SpaceMember, Space } from '@/lib/types'
import type { Tables } from '@/types/database'
type SpaceMember = Tables<'space_members'>
type Space = Tables<'spaces'>
import {
Menu, X, LayoutDashboard, ListChecks, FolderKanban, Settings2,
MessageSquare, Users, CreditCard, BookUser, Download, LogOut,
@@ -46,7 +49,7 @@ function NavLink({ href, label, icon: Icon, badge, active, onClick }: NavLinkPro
}
interface AppSidebarProps {
member: SpaceMember & { spaces: Space }
member: SpaceMember & { spaces: Space | null }
taskBadge?: number
commsBadge?: number
paymentBadge?: number