* improve "public" import paths
* fix `useOutsideClickHandler` firing an event on any click anywhere in the page
Co-authored-by: Michael Matloka <dev@twixes.com>
* Hide $session_id properties
* Exclude $snapshot events from event views
* Add end_time to sessions queries
This might be used by SessionRecording queries
* Add WIP way to return session recording
Note that this mutates existing responses - might not be the best way to
do this.
* Query for feature flags in a consistent way in frontend
* Improve documentation on featureFlagLogic
* Update frontend types
* Set up endpoint for querying event data for rrweb
* Sort snapshot data in BE before sending to FE
* Show sessions player in a drawer, load data from API
This makes for a smoother experience (IMO, will iterate). At the very
least, drawers enable us to have differing urls via kea
* Show loader while replay is loading
* Make player full-width
* Remove debug code
* Implement persistent URLs for sessions
This should make it possible to share recordings with team.
The URLs are currently quite long - perhaps we can get rid of
distinct_id long-term within it?
* Use only $session_id for filtering sessions
There's a small risk of collisions, but this cleans code up a lot
* WIP
* Add `array.flatMap` to tsconfig
* Add selectors for prev/next session recording
* Clean up whitespace
* Make next and previous buttons work
* Patch prev/next behavior when not visible in page
* Session recording query testing
* Fix typing errors
* Make Sessions queries work properly
It was previously overwriting things even in queries not returning a
list of sessions
* Blacklist browsers w/o flatMap (PR review)
* Close sessions player on back
* fix back button and small bugs
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* kea-typegen 0.2
* remove old Type.ts files
* more setup for typegen-0.2, update yarn scripts, remove webpackbar
* import types from the right paths
* update ENV in build script
* update to kea-typegen that runs through prettier
* remove posthog-js yalc package regression
* add types to toolbar
* add react-dom and react-redux types
* add types to toolbar react components
* convert a lot of components to typescript
* convert more components to typescript
* fix error
* actions return void
* clean up other Type.ts files as well
* fix last untyped files
* upgrade kea, fix webpack config entrypoint
* add stricter typechecking
* add types for a few more files
* fix bug with nth_child selectors (introduced in this PR, now fixed)
* fix one more type