: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
fix(workflows): explain the broadcast audience limit and link to sending limits (#111073)
Daniel Marchukb1b6b90da51c
diff --git a/products/workflows/frontend/Broadcasts/broadcastWizardLogic.ts b/products/workflows/frontend/Broadcasts/broadcastWizardLogic.tsindex d5944e849f72..8df604b3ecc5 100644--- a/products/workflows/frontend/Broadcasts/broadcastWizardLogic.ts+++ b/products/workflows/frontend/Broadcasts/broadcastWizardLogic.ts@@ -1439,9 +1439,16 @@ export const broadcastWizardLogic = kea<broadcastWizardLogicType>([actions.setStep('recipients')actions.showSavedDraftUrl()lemonToast.error(- `This audience is above the project's batch limit of ${humanFriendlyNumber(+ `This project can send a broadcast to up to ${humanFriendlyNumber(blastRadius.limit- )}. Add filters to narrow it, then launch again.`+ )} people right now. Add filters to narrow the audience, then launch again.`,+ {+ button: {+ label: 'See sending limits',+ action: () => router.actions.push(urls.workflows('reputation')),+ dataAttr: 'broadcast-launch-limit-see-sending-limits',+ },+ })return}diff --git a/products/workflows/frontend/Broadcasts/steps/BroadcastRecipientsStep.tsx b/products/workflows/frontend/Broadcasts/steps/BroadcastRecipientsStep.tsxindex 4c1e48542c51..abfebb8060fb 100644--- a/products/workflows/frontend/Broadcasts/steps/BroadcastRecipientsStep.tsx+++ b/products/workflows/frontend/Broadcasts/steps/BroadcastRecipientsStep.tsx@@ -45,9 +45,18 @@ function AudienceSizePreview(): JSX.Element | null {approximately {humanFriendlyNumber(affected)} of {humanFriendlyNumber(total)} people.</span>{exceeded && (- <div className="text-danger text-xs">- The audience exceeds the limit of {humanFriendlyNumber(limit)} people. Add filters to narrow it- down.+ <div className="text-danger text-xs" data-attr="broadcast-audience-over-limit">+ This project can send a broadcast to up to {humanFriendlyNumber(limit)} people right now. The limit+ can rise as the project keeps sending with low bounce and spam complaint rates. Add filters to+ narrow the audience, or{' '}+ <Link+ to={urls.workflows('reputation')}+ target="_blank"+ data-attr="broadcast-audience-limit-see-sending-limits"+ >+ see your sending limits+ </Link>+ .</div>)}</div>