From 5f62f64e02cc7785ee830509ec8f014b0a9b871e Mon Sep 17 00:00:00 2001 From: Waleed Date: Tue, 25 Aug 2026 22:42:26 -0700 Subject: [PATCH] fix(landing): refresh sidebars across landing surface (#7102) * fix(landing): refresh sidebars across landing surface * fix(landing): remove inline preview scaling --- .../components/captured-platform-surface.tsx | 48 ++++++++++ .../integrations-callout.tsx | 18 ++-- .../knowledge-callout/knowledge-callout.tsx | 18 ++-- .../components/logs-callout/logs-callout.tsx | 18 ++-- .../hero-platform-loop/hero-platform-loop.tsx | 88 +++++------------- .../hero-platform-loop/sidebar-hotspots.tsx | 89 +------------------ .../app/(landing)/components/hero/hero.tsx | 30 ++----- .../shared/editor-loop/editor-loop.tsx | 6 +- .../hero-loop-shell/hero-loop-shell.tsx | 8 +- .../shared/sidebar-preview-content.ts | 7 ++ .../enterprise-sidebar.tsx | 23 +++-- .../files/components/files-hero-loop.tsx | 2 +- .../components/knowledge-hero-loop.tsx | 2 +- .../logs/components/logs-hero-loop.tsx | 2 +- .../tables/components/tables-hero-loop.tsx | 2 +- 15 files changed, 124 insertions(+), 237 deletions(-) create mode 100644 apps/sim/app/(landing)/components/features/components/captured-platform-surface.tsx create mode 100644 apps/sim/app/(landing)/components/shared/sidebar-preview-content.ts diff --git a/apps/sim/app/(landing)/components/features/components/captured-platform-surface.tsx b/apps/sim/app/(landing)/components/features/components/captured-platform-surface.tsx new file mode 100644 index 0000000000..a83b364490 --- /dev/null +++ b/apps/sim/app/(landing)/components/features/components/captured-platform-surface.tsx @@ -0,0 +1,48 @@ +'use client' + +import Image from 'next/image' +import { + PREVIEW_SIDEBAR_CHATS, + PREVIEW_SIDEBAR_WORKFLOWS, +} from '@/app/(landing)/components/shared/sidebar-preview-content' +import { + EnterpriseSidebar, + type EnterpriseSidebarProps, +} from '@/app/(landing)/enterprise/components/enterprise-platform-loop/enterprise-sidebar' + +interface CapturedPlatformSurfaceProps { + src: string + sizes: string + activeItem: NonNullable +} + +/** + * A captured product surface with the current landing sidebar rendered over + * the capture's legacy sidebar pixels. Keeping the sidebar live gives every + * landing callout one source of truth while preserving the detailed product + * content in the capture beside it. + */ +export function CapturedPlatformSurface({ src, sizes, activeItem }: CapturedPlatformSurfaceProps) { + return ( +
+ +