Integrate posthog in frontend#335
Conversation
9b87a61 to
79c8d71
Compare
mariobalca
left a comment
There was a problem hiding this comment.
Awesome job here @joanagmaia 🙌
Left a minor comment, but shouldn't be a blocker.
Will try to QA this a bit in local/staging, during the afternoon 👍
| get currentTenantPlan() { | ||
| if (!this.currentTenant) { | ||
| return plans.free | ||
| return plans.essential |
There was a problem hiding this comment.
Are these the only changes we need to include related to plans?
We also have the plans.js file, which we should also update I think
There was a problem hiding this comment.
Sorry I forgot to mention but both permissions and plans file were updated in Anil's PR https://github.com/CrowdDotDev/crowd.dev/pull/318/files#diff-0e09062fc2c86ce9490bfbd2117e20613eb73e9cb7e7c7232a879213e76696d6
This one cannot be deployed without that PR. Given that this branch does not include backend changes, to test it locally you will either need to test it in staging branch or run with the backend from the feature/tenant-plans-and-feature-flagging branch
There was a problem hiding this comment.
I see! Thanks for clearing that out, makes sense!
Changes proposed ✍️
posthog-jslib to frontend and initialize it with API keyNOTE:Cannot be merged before #318Checklist ✅
Feature,Enhancement, orBug.frontend/.env.dist.local,frontend/.env.dist.composed.backend/.env.dist.local,backend/.env.dist.composed.