Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(experiments): replace feedback tab empty-state banner with a header (#106481)

Juraj Majerik6e1115ca90e7
diff --git a/frontend/src/scenes/experiments/ExperimentView/ExperimentFeedbackTab.tsx b/frontend/src/scenes/experiments/ExperimentView/ExperimentFeedbackTab.tsx
index c47506856359..6c2c57916ca7 100644
--- a/frontend/src/scenes/experiments/ExperimentView/ExperimentFeedbackTab.tsx
+++ b/frontend/src/scenes/experiments/ExperimentView/ExperimentFeedbackTab.tsx
@@ -31,7 +31,8 @@ export function ExperimentFeedbackTab({ experiment }: { experiment: Experiment }
type: QuickSurveyType.EXPERIMENT,
experiment,
}}
- emptyStateBannerMessage="Gather qualitative feedback from users participating in this experiment"
+ emptyStateHeader="Survey your experiment participants"
+ emptyStateDescription="Create a survey that targets users exposed to this experiment. Responses are linked to the experiment so you can review them alongside your results."
multipleSurveysBannerMessage={
<>
Showing only surveys associated with this experiment.{' '}
diff --git a/frontend/src/scenes/feature-flags/FeatureFlagFeedbackTab.tsx b/frontend/src/scenes/feature-flags/FeatureFlagFeedbackTab.tsx
index e4268e5c3aff..cd5b6d05a6b6 100644
--- a/frontend/src/scenes/feature-flags/FeatureFlagFeedbackTab.tsx
+++ b/frontend/src/scenes/feature-flags/FeatureFlagFeedbackTab.tsx
@@ -18,7 +18,8 @@ export function FeedbackTab({ featureFlag }: { featureFlag: FeatureFlagType }):
type: QuickSurveyType.FEATURE_FLAG,
flag: featureFlag,
}}
- emptyStateBannerMessage="Gather valuable insights by automatically displaying a survey to users in this feature flag"
+ emptyStateHeader="Survey users with this flag enabled"
+ emptyStateDescription="Create a survey that targets users with this feature flag enabled. Responses are linked to the flag so you can review them alongside your rollout."
multipleSurveysBannerMessage={
<>
Showing only surveys associated with this feature flag.{' '}
diff --git a/frontend/src/scenes/surveys/FeedbackTabContent.tsx b/frontend/src/scenes/surveys/FeedbackTabContent.tsx
index 14dba55d7501..4c5215f35df5 100644
--- a/frontend/src/scenes/surveys/FeedbackTabContent.tsx
+++ b/frontend/src/scenes/surveys/FeedbackTabContent.tsx
@@ -21,14 +21,16 @@ import { QuickSurveyForm } from './QuickSurveyModal'
export interface FeedbackTabContentProps {
surveys: Survey[]
context: QuickSurveyContext
- emptyStateBannerMessage: string
+ emptyStateHeader: string
+ emptyStateDescription: string
multipleSurveysBannerMessage: React.ReactNode
}
export function FeedbackTabContent({
surveys,
context,
- emptyStateBannerMessage,
+ emptyStateHeader,
+ emptyStateDescription,
multipleSurveysBannerMessage,
}: FeedbackTabContentProps): JSX.Element {
const { surveysResponsesCountLoading, surveysResponsesCount } = useValues(surveysLogic)
@@ -37,9 +39,8 @@ export function FeedbackTabContent({
return (
<div className="flex flex-col items-center pt-5">
<div className="w-full max-w-5xl">
- <LemonBanner type="info" className="mb-6">
- {emptyStateBannerMessage}
- </LemonBanner>
+ <h2 className="font-semibold text-lg">{emptyStateHeader}</h2>
+ <p className="text-secondary max-w-prose mb-6">{emptyStateDescription}</p>
<div className="border rounded p-6 bg-bg-light">
<QuickSurveyForm context={context} />
</div>