0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
Commit Graph

669 Commits

Author SHA1 Message Date
Michael Matloka
a52612cf02
Use proper react-grid-layout (#1862) 2020-10-14 09:59:02 +02:00
Paolo D'Amico
dd72b0b354
Experiment: Improving actions UX? (#1841) 2020-10-14 07:02:26 +02:00
Eric Duong
f34a6b9dde
[command palette] Trigger listener on toggle (#1854)
* trigger listener on toggle

* Fix palette overflow-y

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-10-13 16:46:25 +02:00
Michael Matloka
f71e011a86
Command palette (#1819)
* add hotkey base

* add platform check

* Rename CommandBox to CommandPalette

* Add styled-components

* Restructure CommandPalette and add Esc handling

* Update utils.js

* add search box

* Add logic types

* Implement base logic

* Fix scroll prevention

* Update logic and add goto command base with Fuse fuzzy serach

* ux hotkey

* Implement command (de)registration

* minor fix

* base UI

* error message & hints

* command groups UI

* Add commands search

* Make commands work

* Prepare palette for fuzzy search and add basic labeling

* ui adjustments

* ui

* Improve colors

* switch to global command

* Optimize resolution

* global go to commands

* abstract item selection logic to command palette

* Update casing and types

* Add conditional useCommands

* Improve results

* keyboard nav

* keyboard nav fix

* removed double fuse (synonyms broken)

* Update style

* Fix highlighting

* Remove extra style

* conditional go to commands

* add mouse hover handling and rename functions

* remove mac check

* add more commands

* added insights stub pages

* Add command components

* refactor logic

* Update styling

* Remove extraneous `input`

* load custom dashboards to command palette

* Add input styling

* Add write icon

* Refactor results

* minor adjustments

* add person search

* remove papercups fully

* fix input indexing

* fix result executing empty

* Add command grouping and improve navigation

* add urls

* make logic explicit

* fix error with hadnler

* Remove redundant border-top

* add trend functions

* personal api key stub

* Add command palette toggle button

* Fix things

* fix personal api keys

* copy api key to clipboard

* Add toggle text

* Improve palette UX and perform refactoring

* Improve UX and add palette usage reporting

* tests refactor

* filter person list

* refactor api person tests

* add squeak

* deprecate by_distinct_id & by_email person endpoints

* Optimize squeak

* fix typegen error

* use new filters in frontend

* Optimize squeak

* key identifier refactor

* fix mypy

* removed unused code

* Make custom command UI more coherent

* Add calculator to palette

* Use equal sign

* Make palette button nicer

* Add lodash back officially and show palette suggestions

lodash is still used in a few places, but it was not in package.json. The reason this was working was that lodash is a dependency of some other depedencies, but this was fragile. It's still not ideal to use this, but at least this is now not a hack the way it was.

* Remove isHint

* Optimize graph time range command

* Move command results grouping to Kea logic

* Fix result focus autoshift

* Improve palette result focusing

* Adjust for window.posthog being optional

* add test for third-party person filters

* Remove styled-components in favor of .scss files

* Remove redundant container class

* Use insect (sic!) squeak instead of pig squeak

* Show only unique palette results

* Fix palette overlay

* Add powerful command building protocol CommandFlow

* Fix minor issues

* Always show scope when flow active

* Use custom label icon

* Add feedback sharing command

* block command input from being captured in screen recording

at least until we can figure out how to capture this info in a privacy-preserving way

* Hide palette button on narrow screens

* Improve responsiveness

* Fix palette feedback sending

* Fix Esc handling

* Add Message Sent info

* Fix Message Sent info

* Fix dashboard creation and null name handling

* Rename Cy tests to JS convention

* Add basic Cypress test

* Address feedback

Co-authored-by: Eric <eeoneric@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-10-13 15:44:56 +02:00
Yakko Majuri
f117b66ebe
Add option to delete feature flags (#1761)
* frontend-only changes for deleting flag

* added flag deletion logic

* updated cypress tests

* capitalize feature flag col titles

* fixed issue

* added undo button

* Remove deletion confirm modal and improved undo experience

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-10-13 12:47:46 +02:00
Michael Matloka
7c257260f3
Disable web snippet on DEBUG instances (#1837)
* Disable posthog-js snippet on DEBUG instances

* Consider window.posthog optional

* Fix optional property access

* Remove redundant `window.posthog &&`
2020-10-12 10:00:16 +02:00
Yakko Majuri
5c7a5aeaee
Added rr-block class to sensitive elements (#1834) 2020-10-10 22:28:09 +02:00
Tim Glaser
a51942b556
Improve event properties display (#1825)
* Improve event properties display

* Improve event properties display

* Improve
2020-10-09 16:46:38 +02:00
Karl-Aksel Puulmann
78163a849b
Toggle for session recording (#1826)
* Fix userUpdateRequest type

* Add toggle (if feature turned on) for capturing sessions

* Make team.session_recording_opt_in editable
2020-10-08 17:50:39 +02:00
Marius Andra
2b71b3e752
Onboarding improvements (#1723) 2020-10-08 13:12:37 +02:00
Yakko Majuri
b9c3f0a4df
Added Session Recording (#1823)
* WIP

* wip sessions player

* improved types

* minor styling modal

* minor UI changes

* added sessions player behind feature flag

* added SessionsPlayerButton

* added sessions tab

* wip sessions in people

* do not display properties with underscore

* change delete approach

* wip

* hacky person sessions

* hide  property

* fix main sessions table

* get sessions for all ids

* update to  prop

* fix kea type error

* feature flagged person session table

* remove console.log

* make tab panes self-closing

* removed demo recording

Co-authored-by: Tim Glaser <tim@glsr.nl>
2020-10-08 12:37:33 +02:00
Marius Andra
e7a944ea96
Fix tsconfig.json lib property (#1818)
* fix tsconfig lib

* minor ts fix

Co-authored-by: Yakko Majuri <38760734+yakkomajuri@users.noreply.github.com>
2020-10-08 00:43:23 +02:00
Marius Andra
5729fb5f68
Toolbar Shadow Root Support (#1805)
* reset toolbar fonts (only things that leak through the shadow root)

* select elements from the shadow roots for "inspect"

* extract getParent

* select inside shadow roots for heatmap

* upgrade packages

* remove inline querySelectorDeep

* toolbar shadow dom trim

* improve toolbar no capture of itself

* improve a few things on the actions page

* also support actions

* use non-private query-selector-shadow-dom package
2020-10-07 10:17:28 +02:00
Paolo D'Amico
e0de7795a0
Self-serve billing enrollment & management (#1721) 2020-10-02 16:20:24 +01:00
Marius Andra
80a699ef4e
Clickhouse Sessions + Frontend Sessions updates (#1754)
* convert sessions table logic to TS

* convert rest of sessions to TS

* sessions table logic refactor, store date in the url

* add back/forward buttons

* load sessions based on the URL, not after mount --> avoids duplicate query if opening an url with a filter

* prevent multiple queries

* throw error if failed instead of returning an empty list

* date from filters

* rename offset to nextOffset

* initial limit/offset block

* indent sql

* support limit + offset

* load LIMIT+1 sessions in postgres, pop last and show load more sign. (was: show sign if exactly LIMIT fetched)

* based offset is always 0

* default limit to 50

* events in clickhouse sessions

* add elements to query results

* add person properties to sessions query response

* show seconds with two digits

* fix pagination, timestamp calculation and ordering on pages 2 and beyond

* mypy

* fix test

* add default time to fix test, fix some any(*) filter issues

* remove reverse

* fix mypy error, indent SQL

* add pagination test for postgres

* Run insight API tests in Clickhouse

Co-authored-by: Eric <eeoneric@gmail.com>
2020-10-01 05:27:35 -04:00
Shashwat
d4459ab448
Changes to make person editable (resolves #89) (#1491)
* added editable table for person data

* update to setPerson, changes to make person editable

* Ran Prettier

* ran Eslint

* update user properties

* ran prettier

* don't allow person edit before change

* wakey wakey GitHub Actions

* fix to send person state to api.update

* Added antd's confirm modal to save/delete data , removed browser alert

* Delete Person Modal not in scope of current PR reverting delete moadal changes

* ran prettier

* Update Person.js

Remove unused import

* minor style change

* Fixed showing name which caused user with only is_demo true not show, save button now vsisble on all dimensions, is_demo is now editable

* minor style fixes

* Made Person's Number non-editable

* Disable input for PostHog internal varaiables

* added change to typecast to desired value

* added function description

* Handle diffrenet properties type.

* ran prettier

Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-30 17:22:55 +02:00
Yakko Majuri
3959b12610
change title of live actions table (#1756) 2020-09-30 12:04:39 +02:00
James Greenhill
379518e285
"Clickhouse Features V2 (#1565)" (#1750)
* initial

* migration command

* migrations working

* add modelless views for clickhouse

* initial testing structure

* use test factory

* scaffold for all tests

* add insight and person api

* add basic readme

* add client

* change how migrations are run

* add base tables

* ingesting events

* restore delay

* remove print

* updated testing flow

* changed sessions tests

* update tests

* reorganized sql

* parametrize strings

* element list query

* change to seralizer

* add values endpoint

* retrieve with filter

* pruned code to prepare for staged merge

* working ingestion again

* tests for ee

* undo unneeded tests right now

* fix linting

* more typing errors

* fix tests

* add clickhouse image to workflow

* move to right job

* remove django_clickhouse

* return database url

* run super

* remove keepdb

* reordered calls

* fix type

* fractional seconds

* fix type error

* add checks

* remove retention sql

* fix tests

* add property storage and tests

* merge master

* fix tests

* fix tests

* .

* remove keepdb

* format python files

* update CI env vars

* Override defaults and insecure tests

* Update how ClickHouse database gets evaluated

* remove bootstrapping clickhouse database routine

* Don't initialize the clickhouse connection unless we say it's primary

* .

* fixed id generation

* remove dump

* black settings

* empty client

* add param

* move docker-compose for ch to ee dir

* Add _public_ key to repo for verifying self signed cert on server

* update ee compose file for ee dir

* fix a few issues with tls in migrations

* update migrations to be flexible about storage profile and engine

* black settings

* add elements prop tables

* add elements prop tables

* working filter

* refactored

* better url handling

* add mapping table

* add processing to worker task

* working cohort with actions

* add cohort property filtering

* add cohort property filtering

* reformat and add cohort processing

* prop clauses

* add util

* add more util

* add clickhouse modifier

* Clickhouse Sessions (#1623)

* sessions sql

* skeleton

* add endpoint

* better tests

* sessions list

* merge clickhouse-actions

* added session endpoint

* sessions sql working again

* add clickhouse modifier

* session avg with props working

* add dist

* tests working (no list)

* list working

* add formatting

* more formatting

* fix tests

* dummy commit

* fix types

* remove unnecessary improt

* ignore type when importing from ee in task

* fix test running

* Clickhouse Trends Base (#1609)

* initial working

* date param almost working

* fix date range and labels

* fixed monthly math

* handle compare

* change table

* using new event ingestion

* direct query actions working

* remove interface

* fix date range

* properties initial working

* handle operator

* handle operator

* move timestamp parse

* move more to util

* inital breaking down working

* working cohort breakdown

* some tests running

* fix sessions

* cohort tests

* action and interval test

* reorder cohort filtering

* rename retention test

* fix inits

* change multitenancy tests

* fix types

* fix optional types

* replace ch_client.execute with sync_execute

* replace ch_client.execute with sync_execute, part 2

* Clickhouse Stickiness + Process Event (#1654)

* generate clickhouse uuid script

* set CLICKHOUSE_SECURE=False by default if running in TEST or DEBUG

* convert person_id to UUID, make adding `person_id` optional, add distinct_ids already in the `create_person` function

* Fix test_process_event_ee.py, remove all calls to Person.objects.*

* add back util

* fix broken imports

* improve process_event test clickhouse queries

* Basic stickiness query

* Clickhouse Stickiness tests

* stickiness test [WIP, actions fail]

* generate clickhouse uuid script

* change default test runner if PRIMARY_DB=clickhouse

* fix stickiness test for actions

* fix merge bug

* remove _create_person stub; cohort person_id is UUID now

* fix typing

* Clickhouse trends process math (#1660)

* most of process math works

* all process math

* fix ordering issue

* unusued imports

* update property comparison for process_event_ee

* indentation wrong missing calls

* demo users and events (#1661)

* finish breakdown filtering tests and reformat label function

* add increment to demo_data

* update demo data populating

* Add people endpoint for ch (#1670)

* add people endpoint for ch

* stickiness people

* fix value padding

* add process math to breakdown and

* add limit

* fix tests

* condensed code

* converted test to factory

* add people tests

* add month handling

* add typing fix

* change people test handling

* fix tests

* Clickhouse funnels 2 (#1668)

* add elements to create_event

* WIP closes #1663 Add funnels to clickhouse

* Make funnels work

* Clean up

* Move filtering around

* Add mypy tests and fix

* Performance improvements

* fix person tests again

* add people for funnel endpoint

* fix prop numbering

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Eric <eeoneric@gmail.com>

* merge master

* add retention

* update types

* more typing errors

* fix types

* bug with kafka payload, elements insert, and demo data

* Clickhouse Paths (#1657)

* paths clickhouse test (fails)

* add elements to create_event

* make this fail for clickhouse

* hardcoded query that returns good results for $pageviews, no filters yet

* clean up queries

* bound by time, fix 30min new session boundary

* support screen and custom events

* add properties filter

* paths url

* filter by path start

* better path start test

* even better path start test

* start from the first "path start" in a group

* test for person_id in paths

* partition by person_id for POSTGRES paths

* partition by person_id for Clickhouse paths

* clean up order in paths test

* clean up order in paths test

* join elements

* force element order on element group creation

* remove "order" when creating elements in tests and demo

* get list of elements for paths

* add limit to paths query

* use materialized view

* rename "element_hash" to "elements_hash" (no change in db)

* cull rows that are definitely unused

* simplify query

* New highly optimized paths clickhouse query

* start_point for $autocapture paths

* extract event property values from clickhouse

* prevent crash

* select one element sql

* get elements for event

* remove lodash

* remove host from $pageview path elements if same domain as incoming path

* show metadata based on loaded paths filter, not in flight filter

* fix order (all soures and targets in order, not all sources first, then all targets after) - makes for a better looking graph

* add test that makes the Postgres paths query fail

* fix postgres paths --> no fuzzy matching, breaks "starts with" for urls and gives too many incorrect start points

* create automatic /demo urls that match the real urls (no ending /)

* fix elements queries

* path element joins

* create persons via postgres in paths test

* change serializers back to id

* fix tests with uuid

* fix demo

* more bugs

* fix type

* change now to timezone aware

* [clickhouse] retention filters (#1725)

* implemented target entity and prop filtering

* add insight view override

* fix endpoint and filters

* include tests

* fix tests

* add period filtering

* .

* fix pg param name

* add filtering params to both queries in retention sql

* fix param again

* change to todatetime

* change tz to timezone

* add back timezone in model/event

* [clickhouse] feature flag endpoint requests (#1731)

* add feature flags to endpoints

* add flags to endpoints that check on request

* remove magic strings and fill in missing flags

* fix types

* add missing flag

* change from iso

* fix more timestamps and comparator

* change _people to get_people in actions view

* remove action and cohort populating

* change inheritance

* "Clickhouse Features V2 (#1565)"

This reverts commit 0b371d43ec.

* fix types

* change to super

* change to super x2

Co-authored-by: Eric <eeoneric@gmail.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Tim Glaser <tim.glaser@hiberly.com>
2020-09-29 15:17:26 +01:00
Marius Andra
bf326b3fde
fix toolbar fade container click block (#1753) 2020-09-29 12:37:26 +01:00
James Greenhill
0b371d43ec
Revert "Clickhouse Features (#1565)" (#1748)
This reverts commit 24713b923d.
2020-09-29 12:11:28 +01:00
Paolo D'Amico
b3532c598a
Weekly report email V1 (#1700) 2020-09-29 11:56:29 +01:00
Eric Duong
24713b923d
Clickhouse Features (#1565)
* initial

* migration command

* migrations working

* add modelless views for clickhouse

* initial testing structure

* use test factory

* scaffold for all tests

* add insight and person api

* add basic readme

* add client

* change how migrations are run

* add base tables

* ingesting events

* restore delay

* remove print

* updated testing flow

* changed sessions tests

* update tests

* reorganized sql

* parametrize strings

* element list query

* change to seralizer

* add values endpoint

* retrieve with filter

* pruned code to prepare for staged merge

* working ingestion again

* tests for ee

* undo unneeded tests right now

* fix linting

* more typing errors

* fix tests

* add clickhouse image to workflow

* move to right job

* remove django_clickhouse

* return database url

* run super

* remove keepdb

* reordered calls

* fix type

* fractional seconds

* fix type error

* add checks

* remove retention sql

* fix tests

* add property storage and tests

* merge master

* fix tests

* fix tests

* .

* remove keepdb

* format python files

* update CI env vars

* Override defaults and insecure tests

* Update how ClickHouse database gets evaluated

* remove bootstrapping clickhouse database routine

* Don't initialize the clickhouse connection unless we say it's primary

* .

* fixed id generation

* remove dump

* black settings

* empty client

* add param

* move docker-compose for ch to ee dir

* Add _public_ key to repo for verifying self signed cert on server

* update ee compose file for ee dir

* fix a few issues with tls in migrations

* update migrations to be flexible about storage profile and engine

* black settings

* add elements prop tables

* add elements prop tables

* working filter

* refactored

* better url handling

* add mapping table

* add processing to worker task

* working cohort with actions

* add cohort property filtering

* add cohort property filtering

* reformat and add cohort processing

* prop clauses

* add util

* add more util

* add clickhouse modifier

* Clickhouse Sessions (#1623)

* sessions sql

* skeleton

* add endpoint

* better tests

* sessions list

* merge clickhouse-actions

* added session endpoint

* sessions sql working again

* add clickhouse modifier

* session avg with props working

* add dist

* tests working (no list)

* list working

* add formatting

* more formatting

* fix tests

* dummy commit

* fix types

* remove unnecessary improt

* ignore type when importing from ee in task

* fix test running

* Clickhouse Trends Base (#1609)

* initial working

* date param almost working

* fix date range and labels

* fixed monthly math

* handle compare

* change table

* using new event ingestion

* direct query actions working

* remove interface

* fix date range

* properties initial working

* handle operator

* handle operator

* move timestamp parse

* move more to util

* inital breaking down working

* working cohort breakdown

* some tests running

* fix sessions

* cohort tests

* action and interval test

* reorder cohort filtering

* rename retention test

* fix inits

* change multitenancy tests

* fix types

* fix optional types

* replace ch_client.execute with sync_execute

* replace ch_client.execute with sync_execute, part 2

* Clickhouse Stickiness + Process Event (#1654)

* generate clickhouse uuid script

* set CLICKHOUSE_SECURE=False by default if running in TEST or DEBUG

* convert person_id to UUID, make adding `person_id` optional, add distinct_ids already in the `create_person` function

* Fix test_process_event_ee.py, remove all calls to Person.objects.*

* add back util

* fix broken imports

* improve process_event test clickhouse queries

* Basic stickiness query

* Clickhouse Stickiness tests

* stickiness test [WIP, actions fail]

* generate clickhouse uuid script

* change default test runner if PRIMARY_DB=clickhouse

* fix stickiness test for actions

* fix merge bug

* remove _create_person stub; cohort person_id is UUID now

* fix typing

* Clickhouse trends process math (#1660)

* most of process math works

* all process math

* fix ordering issue

* unusued imports

* update property comparison for process_event_ee

* indentation wrong missing calls

* demo users and events (#1661)

* finish breakdown filtering tests and reformat label function

* add increment to demo_data

* update demo data populating

* Add people endpoint for ch (#1670)

* add people endpoint for ch

* stickiness people

* fix value padding

* add process math to breakdown and

* add limit

* fix tests

* condensed code

* converted test to factory

* add people tests

* add month handling

* add typing fix

* change people test handling

* fix tests

* Clickhouse funnels 2 (#1668)

* add elements to create_event

* WIP closes #1663 Add funnels to clickhouse

* Make funnels work

* Clean up

* Move filtering around

* Add mypy tests and fix

* Performance improvements

* fix person tests again

* add people for funnel endpoint

* fix prop numbering

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Eric <eeoneric@gmail.com>

* merge master

* add retention

* update types

* more typing errors

* fix types

* bug with kafka payload, elements insert, and demo data

* Clickhouse Paths (#1657)

* paths clickhouse test (fails)

* add elements to create_event

* make this fail for clickhouse

* hardcoded query that returns good results for $pageviews, no filters yet

* clean up queries

* bound by time, fix 30min new session boundary

* support screen and custom events

* add properties filter

* paths url

* filter by path start

* better path start test

* even better path start test

* start from the first "path start" in a group

* test for person_id in paths

* partition by person_id for POSTGRES paths

* partition by person_id for Clickhouse paths

* clean up order in paths test

* clean up order in paths test

* join elements

* force element order on element group creation

* remove "order" when creating elements in tests and demo

* get list of elements for paths

* add limit to paths query

* use materialized view

* rename "element_hash" to "elements_hash" (no change in db)

* cull rows that are definitely unused

* simplify query

* New highly optimized paths clickhouse query

* start_point for $autocapture paths

* extract event property values from clickhouse

* prevent crash

* select one element sql

* get elements for event

* remove lodash

* remove host from $pageview path elements if same domain as incoming path

* show metadata based on loaded paths filter, not in flight filter

* fix order (all soures and targets in order, not all sources first, then all targets after) - makes for a better looking graph

* add test that makes the Postgres paths query fail

* fix postgres paths --> no fuzzy matching, breaks "starts with" for urls and gives too many incorrect start points

* create automatic /demo urls that match the real urls (no ending /)

* fix elements queries

* path element joins

* create persons via postgres in paths test

* change serializers back to id

* fix tests with uuid

* fix demo

* more bugs

* fix type

* change now to timezone aware

* [clickhouse] retention filters (#1725)

* implemented target entity and prop filtering

* add insight view override

* fix endpoint and filters

* include tests

* fix tests

* add period filtering

* .

* fix pg param name

* add filtering params to both queries in retention sql

* fix param again

* change to todatetime

* change tz to timezone

* add back timezone in model/event

* [clickhouse] feature flag endpoint requests (#1731)

* add feature flags to endpoints

* add flags to endpoints that check on request

* remove magic strings and fill in missing flags

* fix types

* add missing flag

* change from iso

* fix more timestamps and comparator

* change _people to get_people in actions view

* remove action and cohort populating

Co-authored-by: James Greenhill <jams@uber.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Tim Glaser <tim.glaser@hiberly.com>
2020-09-29 06:36:50 -04:00
Marius Andra
1254e8ccbd
Remove Toolbar Dock Mode (#1733)
* remove dock code

* set "help" icon

* remove some extra styles, make button fade

* fade component to TS

* clear up a type

* fix fade-induced absolute bug

* make the help button round and blue

* Make rounding more similar and bring back gray

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-29 10:29:31 +02:00
Michael Matloka
c2ec67c948
Only allow using aggregate functions on numerical properties (#1536)
* Only allow aggregate functions on numerical properties

* Don't pass onclick when math option disabled

* Add numerical property to demo

* Fix demo

* Update test_demo.py

* Fix Team.event_properties_numerical updating

* Account for extra Team query

* Fix math selection options

* Change "cost" to "price"
2020-09-25 14:05:11 +02:00
Yakko Majuri
8115e4969c
Added password strength bar (#1632)
* added password strength bar

* minor style fixes

* retry cypress

* extract password strength logic to standalone component

* Refactor with TypeScript

* updated strength algo

* fix linter comments

* fix comment

* made distinct chars test less strict

* use zxcvbn

* Make score numbers nicer and add a color between red and orange

Slightly pedantically made passwordScore always a multiple of 20%. :)

* run prettier

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-09-25 02:37:55 +02:00
Marius Andra
e9ce195b99
Small insights type update (#1717)
* type update

* Update ci-backend.yml

* Update Django tests names

* Fix required check

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-25 02:20:33 +02:00
Paolo D'Amico
45421a6b06
Random improvements (merge people, analytics) (#1706)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-24 10:02:10 +01:00
Michael Matloka
8a629179a9
Organizations – models (#1674)
* Update only models

* Bring in line with master and use uuid1_macless

* Update models and annotation scope support

* Delete test_team_model.py

* Update user creation, team retrieval and fix tests

* Make fixes

* Rename migration

* Fix migrating from master

* Bring back previous company_name max_length

* Use get_price_id()

* Temporarily disable team member deletion

* Update user joining and leaving, and billing

* Improve first_name handling

* Update warning

* Update TestTeamUser

* Fix migration

* Update 0085_org_models.py

* Improve bootstrapping

* Move multitenancy price tests to posthog-production

* Update team_user.py

* Update setup_review.py

* Enhance opt_slash_path

* Update team.py

* Fix default test email

* Fix typing
2020-09-24 00:53:51 +02:00
Michel Semaan
0268e88f4f
#724: Export Events to CSV (#1580)
* Add CSV renderer to Event serializer

* Add Export button to Event Table page

* Add failsafe in case request doesn't exist

* Update event.py

* Format changes in event.py with black

* Add ignore typing to CSV Renderer import in event.py

* Prettify EventsTable.js

* Improve CSV format detection

* Fix person.py

* Make events CSV query params in line with table logic

* Remove queryset limiting

* Add 100K limit to Event CSV export

* Add limit tooltip

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-18 15:48:19 +02:00
Yakko Majuri
4cb64d0c74
Fix Cypress tests (#1635)
* added timeouts and waits to ensure flow of cypress tests

* removed unused test

* fixed trends elements tests

* testing a longer wait time - temp

* fix trends sessions and retetion filtering tests

* fix events filtering test

* removed wait

* trends sessions fix

* minor update

* fix live actions & sessions

* improve timeouts

* more timouts

* removed some waits

* added timeouts to trends tests

* modify config

* remove test on bug

* removed timeout from events table

* remove dashboards timeout

* change selector for sessions tab

* use data-attr
2020-09-18 09:26:12 -04:00
Michael Matloka
1a96b86925
Show underlying property value type (#1666)
* Show underlying property value type

* Use icons to signify property type

* Fix null

* Update null

* Use Bulb instead of QuestionCircle for boolean

* Change "parsed" to "parsable"

* Update style
2020-09-18 13:42:47 +02:00
Tim Glaser
fdfb393c8d
Fix table view sessions (#1672)
* Test commit

* Fix table view for sessions
2020-09-18 09:02:24 +00:00
Tim Glaser
b175cac5ce
Use cached results for funnels (#1671)
* Test commit

* use cached results for funnels
2020-09-17 13:58:15 +02:00
Yakko Majuri
0f1b5953b2
Added warning for changing feature flag key (#1646)
* added warning for changing feature flag key

* update link to docs
2020-09-17 11:36:43 +02:00
Tim Glaser
10c0819d27
Add detailed label to actionstable (#1653)
* Test commit

* Add detailed label to actionstable
2020-09-15 13:16:44 +02:00
Tim Glaser
2421793228
Add tests for FOSS (#1600)
* Add tests for FOSS

* Ignore ee specific tests

* Exclude more ee only tests

* conditional tests, nice

* Add ee_available to settings

* fix test

* Fix test

* Test commit

* Fix test again

* Remove EE_MISSING in favor of EE_AVAILABLE completely

* Rename bottom-notice.html to overlays.html, to better reflect purpose

* Add greeting

* Fix ee import

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-10 18:20:29 +02:00
Marius Andra
5a6853654c
Fix a few "Unchanged files with check annotations" issues (#1641)
* fix a few "Unchanged files with check annotations" issues

* fix one more issue
2020-09-10 17:09:56 +02:00
Marius Andra
bfd856bb95
Nicer API Failure Errors (#1633)
* convert api to async/await

* throw a nicer error if received a HTML error
2020-09-10 16:32:31 +02:00
Marius Andra
270c5f4a78
1) upgrade kea to 2.2.0 final and kea-typegen to 0.3.0, 2) fix some broken types (#1634) 2020-09-10 15:29:24 +02:00
Jonathan Hyde
8b306989bd
Typo in licenses.tsx (#1599)
More unlock than unluck :)
2020-09-08 15:30:24 +02:00
Paolo D'Amico
cf2ec2894c
Signup improvements (#1535)
Co-authored-by: Yakko Majuri <yakko.majuri@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-09-07 09:23:13 -05:00
James Greenhill
c2e03a3a46
Revert this to bring back the working copy of ee / clickhouse (#1588) 2020-09-04 21:12:07 -07:00
James Greenhill
5506135c3c
Bring back clickhouse changes along with queue size metrics (#1579)
* Revert "Revert "Clickhouse setup (#1463)""

This reverts commit 7f2cab4b93.

* add queue backlog to _stats endpoint

* celery queue length into heartbeat -> statsd

* reformat

* type check fixes

* bump expected number of queries to 8

Co-authored-by: Eric <eeoneric@gmail.com>
2020-09-04 13:44:53 -07:00
Michael Matloka
d5652a5c78
Revert "Make note that Zapier integration is not public yet" (#1574)
* Revert "Make note that Zapier integration is not public yet (#1510)"

This reverts commit 59ec3a6325.

* Capitalize "PostHog Docs"
2020-09-04 13:59:55 +02:00
James Greenhill
7f2cab4b93 Revert "Clickhouse setup (#1463)"
This reverts commit a0327587cb.
Time to process events shot way up and logs are missing.
2020-09-03 19:27:02 -07:00
Eric Duong
a0327587cb
Clickhouse setup (#1463)
* initial

* migration command

* migrations working

* add modelless views for clickhouse

* initial testing structure

* use test factory

* scaffold for all tests

* add insight and person api

* add basic readme

* add client

* change how migrations are run

* add base tables

* ingesting events

* restore delay

* remove print

* updated testing flow

* changed sessions tests

* update tests

* reorganized sql

* parametrize strings

* element list query

* change to seralizer

* add values endpoint

* retrieve with filter

* pruned code to prepare for staged merge

* working ingestion again

* tests for ee

* undo unneeded tests right now

* fix linting

* more typing errors

* fix tests

* add clickhouse image to workflow

* move to right job

* remove django_clickhouse

* return database url

* run super

* remove keepdb

* reordered calls

* fix type

* fractional seconds

* fix type error

* add checks

* remove retention sql

* fix tests

* add property storage and tests

* merge master

* fix tests

* fix tests

* .

* remove keepdb

* format python files

* update CI env vars

* Override defaults and insecure tests

* Update how ClickHouse database gets evaluated

* remove bootstrapping clickhouse database routine

* Don't initialize the clickhouse connection unless we say it's primary

* .

* fixed id generation

* remove dump

* black settings

* empty client

* add param

* move docker-compose for ch to ee dir

* Add _public_ key to repo for verifying self signed cert on server

* update ee compose file for ee dir

* fix a few issues with tls in migrations

* update migrations to be flexible about storage profile and engine

* black settings

* add elements prop tables

Co-authored-by: James Greenhill <jams@uber.com>
2020-09-03 10:27:45 -07:00
Tim Glaser
58b6e43aff
Identify email in frontend (#1558) 2020-09-03 16:30:23 +02:00
Tim Glaser
9dbb5e2134
Revert "WIP: have the element info window follow the mouse (#1472)" (#1542)
This reverts commit b559fee904.
2020-09-01 17:24:23 +02:00
Michael Matloka
71ed4b00d0
Update dependencies (partially) (#1537)
* Update dependencies

* Format with prettier 2.1.1

* Roll back to TypeScript 3.9.x

kea-typegen 0.2.x isn't compatibile with typescript 4.0.x
2020-09-01 15:58:13 +02:00
Marius Andra
b559fee904
WIP: have the element info window follow the mouse (#1472) 2020-09-01 15:51:53 +02:00
Eric Duong
c20df2905f
Consolidate insight api (#1498)
* add insight history

* add table

* edit format

* links working

* add modal

* add tab switch

* saving insights

* remove insights model

* no model for insight history

* initial working

* remove wrong typegen

* made the history per user

* missing param

* added funnel support

* add details

* add delete saved insight functionality

* add line break logic and funnel name

* fix reload logic

* fix rendering error

* add pagination component

* fix bugs

* add backend tests

* add insight-history-panel check

* add drawer and replace table

* add loading next

* add date

* add callback

* update test

* use table

* fix spacing

* fix rows

* adjust spacing

* fix spacing and styling

* fix spacing and styling

* main funnel-insight page working

* consolidated funnels

* refactor funnel dashboard item

* dashboard modals working

* update demo creation

* updated migration

* fix frontend for funnels

* remove funnel code and fix bugs

* fix test and remove caching temp

* remove old tests

* fix types

* added panel for past funnels

* implement polling for funnel refactor

* .

* fix dashbaord item bug

* add params

* fix params

* clean up caching functionality

* fix types

* caching working properly

* fix dashboard update bug

* fix migrations

* .

* fix check

* add missing package

* update caching to work properly

* Fix default

* fix api and styling for insight history

* more spacing

* initial refactor paths to queries and consolidate into /insight

* missing param for paths

* move path tests

* change frontend endpoints

* add comments about specific parameters

* minor tune up

* fix name

* typed filter and paths

* typed retention

* more typing and standardization

* fix tests

* cleanup

* update funnel automatically

* update tests

* fix clear condition

* merge insight history

* return save functionality

* remove file

* fix path params and tests

* add tests

* fix type
2020-09-01 15:19:15 +02:00
Yakko Majuri
35e604e031
Changed tone on action creation buttons (#1531)
* changed tone on action creations buttons

* Update ActionStep.js

* Update style.scss

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-09-01 08:30:49 -03:00
Michael Matloka
22e220f7a3
Fix styling of URL list (#1526)
* Add string breaking to .ant-list-item

* Fix styling of EditAppUrls in particular
2020-08-29 09:56:33 -03:00
Yakko Majuri
76d629dcbc
Made 'Launch Toolbar' links open in a new tab (#1524)
* made open toolbar links open in a new tab

* Remove noreferrer to allow filtering out visits from PostHog

* Allow referrer

* Disable react/jsx-no-target-blank

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-08-27 14:34:11 +02:00
Michael Matloka
411648a371
Code snippets with proper syntax highlighting (#1490)
* Use react-syntax-highlighter in snippest + fix minor issues

* Use synthwave84

* Use vsc-dark-plus

* Use okaidia (PostHog/posthog.com#362)

* Use copyToClipboard from utils
2020-08-26 16:36:34 +02:00
Tim Glaser
b2a5301d90
Fix user paths on firefox (#1513) 2020-08-26 15:47:56 +02:00
Michael Matloka
59ec3a6325
Make note that Zapier integration is not public yet (#1510) 2020-08-26 11:02:09 +02:00
Michael Matloka
c040601f49
Personal API keys and Zapier integration (#1281)
* Add missing migration

* Add generate_random_token() model util

* Move PublicTokenAuthentication to utils

* Make use of generate_random_token

* Add User.personal_access_token field

* Add PersonalAccessTokenAuthentication

* Fix PublicTokenAuthentication

* Fix migration and auth import

* Add personal_access_token to user API

* Update Setup.js

* Support trailing slash in API

* Improve PAT auth quality

* Add django-rest-hooks requirement

* Update settings.py for rest_hooks

* Fix django-rest-hooks requirement

* Bring back API routes with no double trailing slash

* Rename posthog.api.team to team_user

* Add API TODO

* Ad PAT auth with X-PAT HTTP header

* Replace User.personal_access_token with PersonalAPIKey model

* Fix PersonalAPIKey max_lengths

* Describe posthog.models.utils.generate_random_token better

* Add personal_api_key to API

* Add authenticate_header to PersonalAPIKeyAuthentication

* Add hook API endpoint

* Use django.utils.timezone in place of datetime.datetime

* Add Personal API Keys to Setup

* Sort personal_api_keys in ORM

* Add Action.on_perform()

* Remove requirements.txt comment

* Add a

* Add REST hook tasks

* Optimize PersonalAPIKeyAuthentication query

* Add a trailing slash version of /e endpoint

* Add team field to PersonalAPIKey model

* Add personal API key support to capture endpoint, get_cached_from_token

* Reject personal API keys from inactive users

* Add extra_properties_json field to /capture

* Improve PAK auth header regex

* Use custom hook model

* Deliver hooks

* Handle action.on_perform

* Consolidate userLogic in userLogic.tsx

* Update PersonalAPIKeys.js

* Make PersonalAPIKey foreign keys read-only

* Update requirements/dev.txt

* Make PersonalAPIKeys TSX

* Fix conflict

* Fix migration

* Fix minor mishaps

* Update and fix tests

* Use CharField of random 32 bits as hook.id

* Fix conflicting migrations

* Fix ValidationError in HookSerializer.validate_event

* Use query param in /api/event/actions ID filtering

* Rename endpoint `hook` to `hooks`

* Satisfy mypy

* Add tests

* Use DRF serialization in action_defined and annotation_created triggers

* Update migration leafs

* Make mypy ignore rest_hooks

* Update Django signal receiver names

* Update TS dependencies

* Revert "Update TS dependencies"

This reverts commit 7fc26fefcd.

* Add field user to Hook model

* Update migration leafs

* Fix circular import

* Fix some code

* Install git before running pip install in Dockerfiles

* Improve personal API keys UI

* Satisfy mypy

* Reword key label placeholder

* Add personal API key support to /api/user/*

Unfortunately these endpoints are still limited by CSRF protections at the moment, so not accessible outside PostHog itself.

* Improve PersonalAPIKeyAuthentication and add CsrfOrKeyViewMiddleware

* Run collectstatic before test

* Don't install dev dependencies in CI

* Update dependency installation order in CI

* Fix bug and describe PersonalAPIKeyAuthentication

* Fix CI issues

* Fix typing issues

* Fix more typing issues

* Use /api/personal_api_keys to list keys

* Move REST hooks (and therefore Zapier) to ee/

* Refactor personal API logic with kea-loaders

* Add "More about API authentication in PostHog docs."

* Update PersonalAPIKeys.tsx

* Use TestMixin

* Fix "Authentication" that should've been "Authorization"

* Add option to skip self.client.force_login in API tests

* Include team_id and user_id in personal API key serialization

* Update test_hooks.py

* Add personal API key tests

* Remove leftover

* Make ee.settings override posthog.settings

* Don't directly import from models

* Remove unused imports

* Fix mypy issues

* Fix HOOK_DELIVERER

* Use decorator for /api/user PAK auth

* Don't fire REST hook if user doesn't have "zapier" feature

* Import Optional

* Reword to "premium Zapier"

* Make mypy happy

* Fix test_delete_personal_api_key

* Fix misclick

* Fix and test /capture with personal API key

* Make mypy happy

* Remove extra_properties_json

* Resolve migrations

* Remove apt-utils

* Optimize and test PAK user.is_active filtering

* Replace DEBUG true with 1

* Remove unused instance_id

* Improve typing

* Fix deletion toast

* Refactor CopyToClipboard and use it in PAKs

* Use toast.success

* Update migrations

* Fix migration

* Fix migrations

* Complete merge

Co-authored-by: Tim Glaser <tim@glsr.nl>
2020-08-26 10:34:57 +02:00
Michael Matloka
85786265e7
Add ph-no-capture to Toolbar (#1499) 2020-08-26 01:34:15 +02:00
Lee Yi Jie Joel
03a42f0570
Disable Link Sharing (#1475)
* Add backend api

* Run black

* Add Switch button to frontend

* Move switch down

* Add hook to disable signup link

* Run black with line width 120

* update conditional check

* send request on switch

* Update TeamInvitation to use api instead of fetch

* Convert signup_token to signup_state

* Remove unused import and stray comment

* Improve code and UX

* Reword notice

* Add invite link revoke popconfirm

* Update signup_token test

* Improve Popconfirm style

* Make TeamInvitationContent work with Modal

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-08-25 11:09:39 +02:00
Yakko Majuri
ba4a752646
Close #1292: Added tabs for distinguishing between different users (#1382)
* #1292: Added tabs for switching between user types in People

* updated fetchPeople implementation

* refactored and fixed pagination

* fixed search query across tabs issue

* updated api query param for person

* added tests

* added tests & fixed queries

* added cypress tests

* Improve code style

* Improve regex and add compatilibity with demo data

* Improve variable naming

* Switched user identifying mechanism

* made it demo friendly

* Improved method for identifying users, added tests

* fixing minor mistakes

* made cypress test more robust

* cypress test update

* fixed migrations conflict

* updated cypress tests

* Optimize process_event conditions

* Update comment

* Make _set_is_identified more versatile

* Update demo.py

* Rename queryset_anonymous_pass

* Improve rudimental identification detection

* User kea-router for All Users category tab

* Optimize People

* Make category play well with cohort in People

* Simplify way of filtering by identification

* Remove need for deep copy

* Check location in People tabs E2E test

* Update test_process_event.py

* Black test_process_event.py

* Fix test_set_is_identified

* Try E2E test with cy.wait(200)

* Try E2E with more waiting

* Don't check location in E2E test

* Add test_category_param

* Update migration

Co-authored-by: Twixes <dev@twixes.com>
2020-08-25 01:58:12 +02:00
Eric Duong
b172eee920
Insight history (#1379)
* add insight history

* add table

* edit format

* links working

* add modal

* add tab switch

* saving insights

* remove insights model

* no model for insight history

* initial working

* remove wrong typegen

* made the history per user

* missing param

* added funnel support

* add details

* add delete saved insight functionality

* add line break logic and funnel name

* fix reload logic

* fix rendering error

* add pagination component

* fix bugs

* add backend tests

* add insight-history-panel check

* add drawer and replace table

* add loading next

* add date

* add callback

* update test

* use table

* fix spacing

* fix rows

* adjust spacing

* fix spacing and styling

* fix spacing and styling

* .

* add missing package

* Funnel refactor (#1381)

* main funnel-insight page working

* consolidated funnels

* refactor funnel dashboard item

* dashboard modals working

* update demo creation

* updated migration

* fix frontend for funnels

* remove funnel code and fix bugs

* fix test and remove caching temp

* remove old tests

* fix types

* added panel for past funnels

* implement polling for funnel refactor

* .

* fix dashbaord item bug

* add params

* fix params

* clean up caching functionality

* fix types

* caching working properly

* fix dashboard update bug

* fix migrations

* fix check

* update caching to work properly

* Fix default

* fix api and styling for insight history

* more spacing

* update funnel automatically

* update tests

* fix clear condition

* merge insight history

* return save functionality

* remove file

* added extra save functionality
2020-08-24 17:02:13 -04:00
Michael Matloka
dd1d140c95
Put common head tags into head.html and fix name capitalization (#1489)
* Use EJS comments

* Fix capitalization

* Don't use EJS comments (compilation problems)

* Put common head tags into head.html template
2020-08-24 10:36:35 +02:00
Yakko Majuri
8737b618eb
switched active tab color on action filter dropdown (#1485) 2020-08-22 19:10:25 +02:00
Rupesh Padhye
986f4aaa7b
Closes #1367 update posthog icon (#1481)
* Closes #1367 update posthog icon

* Slightly improve logo in property keys

Co-authored-by: Twixes <dev@twixes.com>
2020-08-22 19:06:23 +02:00
Michael Matloka
575a3ef05c
Fix dashboard funnels on Safari (#1477) 2020-08-21 12:23:56 +02:00
Paolo D'Amico
7605d7abad
Setup improvements - Preflight (#1473)
Co-authored-by: Twixes <dev@twixes.com>
2020-08-20 16:56:12 -05:00
Marius Andra
ff1a1f9408
Toolbar action hints + regex (#1457)
* fix warnings

* Add url_matching help to ActionStep $autocapture inputs (Could be more DRY, but this entire class needs to be refactored)

* Add url_matching hints in toolbar

* plurals

Co-authored-by: Twixes <dev@twixes.com>
2020-08-20 02:40:19 +02:00
Marius Andra
be30a464ef
Few toolbar inspect fixes (#1470)
* Fix undefined error

* Reload all click targets when changing the URL

* Write code like it's 2020... after upgrade simmer to a version that return null instead of false
2020-08-20 02:38:56 +02:00
Anna
03fd0a668c
Fixes #1431 : Checks if event type is submit and adds property to filter by =submit when creating a new action (#1464)
Co-authored-by: Anna Philips <aphilips@matmacorp.com>
2020-08-19 10:43:03 +02:00
Michael Matloka
b151d48b8f
Fix bottom notice closing (#1467) 2020-08-19 01:58:24 +02:00
Marius Andra
1b116059b2
Improve heatmap count display (#1459)
* show count for heatmap instead of index, humanize large numbers and have a red hue for the biggest ones

* Improve humanizeNumber readability

* Fix code style

* Fix humanizeNumber

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-08-18 21:47:47 +02:00
Michael Matloka
860102958f
Clear up dau label and description (#1454) 2020-08-18 12:20:10 +02:00
Michael Matloka
44f45b86c6
Auto update VERSION (#1452)
* Auto update VERSION

* Use SYNC_GITHUB_TOKEN

* Fix minor oversights

* Fix auto commit
2020-08-18 12:02:31 +02:00
Marius Andra
1e261ebabc
Toolbar Heatmap & Inspect improvement (#1424)
* 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
2020-08-18 11:13:43 +02:00
James Hawkins
bf0673fd4c
WIP Changed DAU Label (#1453)
DAU is a confusing label - ie if the date range is changed to weeks, this essentially is WAUs
2020-08-18 11:04:58 +02:00
Michael Matloka
606dcfaea8
Add "no TLS in production" warning bar (closes #1422) (#1437)
* Add tls-bar

* Clean up bar

* Update class names and notice

* Refactor for code quality
2020-08-17 22:15:18 +02:00
Michael Matloka
4981139b8c
Improve EventsTable (#1449) 2020-08-17 15:13:14 -03:00
Marius Andra
45f10a8eaf
Kea TypeGen 0.2 (#1427)
* 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
2020-08-14 17:02:57 +02:00
Tim Glaser
70f59f9b58
Add action table created by/at (#1415)
* Add action table created by/at

* Take new User query into account in test

Co-authored-by: Twixes <dev@twixes.com>
2020-08-14 11:36:26 +02:00
Tim Glaser
23f5918477
Add enterprise edition and licensing (#1390)
* Add enterprise edition and licensing

* Cypress test

* License wording change

* Fix typos
2020-08-14 11:23:55 +02:00
Marius Andra
6a57cb3e2d
Fix Heatmap broken CSS selector with button[href=] (#1403)
* Fix Heatmap broken CSS selector with button[href=]

* upgrade posthog to 1.4.3
2020-08-13 22:32:08 +02:00
Marius Andra
d4291da022
Toolbar Actions Flow (#1320)
* 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
2020-08-13 15:53:54 +02:00
Michael Matloka
86fe614e0e
Launch Toolbar cleanup (#1345)
* Improve Launch Toolbar button and modal style

* Fix URL list transparency issue

* Use filled rocket icon

* Make toolbar modal hog-icon transition faster

* Replace RocketOutlined with HogIcon
2020-08-13 15:27:27 +02:00
Tim Glaser
0e96ffb5f4
Revert "Poll funnels (#1366)" (#1405)
This reverts commit 9cc2a46bfe.
2020-08-11 18:30:24 +02:00
Tim Glaser
1a151598c8
Hide message format and make optional (#1402) 2020-08-11 15:36:56 +02:00
Marius Andra
83e94c5e68
Upgrade simmer to version that works with colons ":" in class names. (#1397)
* Upgrade simmer to version that works with colons ":" in class names.

* unescape classnames

* improve classname unescaping
2020-08-11 14:54:33 +02:00
Marius Andra
75a12b7bbf
Fix clicks counted multiple times (#1400) 2020-08-11 13:53:33 +02:00
Max Ungless
d14b0404ae
Enhancement (#1156) Adding more slack context via tokenisation (#1219)
* 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>
2020-08-11 10:53:35 +02:00
Eric Duong
9cc2a46bfe
Poll funnels (#1366)
* working poll funnels

* remove packages

* update test to use polling

* fix types
2020-08-10 16:27:55 +02:00
Michael Matloka
7b9abe4d61
Enhance version notice (#1386)
* Enhance version notice

* Update notice and use TypeScript

* Use "newest" everywhere
2020-08-10 12:40:50 +02:00
Michael Matloka
85fe3b9a62
Add DEBUG overlay bar (#1378)
* 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
2020-08-10 12:39:22 +02:00
Eric Duong
249ec347c3
Revert "Insight history (#1303)" (#1363)
This reverts commit 4166e96364.
2020-08-05 17:00:56 +02:00
Eric Duong
4166e96364
Insight history (#1303)
* add insight history

* add table

* edit format

* links working

* add modal

* add tab switch

* saving insights

* remove insights model

* no model for insight history

* initial working

* remove wrong typegen

* made the history per user

* missing param

* added funnel support

* add details

* add delete saved insight functionality

* add line break logic and funnel name

* fix reload logic

* fix rendering error

* add pagination component

* fix bugs

* add backend tests

* add insight-history-panel check

* add drawer and replace table

* add loading next

* add date

* add callback

* update test

* use table

* fix spacing

* fix rows

* adjust spacing

* fix spacing and styling

* fix spacing and styling
2020-08-05 10:13:57 -04:00
Marius Andra
90b7f11af2
Use the correct distinct ID for toolbar instrumentation (#1348) 2020-08-04 15:39:34 +02:00
Michael Matloka
7428ac2cee
Update Team.js (#1346) 2020-08-04 15:38:30 +02:00
Eric Duong
f5a790642f
Add annotation popup on hover (#1331)
* add annotation popup on hover

* Improve close button UX

Co-authored-by: Twixes <dev@twixes.com>
2020-08-04 15:09:36 +02:00
Marius Andra
3d8b9d51f8
Toolbar Temporary Token Logout (#1309)
* update to kea-typegen that runs through prettier

* remove posthog-js yalc package regression

* add types to toolbar react components

* logout when closing the toolbar

* reset users's temporary token when logging out

* test for resetting the temporary token

* random commit to rerun cypress
2020-08-04 14:57:41 +02:00
Eric Duong
e814540de2
fix date range filter and prune funnel code (#1335) 2020-08-04 10:11:00 +02:00
Marius Andra
a7fafb4259
Attempt to fix chunk loading errors (#1333)
* try to fix chunk loading errors

* Remove old hedgehog from network error page
2020-08-03 20:14:50 +02:00