Go to a QA link and click the hedgehog in the header (we have a posthog.loadToolbar() button in our dev environment, see screenshot below)
Ignore the "API Token expired" error
Click the hedgehog floaty thing
You’re redirected to Posthog, click the blue button
You’re redirected back to our website, click the hedgehog floaty thing again
Click feature flags and select your feature flags
There are a few problems and possible improvements:
The "API Token expired" error message does not include a "Get new api token" button, only a "Get Help" button. You need to click the PostHog floaty thing to get a new api token.
The "authorize_and_redirect" url uses the currently selected PostHog project, not the PostHog project used on the website. Therefore our QA testers first need to go the PostHog, select "Website Dev" instead of "Website Prod" before they can use the toolbar.
https://eu.posthog.com/authorize_and_redirect/?redirect=http%3A%2F%2Flocalhost%3A4200 could become: https://eu.posthog.com/authorize_and_redirect/?projectId=3606&redirect=http%3A%2F%2Flocalhost%3A4200
I think the error can be skipped if posthog.loadToolbar() would accept a reauthorizeOnApiTokenExpired boolean flag. (e.g. posthog.loadToolbar({ reauthorizeOnApiTokenExpired: true })
Next to that bootstrapping the flags + overrides have an issue (#15481), and drafts are not shown (#18405)
Overall these are minor issues, but would be great if these could be addressed. If you want me to make separate issues let me know.
Onboarding our QA testers to use the PostHog toolbar could be smoother. Our steps are currently this:
posthog.loadToolbar()
button in our dev environment, see screenshot below)There are a few problems and possible improvements:
https://eu.posthog.com/authorize_and_redirect/?redirect=http%3A%2F%2Flocalhost%3A4200
could become:https://eu.posthog.com/authorize_and_redirect/?projectId=3606&redirect=http%3A%2F%2Flocalhost%3A4200
posthog.loadToolbar()
would accept areauthorizeOnApiTokenExpired
boolean flag. (e.g.posthog.loadToolbar({ reauthorizeOnApiTokenExpired: true })
Overall these are minor issues, but would be great if these could be addressed. If you want me to make separate issues let me know.