From 188ab5f958aeea4c91078682eafa245fb6231467 Mon Sep 17 00:00:00 2001 From: CodexSandboxOffline Date: Mon, 6 Jul 2026 18:02:10 +0800 Subject: [PATCH] feat: add stream primer help link --- app/components/EmptyState.tsx | 7 ++++- app/components/StreamPrimer.tsx | 1 + app/streams/StreamsPageContent.tsx | 41 +++++++++++++++++++++++++----- app/streams/page.test.tsx | 20 ++++++++++++++- 4 files changed, 61 insertions(+), 8 deletions(-) diff --git a/app/components/EmptyState.tsx b/app/components/EmptyState.tsx index f692946..4593cf3 100644 --- a/app/components/EmptyState.tsx +++ b/app/components/EmptyState.tsx @@ -1,14 +1,18 @@ +import type { ReactNode } from "react"; + type EmptyStateProps = { eyebrow: string; title: string; description: string; actionLabel: string; onAction?: () => void; + /** Optional secondary CTA/help content shown with the primary action. */ + children?: ReactNode; /** Optional first-time guidance steps to display below the description. */ guidanceSteps?: string[]; }; -export function EmptyState({ eyebrow, title, description, actionLabel, onAction, guidanceSteps }: EmptyStateProps) { +export function EmptyState({ eyebrow, title, description, actionLabel, onAction, children, guidanceSteps }: EmptyStateProps) { return (

{eyebrow}

@@ -28,6 +32,7 @@ export function EmptyState({ eyebrow, title, description, actionLabel, onAction, + {children}
); } diff --git a/app/components/StreamPrimer.tsx b/app/components/StreamPrimer.tsx index 96da27a..caf9cbc 100644 --- a/app/components/StreamPrimer.tsx +++ b/app/components/StreamPrimer.tsx @@ -44,6 +44,7 @@ export const StreamPrimer = ({ onClose }: StreamPrimerProps) => { return (