From 35b65b2e9d274bb15d1c99007241310847a56f20 Mon Sep 17 00:00:00 2001 From: v0 Date: Fri, 8 May 2026 11:47:27 +0000 Subject: [PATCH 1/2] feat: fix collapsed icon display for sidebar components Update 'lg' size variant to proper icon-mode styles and fix 'TeamSwitcher' and 'NavUser' for icon-only display on collapse. Co-authored-by: Sam <108990188+smcnab1@users.noreply.github.com> --- src/components/nav-user.tsx | 11 ++++--- src/components/team-switcher.tsx | 54 +++++++++++++++++++++----------- src/components/ui/sidebar.tsx | 2 +- 3 files changed, 42 insertions(+), 25 deletions(-) diff --git a/src/components/nav-user.tsx b/src/components/nav-user.tsx index f83d6db..a0f1ff8 100644 --- a/src/components/nav-user.tsx +++ b/src/components/nav-user.tsx @@ -67,8 +67,8 @@ export function NavUser() { - -
+ +
@@ -99,20 +99,21 @@ export function NavUser() { - + {getInitials(userName)} -
+
{userName} {formattedRole || userEmail}
- + diff --git a/src/components/team-switcher.tsx b/src/components/team-switcher.tsx index 3ca5870..0ef3f88 100644 --- a/src/components/team-switcher.tsx +++ b/src/components/team-switcher.tsx @@ -23,6 +23,11 @@ import { SidebarMenuItem, useSidebar, } from '@/components/ui/sidebar'; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from '@/components/ui/tooltip'; type OrgItem = { _id: string; @@ -31,7 +36,7 @@ type OrgItem = { }; export function TeamSwitcher() { - const { isMobile } = useSidebar(); + const { isMobile, state } = useSidebar(); const { user } = useAuthUser(); const { years, @@ -77,25 +82,36 @@ export function TeamSwitcher() { - - + + + +
+ +
+
+ + {activeOrg?.name ?? 'WorkloadWizard'} + + + {currentYear?.name ?? (activeOrg?.code ?? 'No year selected')} + +
+ +
+
+
+
-
+ {activeOrg?.name ?? 'WorkloadWizard'} + + Date: Fri, 8 May 2026 11:49:20 +0000 Subject: [PATCH 2/2] feat: make NEXT_PUBLIC_APP_URL optional with fallback Set default fallback URL for development to support v0 sandbox. Co-authored-by: Sam <108990188+smcnab1@users.noreply.github.com> --- src/lib/env.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/env.ts b/src/lib/env.ts index 8b6d8ad..2b93392 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -10,7 +10,11 @@ const PublicEnvSchema = z.object({ NEXT_PUBLIC_CONVEX_URL: z .string() .url('NEXT_PUBLIC_CONVEX_URL must be a URL'), - NEXT_PUBLIC_APP_URL: z.string().url('NEXT_PUBLIC_APP_URL must be a URL'), + NEXT_PUBLIC_APP_URL: z + .string() + .url('NEXT_PUBLIC_APP_URL must be a URL') + .optional() + .default('http://localhost:3000'), NEXT_PUBLIC_SENTRY_DSN: OptionalUrlSchema, NODE_ENV: z .enum(['development', 'test', 'production'])