* make element selection smarter (fixes several issues from posthog.com), upgrade simmer to version that supports data-attr
* when selecting click tartgets, if tag (e.g. <li>) has only one child (e.g. <a>), go all the way down (before coming back as high up as needed)
* get rect of inner node if it's bigger than click target (e.g. for "a > img")
* trim heatmap elements
* only show elements with `width * height > 0` in inspect
* revert antd to 4.2.0
* upgrade antd, downgrade cypress
* Partly fixes #1431 to avoid changes to created_by
* Adds created_by to test_create_and_update_action
* Update action.py
* Update action.py
Check for created_by in data before deleting it
Co-authored-by: anna <ms.annaphilips@gmail.com>
* Whitelist kea-typegen folder in .dockerignore
* Added debug to devdockerfile
* quote style fix
* add .kearc to dockerignore (needed to generate types in yarn build)
* Add tsconfig.json to dockerfile
* add tsconfig and kearc to dockerfiles
* updated docker files to suppress secret key error
* use fake secret key in collectstatic
Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
* Added warning for unset SECRET_KEY
* added process exit
* Reword message
This should be just a bit clearer (also "Process exited with code …" is redundant, I think).
* added SECRET_KEY to github actions
* updated to add docker placeholder key
* minor update to default secret key
Co-authored-by: Michael Matloka <dev@twixes.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
* fix(capture): raise bad request error when data is empty
* fix: update middleware tests for non-empty requests
* Change a few words in /capture error messages
* fix: test_ip_range with post instead of get
* fix: update copy on tests
* fix: use capture endpoint in test_ip_range
* fix
* fix
* fix
* fix: expect bad request exception
* fix(middleware): return HTTP status code 403 Forbidden on blocked IP
Co-authored-by: Twixes <dev@twixes.com>
* fix TS undefined case (store can be undefined, but it never is... should be typed properly in kea)
* respect userIntent prop when opening the toolbar
* refactor opening the right actions view
* Added ability to customise Slack/Teams messages with additional context
* Refactor slightly and improve UX
* Reword Setup #webhooks description
* Update test_user.py
* Improve Edit action webhook configuration UI
* Refactor webhooks to be more universal
* Change tasks.slack to tasks.webhooks
* Make message format input clearer
* Make post_event_to_webhook more resilient with retries
* Minor fixes
Co-authored-by: Twixes <dev@twixes.com>
* - set a custom cookie to tell the toolbar we're logged in
- make other cookies secure
* skip adding new toolbar cookie on API requests
* fix demo page local https
* enable/disable secure cookies as needed
* show django toolbar only for API requests
* update posthog-js and kea versions
* satisfy mypy
* add SECURE_COOKIES=0 to cypress tests, since they run over HTTP
* revert kea version
* add test for toolbar cookie middleware
* try something for cypress
* add debug
* add cypress-terminal-report for better logging
* fix demo api_url
* revert previous change that triggered cypress
* Add DEBUG overlay bar
* Add z-index
* Implement a tricolor bottom bar
* Add close button and replaced version with git branch
* Improve responsiveness
* Remove extra span opening tag
* WIP refactor sessions queries
Todo
- Fix test_sessions_list test
- Move tests to posthog.queries
* Make determine_compared_filter public
* Fix issues with tests
* Move tests to queries
* Fix test by ordering
* Try printing... not sure why it's giong wrong
* Fix test hopefully
* Try again
* Fix tests definitely this time
* Fix filtering by properties
* Fix compare and empty result set issues