0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

225 Commits

Author SHA1 Message Date
Marius Andra
5245ee68ae
New filtering experience (#5189)
* the new filtering experience

* revert bug
2021-07-19 22:28:57 +00:00
Alex Gyujin Kim
d9973c7e5d
Add all steps option to time conversion funnel (#5142)
* add all steps option

* all steps working; add total and mean time to convert

* change display type checks to use enum

* kea types

* dangling console log

* Add average conversion time to time to convert results

* respond to feedabck

* responsive histogram sizes

* merged @Twixes backend changes; adjust data shape on frontend; add responsiveness to histogram

* add tooltip label

* adjust copy and tooltip

* minor tweaks

* respond to general feedback

* kea auto

* better empty state:

* error handling null time bins

* fix tests

Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-19 12:00:59 -07:00
Marius Andra
127e827894
Refactor taxonomic property filter logic (#5098)
* init TaxonomicPropertyFilter based on Tabbed variant

* InfiniteSelectResults

* infinite loader state mgmt

* set local state on select

* set by name, not id

* list and filter static values

* value search & loading anim

* allow selecting operator and value

* add cohorts support - WIP

* Fix cohort select

* default by opening to the correct tab

* extract feature flag

* add pagekey to taxonomic filter logic

* remove use of local state in taxon filter

* create keyed infiniteSelectResultsLogic

* not working: loading logic; need breakpoints and return Promise

* address minor changes

* move files to own folder

* TaxonomicPropertyFilter now controls activeTabKey

* wip: Load next chunk of results when list renders

* change pageKeys

* load initial results on mount

* set breakpoint and overscan count

* add a nextOffset state value rather than breakpt

* preserve scroll pos

* allow loading at arbitrary scroll positions

* styling

* minor cleanup

* wip: limit and offset via list accessors

* do a silly little array slice

* separate endpoint for paginated results

* use Fuse for static lists

* wip: tab titles

* counts update on search for both local and async properties

* revert changes to person.py

* minor improvements

* refactor taxonomic property filter logic WIP

* fix bugs, add search queries

* fix key error

* also show local items

* show counts

* add operator value select

* local search with fuse

* get rid of tabKey, select active tab based on filter

* various cleanup

* add simple api cache

* hide property popover -> make the popup usable

* create filter dropdown

* "add filter"

* show the right cohort

* better handling for when the filter is already in a popup

* move up/down

* keyboard up/down navigation

* select on enter

* preselect selected item, fix focus jank

* autofocus on other dropdowns as well

* improve style and refactor util

* fix dumb bug

* show cohorts full screen

* fix filter alignment, type and placeholder

* filter position and responsiveness

* reduce dependence on antd, fix various layout bugs

* fix responsiveness

* tooltip position

* pass on onComplete

* hide tooltip if switching tab

* search property filters also in EE

* add type, fix typegen write loop

* Minor copy adjustment

You're actually searching all at once

* fix outside click handler

* popups with popper

* add ant-select as exception for popup outside clicks

* simplify deps

* always highlight the first item

* use new popup with taxonomic filter

* fix PropertyFilterButton ref

* clear search on select

* placeholder for value input box

* add empty state

* only open filter downwards

* move listTooltip postition into useState

* list tooltip position after opening and resize events

Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-19 16:40:31 +00:00
PostHog bot
78aac36734
Update posthog-js to 1.12.1 (#5165) 2021-07-16 15:38:00 +01:00
PostHog bot
861059b38c
Update posthog-js to 1.12.0 (#5149) 2021-07-15 12:40:55 +01:00
Marius Andra
25c00acfdc
Abort trends requests & fix few bugs (#5136)
* don't end query if failed if new one came in already

* adjust breakpoints and end the query in the end

* abort trends fetch queries

* smaller delay

* fix entityFilter blinking bug and improve types

* new typegen

* remove second source of truth, change value to 300

* improve type accuracy

* log aborted queries

* report aborts in trendsLogic

* consolidate ViewType into types.ts

* one more

* and one more
2021-07-15 13:14:14 +02:00
Alex Gyujin Kim
44e6a74092
Add D3 Histogram for Time Conversion Histogram (#5094)
* add d3 histogram

* different layouts and fine tuning d3 histogram

* spacing math and comments

* row-align steps action dropdown and refactor

* cleanup

* hide time conversion behind ch flag and remove layout toggle

* remove animation and layout toggle

* revert fat finger

* erroneous type
2021-07-14 14:52:26 -07:00
Lleo Harress
3b21790027
Automatically add polyfills based on browser requirements (#5086)
* Latest browser’s versions and statistics

* Browserlists - Use "defaults" browser support

* Enable Babel polyfills based on usage

* Revert "Polyfill Object.fromEntries (for Safari <= 12) (#4999)"

This reverts commit ad63386a69.

* Different browser support for dev/prod for build performance
2021-07-13 10:01:04 +02:00
PostHog bot
7d1331f257
Update plugin-scaffold to 0.12.5 (#5085) 2021-07-12 18:08:55 +01:00
PostHog bot
e62e8e8e54
Update plugin-scaffold to 0.12.2 (#5079) 2021-07-12 16:06:56 +01:00
Tim Glaser
5f242b2bed
Solve ospath issue (#5014)
* Solve ospath issue

* try separate cypress cache

* Separate install

* ls

* try

* Try to put everything in same cache

* Remove cypress plugin snapshot

* fix cohorts and funnels
2021-07-07 14:04:39 +02:00
Sam Winslow
ad63386a69
Polyfill Object.fromEntries (for Safari <= 12) (#4999) 2021-07-06 19:47:51 -04:00
Marius Andra
7bcd721b52
Replace url instead of pushing when changing properties/filters (#4966)
* replace url instead of pushing when changing properties/filters

* missed one
2021-07-02 17:02:13 +02:00
Alex Gyujin Kim
f717d9d126
Better Sessions (Deeplinking, filter matching, expand/collapse options, matching highlights) (#4840)
* eslint

* implement deeplinking on frontend

* highlight matching events

* remove console.logs

* missed a print

* standardize entity to session filter conversion

* add matching events icon

* styling expand column width

* autoscroll, sessions table filtering, action options

* add e2e tests and a few bug fixes

* remove console.logs

* lint rules and typescript fixes
2021-06-30 19:27:36 -07:00
Paolo D'Amico
d473aec4e3
Revert "Revert "Improve types vol. 10"" (#4911) 2021-06-29 15:24:33 +02:00
Karl-Aksel Puulmann
89dd998f9d
Revert "Improve types vol. 10 (#4888)" (#4910)
This reverts commit 6ffc94b174.
2021-06-29 15:23:15 +03:00
Marius Andra
6ffc94b174
Improve types vol. 10 (#4888)
* manual types for kea-router no longer needed

* update packages

* remove needless complication that is done inside cleanFunnelParams anyway

* no longer needed

* update typegen again
2021-06-29 13:10:35 +02:00
Alex Gyujin Kim
d36b15ed0e
Add frontend local dev script for Clickhouse development (#4891)
* add frontend dev script

* some refactoring
2021-06-28 23:02:13 -07:00
PostHog bot
2db367a2cf
Update posthog-js to 1.11.4 (#4873) 2021-06-24 18:21:00 +01:00
Marius Andra
14e3eb6ddf
Remove non null assertions (#4862)
* upgrade typegen

* remove non-null assertions

* fix small type bug

* fix sessions ts errors
2021-06-24 10:00:59 +02:00
Li Yi Yu
24fd3a54ff
Event definition drawer properties (#4722)
* wrap css classnames and allow for property definition filtering

* event properties section

* properties stats table and object tag functionality

* property descriptions and save all descriptions button

* fix description editing on the table

* fix test failures

* debouncing input is weird

* split up components

* refactor definition drawer kea file

* drawer should only open for taxonomy feature users

* lint errors

* prettier

* property definition filter backend test

* fix test

* populate test with definitions..

* clean up

* clean up property drawer interactions

* fix everything but scroll top issue

* test scroll issue

* table state wip

* update logic after typegen

* prevent undefined error

* only make the clickable rows clickable, not the entire table

* upgrade typegen and fix error with feature flags

* move to reducers and rename action

* update blacklist

* fix event properties description bug

* update typegen once more

* fix editing for events table

* fix editing for properties table

* add script to clean typegen

* update ts blacklist

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 09:00:59 +02:00
Marius Andra
cd94d2d464
Kea-typegen auto-import (#4801)
* fix a lot of types

* fix another bunch of types

* update typegen to beta, patch last types

* fix introduced bug

* fix a few errors

* update ts blacklist
2021-06-18 12:22:10 +02:00
Paolo D'Amico
65500612dc
Tooltips improvements III (#4751)
* adjust tooltip position

* fix crosshair snap

* allow clicking the correct datapoint

* optimize InsightTooltip

* fix no background colors in bar value chart

* fix positioning for bar value chart

* fix display on bar value charts with breakdown

* use custom chart.js

* add slight animation to tooltip position

* use posthog chartjs with "nearestX" mode

* update to a unborked @posthog/chart.js

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-17 12:06:55 +02:00
Tiina
1ed333365a
Add .yaml files to be linted with prettier too (#4771) 2021-06-16 18:04:51 +02:00
Karthikeyan Singaravelan
7e20186064
Fix deprecation warnings due to invalid escape sequences. (#4633) 2021-06-15 11:41:49 +02:00
PostHog bot
fc08c4e9f3
Update posthog-js to 1.11.3 (#4729) 2021-06-14 11:45:35 +02:00
Sam Winslow
902eb77396
Base tooltips refactor (#4529)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 09:18:23 -07:00
PostHog bot
b4e0574616
Update posthog-js to 1.11.2 (#4620) 2021-06-07 17:53:20 +02:00
PostHog bot
8b4d248849
Update posthog-js to 1.11.1 (#4601) 2021-06-04 18:17:44 +02:00
Joe Martin
0e0077fb2c
Update-Papercups-Greeting (#4584)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-03 09:25:56 -07:00
PostHog bot
28eab6aefa
Update posthog-js to 1.11.0 (#4569) 2021-06-02 13:54:35 +02:00
Marius Andra
f7a42020b3
Plugin editor types (#4468)
* add @posthog/plugin-scaffold type to plugin editor, simplify plugin

* make functions async

* have same config type as config json

* ignore raw-loader ts errors

* remove monaco webpack plugin

* Add example `console.log` to `onEvent`

* Escape backticks inside backticks

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-01 13:19:38 +02:00
Marius Andra
cc04325a80
remove MiniCssExtractPlugin (#4552) 2021-05-31 23:58:28 +02:00
Marius Andra
5017bf1c08
Fix deduplicated SCSS issue (#4545)
* Revert "Hotfix SCSS for trend graphs (#4539)"

This reverts commit 545dc62ec6.

* Revert "Move history import to globals (#4531)"

This reverts commit 542be62053.

* Revert "@ import all scss in lib/components (#4530)"

This reverts commit 5e2a3290da.

* fix deduplicated css problem

* update lockfile
2021-05-31 19:13:50 +02:00
Marius Andra
9314dd47c1
Redefined shadow variable fixes (#4544) 2021-05-31 13:17:53 +02:00
Marius Andra
67379edb81
kea-typegen 0.7.2 & fix random errors (#4542)
* kea-typegen 0.7.1

* kea-typegen 0.7.2

* fix history ViewType

* fix key errors

* fix rrweb import error
2021-05-31 10:40:54 +02:00
PostHog bot
b078a200f9
Update posthog-js to 1.10.2 (#4472) 2021-05-25 14:23:17 +02:00
PostHog bot
96ad1fa5e0
Update posthog-js to 1.10.1 (#4466) 2021-05-25 12:43:25 +02:00
Tim Glaser
a392e8ec0c
Upgrade rrweb fork (#4442)
* Upgrade rrweb fork

* Use @posthog/rrweb and upgrade react-rrweb-player
2021-05-24 15:31:57 +02:00
Tim Glaser
71b6c861ba
Remove crypto-js in favour of md5 (#4320) 2021-05-14 13:45:09 +02:00
PostHog bot
ceba1787c8
Update posthog-js to 1.10.0 (#4252) 2021-05-07 08:07:23 +02:00
Sam Winslow
965deb2cb2
Convert regex filter select to input with autocomplete (#4170) 2021-04-30 11:27:20 -04:00
Eric Duong
3b06eec925
Virtualize action filter (#4143)
* single list

* working virtualized list

* fix sessions data

* add search
2021-04-29 11:56:20 -04:00
Sam Winslow
f75d25ad64
Rework ResizableTable column rendering (#4026) 2021-04-26 23:56:34 +00:00
Marius Andra
6eb58ccdb3
Typegen and other Kea upgrades (#4097)
* upgrade kea, kea-typegen, kea-loaders, kea-router

* add correct imports to two logics

* upgrade kea

* upgrade typescript to 4.2.4

* add type

* fix one type
2021-04-26 15:53:50 +02:00
Yakko Majuri
cb175019d8
suppress antd change::: error (#3969)
* suppress antd change::: error

* Fix TS error, bump and dedupe rc-trigger
2021-04-14 14:53:56 +02:00
PostHog bot
63087620f3
Update posthog-js to 1.9.7 (#3933) 2021-04-12 19:44:06 +02:00
Sam Winslow
8fed52dd6f
Resizable table columns in Sessions (#3927)
* add react-resizable

* fixed-width starting sizes on ResizableTable

* responsive utils for resizable table

* resizable table has gradients on scroll

* clean up resizabletable interfaces

* computes grid basis on mount, avoid overflow

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-10 14:52:00 -04:00
Michael Matloka
61feb50865
Enable plugins for everyone (#3557)
* Put Team.plugins_opt_in out of use

* Put Plugins out of BETA

* Add attention-grabbing blip for Plugins in nav

* Add end of Plugins beta banner

* Refactor MenuItem highlighting

* Update Plugins page copy

* Prettier

* Add User.flags field and use it instead of posthog.persistence

* Fix User.flags API

* Update migration

* Update Plugins.tsx

* Roll back extraneous additions

* Roll back more

* Update code ordering
2021-04-07 16:43:41 +02:00
Paolo D'Amico
262e28497c
Fix cypress dependencies (#3881) 2021-04-06 09:21:21 -07:00