: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: add feedback banners (#123845)
Alex V6691b203ac81
diff --git a/products/business_knowledge/frontend/scenes/sources/BusinessKnowledgeScene.tsx b/products/business_knowledge/frontend/scenes/sources/BusinessKnowledgeScene.tsxindex 2e19fed8fdcc..19678490e78e 100644--- a/products/business_knowledge/frontend/scenes/sources/BusinessKnowledgeScene.tsx+++ b/products/business_knowledge/frontend/scenes/sources/BusinessKnowledgeScene.tsx@@ -2,7 +2,7 @@ import { useActions, useValues } from 'kea'import { router } from 'kea-router'import { IconPlus, IconPlusSmall, IconRefresh, IconTrash } from '@posthog/icons'-import { LemonButton, LemonDialog, LemonInput, LemonSelect, LemonTable, LemonTag } from '@posthog/lemon-ui'+import { LemonBanner, LemonButton, LemonDialog, LemonInput, LemonSelect, LemonTable, LemonTag } from '@posthog/lemon-ui'import { Button } from '@posthog/quill'import { NotFound } from 'lib/components/NotFound'@@ -86,6 +86,14 @@ export function BusinessKnowledgeScene(): JSX.Element {)}/>+ {/* pinned: survey 01a17c76-64cf-0000-1bbf-c105e1141a32 targets #business-knowledge-feedback-button */}+ <LemonBanner+ type="info"+ dismissKey="business-knowledge-beta-banner"+ action={{ children: 'Send feedback', id: 'business-knowledge-feedback-button' }}+ >+ <p>Business knowledge is in beta. Tell us what you'd like to see here, or report any issues.</p>+ </LemonBanner><BusinessKnowledgeTabs activeTab="sources" /><SceneSection title="Libraries" className="gap-y-2"><LibraryRow />diff --git a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsxindex ab5a0b40ddd3..1bbc98dcecf3 100644--- a/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx+++ b/products/conversations/frontend/scenes/tickets/SupportTicketsScene.tsx@@ -3,7 +3,7 @@ import { useActions, useMountedLogic, useValues } from 'kea'import { combineUrl, router } from 'kea-router'import { useEffect, useMemo, useRef } from 'react'-import { LemonButton, LemonCheckbox, LemonTable, LemonTableColumns } from '@posthog/lemon-ui'+import { LemonBanner, LemonButton, LemonCheckbox, LemonTable, LemonTableColumns } from '@posthog/lemon-ui'import { useBulkSelection } from 'lib/lemon-ui/LemonTable/useBulkSelection'import { newInternalTab } from 'lib/utils/newInternalTab'@@ -195,6 +195,8 @@ export function SupportTicketsTable({ embedded = false }: SupportTicketsTablePro}export function SupportTicketsScene(): JSX.Element {+ const { aiEnabled } = useValues(supportTicketsSceneLogic)+return (<SceneContent className="pb-4"><SceneTitleSection@@ -205,6 +207,16 @@ export function SupportTicketsScene(): JSX.Element {}}actions={<ComposeTicketButton />}/>+ {/* pinned: survey 01a17c76-69b3-0000-bb24-4adfd734f406 targets #ai-support-feedback-button */}+ {aiEnabled && (+ <LemonBanner+ type="info"+ dismissKey="ai-support-feedback-banner"+ action={{ children: 'Send feedback', id: 'ai-support-feedback-button' }}+ >+ <p>Tell us how the AI agent is working, or report any issues.</p>+ </LemonBanner>+ )}<ScenesTabs /><TicketListFilters /><SupportTicketsTable />