Files
BrowserOS/apps
Felarof a169f74d11 feat: add Round 2 direction parameter to JTBD survey (#342)
* feat: add Round 2 direction parameter to JTBD survey frontend

Thread direction parameter from popup trigger through URL params to the
survey chat API. Randomly assign one of 4 investigation directions
(competitor, switching, workflow, activation) when the in-app popup
triggers, encoding it as experimentId=r2_{direction} for analytics.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: remove direction param, encode in experimentId instead

Direction is now encoded entirely in experimentId (e.g., "r2_competitor").
Remove the separate direction URL param and prop threading — the backend
derives direction from experimentId. Simplifies the frontend to only
set experimentId with a random direction on popup trigger.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 18:27:32 -08:00
..