* test that 'survey sent' event was triggered
* remove unneeded config changes
* update env vars, update test to check event payload
* make capture url slightly stricter
---------
Co-authored-by: Bianca Yang <bianca@posthog.com>
* fix unsubscribe survey typo
* try to test surveys with event capture
* undo attempt at intercepting posthog.capture in cypress
---------
Co-authored-by: Bianca Yang <bianca@posthog.com>
* fix: survey doesn't get dismissed when response textarea is empty
* address pr feedback
* fix logic nit
* fix up the logic...
---------
Co-authored-by: Bianca Yang <bianca@posthog.com>
* Add unsubscription survey
* Ask users why they're unsubscribing before they submit their unsubscription request.
* update to use kea for state management, clean up some logic around finding matching surveys
* resolve typo
* pr feedback
* CTA for contacting support in survey modal
* remove getActiveMatchingSurveys call since we can directly use the surveyID.
* add storybook for billing unsubscribe survey
* add basic cypress tests for the unsubscribe survey
* adding in product type as a response to our multi-question survey
* update survey to show more information about how users might control their costs
* another round of tweaks to survey
* beef up tests
---------
Co-authored-by: Bianca Yang <bianca@posthog.com>