The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
final improvements
Steven Tey6b8b71304111
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsxindex 72b37c3fca..25e3c1757e 100644--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx@@ -94,7 +94,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {// Top-leveldefault: ({ slug, pathname, queryString, showNews }) => ({title: "Short Links",- showSwitcher: true,showNews,direction: "left",content: [@@ -158,7 +157,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {// Programprogram: ({ slug, showNews }) => ({title: "Partner Program",- showSwitcher: true,showNews,direction: "left",content: [@@ -319,6 +317,7 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {userSettings: ({ slug }) => ({title: "Settings",backHref: `/${slug}`,+ hideSwitcherIcons: true,content: [{name: "Account",diff --git a/apps/web/ui/layout/sidebar/sidebar-nav.tsx b/apps/web/ui/layout/sidebar/sidebar-nav.tsxindex 25e1a59af0..1ce740f61b 100644--- a/apps/web/ui/layout/sidebar/sidebar-nav.tsx+++ b/apps/web/ui/layout/sidebar/sidebar-nav.tsx@@ -54,8 +54,8 @@ export type SidebarNavAreas<T extends Record<any, any>> = Record<(args: T) => {title?: string;backHref?: string;- showSwitcher?: boolean;- showNews?: boolean;+ showNews?: boolean; // show news segment – TODO: enable this for Partner Program too+ hideSwitcherIcons?: boolean; // hide workspace switcher + product icons for this areadirection?: "left" | "right";content: {name?: string;@@ -96,14 +96,14 @@ export function SidebarNav<T extends Record<any, any>>({<NavWordmark className="h-5" isInApp /></Link></div>- <div className="flex flex-col gap-3">- {areas[currentArea](data).showSwitcher && switcher && (- <div>{switcher}</div>- )}- {groups(data).map((group) => (- <NavGroupItem key={group.name} group={group} />- ))}- </div>+ {!areas[currentArea](data).hideSwitcherIcons && (+ <div className="flex flex-col gap-3">+ {switcher}+ {groups(data).map((group) => (+ <NavGroupItem key={group.name} group={group} />+ ))}+ </div>+ )}</div><div className="flex flex-col items-center gap-3 py-3"><Suspense fallback={null}>{toolContent}</Suspense>diff --git a/apps/web/ui/layout/sidebar/workspace-dropdown.tsx b/apps/web/ui/layout/sidebar/workspace-dropdown.tsxindex c9ae38d90a..b47c8a2ff3 100644--- a/apps/web/ui/layout/sidebar/workspace-dropdown.tsx+++ b/apps/web/ui/layout/sidebar/workspace-dropdown.tsx@@ -103,6 +103,7 @@ export function WorkspaceDropdown() {height={28}alt={selected.id || selected.name}className="size-7 flex-none shrink-0 overflow-hidden rounded-full"+ draggable={false}/></button></Popover>@@ -173,6 +174,7 @@ function WorkspaceList({height={28}alt={selected.name}className="size-8 shrink-0 overflow-hidden rounded-full"+ draggable={false}/><div className="min-w-0"><div className="truncate text-sm font-medium leading-5 text-neutral-900">@@ -237,6 +239,7 @@ function WorkspaceList({height={28}alt={id}className="size-6 shrink-0 overflow-hidden rounded-full"+ draggable={false}/><span className="block truncate text-sm leading-5 text-neutral-900 sm:max-w-[140px]">{name}