: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(user_interviews): show responded interviewees first on the topic page (#61239)
Paul D'Ambra66285e41a131
diff --git a/products/user_interviews/frontend/UserInterview.tsx b/products/user_interviews/frontend/UserInterview.tsxindex 5f743b68d677..dd16febe4564 100644--- a/products/user_interviews/frontend/UserInterview.tsx+++ b/products/user_interviews/frontend/UserInterview.tsx@@ -84,6 +84,10 @@ export function UserInterview({ id }: UserInterviewLogicProps): JSX.Element {const pendingCount = totalTargeted - respondedCountconst questionCount = topic.questions?.length || 0const allIdentifiers = [...(topic.interviewee_emails || []), ...(topic.interviewee_distinct_ids || [])]+ // Responded interviewees first (grouped together), awaiting ones below — stable within each group.+ const orderedIdentifiers = [...allIdentifiers].sort(+ (a, b) => Number(respondedIdentifiers.has(b)) - Number(respondedIdentifiers.has(a))+ )return (<SceneContent>@@ -163,7 +167,7 @@ export function UserInterview({ id }: UserInterviewLogicProps): JSX.Element {links.</div>) : (- allIdentifiers.map((identifier) => (+ orderedIdentifiers.map((identifier) => (<PersonRowkey={identifier}identifier={identifier}