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

1911 Commits

Author SHA1 Message Date
Yakko Majuri
f7a2941d48
remove debug line (#5933) 2021-09-14 09:58:38 +01:00
Li Yi Yu
55d65c6a93
check if data key exists (#5908) 2021-09-13 09:37:50 +02:00
Yakko Majuri
e708d202c6
Job triggering interface (#5720)
* wip job triggering interface

* add support for number

* update tests

* fix api call

* minor fixes

* move to kea, better UI, remove logs

* updates
2021-09-13 07:01:28 +00:00
Sam Winslow
e8b9350b8a
Humanize $feature/* key labels in PropertyKeyInfo (#5906)
* humanize feature flag property for use in filters

* copy tweak

* replace <pre> with <code>

* update storybook
2021-09-11 00:39:49 +00:00
Michael Matloka
1d07c7670d
Improve premium feature guards (#5890)
* Kea-ify `guardAvailableFeature`

* Fix `RestrictedArea` tooltip placement

* Don't needlessly fetch all org fields in available features sync

Fetching all fields is especially painful when there's a field-adding migration that hasn't ran yet, as Django selects fields explicitly, and when it does that with a field it knows about but the DB doesn't yet, the whole query fails. And because `sync_all_organization_available_features` is ran on Django server start, the server fails to start, refusing to hot reload again until a full server restart.
2021-09-11 00:28:23 +02:00
Eric Duong
08efd78987
Swap out old paths querying class with new 2 (#5887)
* Revert "Revert "Swap out old paths querying class with new (#5821)" (#5886)"

This reverts commit 82ef50a1e7.

* remove old ref

* test 3.9 general

* test if there's overlapping

* change version back
2021-09-10 15:38:45 -04:00
Eric Duong
82ef50a1e7
Revert "Swap out old paths querying class with new (#5821)" (#5886)
This reverts commit a8f12f8695.
2021-09-09 22:31:27 -04:00
Eric Duong
a8f12f8695
Swap out old paths querying class with new (#5821)
* swap out old paths querying class with new

* swap arguments

* swap name

* delete old CH paths file

* dont error out in calculate_by_filter

* write some backwards compatible tests for paths

* remove expanding autocapture element ability

* cleanup

* delete old code

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2021-09-09 21:55:17 -04:00
Paolo D'Amico
ab9113947b
Release engagement cohorts (#5851)
Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-09-09 17:13:35 +02:00
Karl-Aksel Puulmann
a911a69559
Improve clickhouse flamegraphs (#5874)
* Final fix for kwargs

* Make flamegraphs interactable, still allow opening in a new tab
2021-09-09 12:40:46 +00:00
Michael Matloka
1d4187923b
Refactor AvailableFeature from strings to an enum everywhere (#5856)
* Refactor `AvailableFeature` from strings to an enum everywhere

* Fix circular dependency and type
2021-09-09 12:19:55 +02:00
Karl-Aksel Puulmann
afe5c59831
Give staff flamegraph access on cloud (#5869) 2021-09-09 07:59:40 +00:00
Michael Matloka
c9d27d7983
Improve org/project lists and modals (#5861) 2021-09-08 19:50:35 +02:00
Karl-Aksel Puulmann
3ac74a8472
Clickhouse flamegraphs (#5752)
* WIP: flamegraphs

* Get flame graphs generating

* Add files to bin

* Crude frontend for analyzing

* Hack: Use a stable clickhouse host instead of conn pool for flamegraphs

Otherwise no way to get back measurements due to LB.

* Error handling

* Only allow read queries

* Hide query analyze button for non-owners

* Make sure non-admins can't run queries

* Fix query issue
2021-09-08 16:24:44 +03:00
Marius Andra
379722e5a6
Storybook cleanup (#5844)
* make it easier to create kea stories

* improve storybook docs

* improve dev instructions
2021-09-08 12:05:39 +02:00
Michael Matloka
37a355687d
Make top nav look great (#5841)
* Make top nav look good

* Fix typing mismatch

* Bring back an `!important`
2021-09-07 22:07:08 +02:00
Michael Matloka
f1e4c665ac
Optimize UI around session recordings (#5770)
* Optimize UI around session recordings

* Round seconds in duration

* Force Recordings column to a reasonable size

* minor tweaks

* Add tests for duration second-rounding

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-07 19:41:41 +02:00
Michael Matloka
140626e3dd
Adjust SessionRecordingsButton behavior for a single recording (#5757)
* Adjust `SessionRecordingsButton` behavior for a single recording

* Fix a comment and try to fix E2E tests

* minor style adjustments

* adjust icon

* Fix bug with `SessionRecordingsButton` re-rendered too much

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-07 19:41:18 +02:00
Tiina Turban
395a81b316
Fix shared dashboards (#5838) 2021-09-07 14:53:00 +00:00
Tiina Turban
05119a1d16
Link config docs in the instance/status page (#5823)
* Link config docs in the instance/status page

* improve padding

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-09-07 13:15:39 +00:00
Marius Andra
c080d5f114
Deploy storybook.posthog.net (#5833)
* Deploy storybook.posthog.net

* test why this fails

* another experiment

* again...

* turn addon panels off by default

* debug ci script

* add welcome story

* try with other paths

* commit via action

* better welcome story

* remove branch exception

* keep the CNAME file

* remove branch exception

* remove duplicate checkout, fix paths

* remove branch exception
2021-09-07 12:00:44 +00:00
Manish Rastogi
7b30a4aa84
Closes #4987 sets page title to dashboard name whenever a dashboard is visited (#5822)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-07 11:44:20 +02:00
Marius Andra
a4221e4499
Onboarding storybook (#5827)
* remove stories folder

* return `null` like a component type can

* un-default exports

* add onboarding stories
2021-09-07 11:05:35 +02:00
Michael Matloka
c318815a4b
Persons modal polish (#5769)
* Use built-in Button component loading state

* Improve person modal header wording for funnel case

* Make use of `PersonHeader` in `PersonModal`
2021-09-06 16:05:31 +02:00
Sam Winslow
4758e66790
Highlight the active item (#5800) 2021-09-02 16:08:56 +01:00
Sam Winslow
86b34eda27
Dive button styling (#5798) 2021-09-02 15:49:56 +01:00
Sam Winslow
05e00bd618
Pass dive_source_id to the dashboard item api call (#5794) 2021-09-02 13:52:42 +01:00
Neil Kakkar
cfd7e586ac
use to step when not looking for all steps (#5793) 2021-09-02 08:14:33 -04:00
Tiina Turban
9e2ff189f7
Add removal for dive dashboard link (#5790) 2021-09-02 12:51:16 +01:00
Tiina Turban
ce30c2b178
add a way to set dive dashboards (#5787) 2021-09-02 11:02:49 +01:00
Sam Winslow
88a0b38267
Dashboard View and Dive buttons (#5785) 2021-09-02 10:36:47 +01:00
Paolo D'Amico
82453beec1
Random improvements (#5755) 2021-08-27 15:46:06 -07:00
Paolo D'Amico
bcf9837e38
SAML - frontend & enforce (#5758) 2021-08-27 09:37:30 -07:00
Cory Watilo
6e4c918065
make utility links block-level to increase clickability (#5662) 2021-08-27 09:45:20 +02:00
Alex Gyujin Kim
117e18a786
Custom step range picker for funnels time conversion (#5704)
* change steps dropdown selector to custom step picker

* move steps picker to options tab

* make funnels horizontal

* move exclusion filter to horizontal tab

* fix conversion window trigger bugs, update copy for steps picker

* move saved funnels to tab

* move to graph

* give divider some height

* FF it

* fix white screen bug; fix step range default bug

* clamp funnel step range

* remove console

* remove console

* fix reducer
2021-08-27 05:11:52 +00:00
Paolo D'Amico
e61f7ed9a7
Prefer "team members" (American English) (#5754) 2021-08-26 23:15:49 +02:00
Alex Gyujin Kim
2f885e11b3
Make funnels query bar horizontal again (#5730)
* make funnels horizontal

* move exclusion filter to horizontal tab

* move saved funnels to tab

* FF it
2021-08-26 17:48:53 +00:00
Michael Matloka
84dc2b0324
Rework SessionsPlayerButton and clean up Sessions UI (#5745)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* Clean up session recordings table

* Rework `SessionsPlayerButton`

* Fix color of play button for viewed recordings

* Fix typing issue

* Fix tests

* Update Sessions.cy-spec.js

* Address feedback

* Simplify button styles

* Add tooltip
2021-08-26 19:17:30 +02:00
Sam Winslow
5b589c5765
Multivariate flags UI (#5725)
* selector for boolean/variant

* update frontend forms

* persist updated values for flag variants

* input validation && error msgs

* add/remove variants

* change behavior of adding variant

* focus new field on add

* more focus management

* popconfirm to avoid losing data

* button to distribute variants equally

* hide multivariate UI behind feature flag

* change FF name
2021-08-26 14:59:01 +00:00
Michael Matloka
7f605c8bd9
"Personalize" "people" and "users" (#5739)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* "Personalize" "people" and "users"
2021-08-26 12:33:36 +00:00
Michael Matloka
7268de1b0f
PersonModal refactor (#5727)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* Update button text color
2021-08-26 13:44:16 +02:00
Li Yi Yu
ce2f4462c9
Saved insights default 2 (#5616)
* set up card layout and insight search

* add more filters

* clean up table

* dropdown actions

* clean up

* fixes

* date from filter

* proper date filtering

* prettier

* search_fields filters are not case insensitive

* various adjustments

* clean up

* split nested ternary into if statements

* UX updates

* add saved insights to storybook

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-08-25 17:46:25 -04:00
Paolo D'Amico
c76cf20551
Simplify timeframe options (#5731)
* basic flag removal

* support existing options but deprecate for new insights
2021-08-25 09:49:34 +00:00
Marius Andra
365a0f68d4
Storybook (#5714)
* initial storybook setup

* fix storybook babel config

* add two stories

* don't load if loaded

* make sure preflightLogic is loaded

* more examples for propertyKeyInfo

* kea storybook provider

* expose getReduxState on dev instances to make stories fast

* history for kea story provider

* remove old kea provider

* stories for insights

* stories for events

* fix .mdx support

* fix preloadedState type
2021-08-25 10:38:33 +02:00
Alex Gyujin Kim
2039f97c72
Add event exclusion feature to funnels (#5607)
* expand actionfilter functionality

* exclusion row component

* exclusion filter typing

* fixing funnel exclusion form edge cases

* styling in vertical layout

* add spacing

* typing and remove consoles

* move styling to JSX

* copy

* fix overlapping step boundaries

* improve exclusion filter vertical sizing

* new layout for vertical filter

* adjust copy & padding

* add flex wrapping to nested steps

* add renderRow to ActionFilter

* refactor insight empty states

* fix empty states of dashboard items

* fix types

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-08-24 16:42:35 -07:00
Michael Matloka
968bab369d
Fix Refresh button Tooltip (#5712)
* Refactor `Tooltip` extension component

* Fix Refresh button Tooltip

* Fix props interface name
2021-08-24 16:08:38 +02:00
Michael Matloka
709b5ab09f
Make margin between item icon and label in DropdownSelector cleaner (#5713) 2021-08-24 14:31:29 +02:00
Michael Matloka
16ae18c2cb
Fix typo 2021-08-24 12:14:09 +02:00
Paolo D'Amico
bd55969d93 Show event names clearly when creating an action 2021-08-23 21:28:30 -07:00
Michael Matloka
578cf989cb
Fix typo in Error404 2021-08-23 14:05:40 +02:00
Li Yi Yu
992bd607de
Lower limit and pagination to fix property definitions from freezing (#5658)
* lower limit

* also lower pagination limit

* revert limit change
2021-08-23 09:08:01 +02:00
Paolo D'Amico
ef7365ea90
Release formulas for everyone (#5676) 2021-08-20 15:12:36 -07:00
Yakko Majuri
2fe916abec
Remove plugin configs polling (#5660) 2021-08-20 12:02:30 +02:00
Alex Gyujin Kim
97ccd8f78f
Funnel Step Ordering (#5644)
* add step order picker

* actually add the thing I implemented

* tooltips and styling

* adjust copy

* margin

* use options prop in Select

* check for clickhouse, fix B -> A

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-08-20 08:09:00 +00:00
Karl-Aksel Puulmann
24f2e548e1
Hide "date" in stickiness graph (#5652)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-20 02:40:39 +00:00
Alex Gyujin Kim
ce077bd51b
Fix lingering tooltips in Line Graphs (#5663)
* fix lingering tooltips

* handle component unmount scenario
2021-08-19 14:26:14 -07:00
Alex Gyujin Kim
2d7c80f35e
Hot fix auto loading of funnels (#5603)
* fix no refreshing on parameter changes

* remove console

* persist funnel parameters to url

* rename
2021-08-19 18:06:14 +00:00
Marius Andra
1402faf9de
display range in dropdown value if only start given (#5619) 2021-08-19 14:30:19 +02:00
Michael Matloka
52d3ed7599
Hide irrelevant numbers for the initial funnel step and clean styling up (#5645)
* Hide "Dropped off" for the initial funnel step

* Clean funnels styling up

* Fix horizontal bars mode styling

* Adjust for #5605

* Show "completed step" percentage for all steps again
2021-08-19 09:18:51 +00:00
Alex Gyujin Kim
b4c30cbe78
Fix edit actions losing focus on each keystroke (#5628)
* separate out components in action step for proper rerender

* fix required props

* add focus check to e2e
2021-08-18 18:13:43 +00:00
Kunal
4fce6d52ee
Fix empty tooltip popup on dashboards (#5631)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-08-18 09:47:37 -07:00
Paolo D'Amico
e250e78135
Sort dashboards based on pins (#5588)
* Sort dashboards based on pins

* clean up code a bit
2021-08-18 09:41:12 -07:00
Paolo D'Amico
ad7866743d
Release Nailing Funnels (#5605)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-08-18 08:44:28 -07:00
Karl-Aksel Puulmann
b1f5cd38e3
Display 0% instead of NaN when 0 out of 0 people complete a step (#5634)
Closes https://github.com/PostHog/posthog/issues/5633
2021-08-18 17:51:51 +03:00
Karl-Aksel Puulmann
323f82bd2b
Add loading state to InsightsTable (#5601)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-17 20:04:09 +00:00
Li Yi Yu
742ad33252
prevent sessions to trends white screen death bug (#5620) 2021-08-17 15:00:29 -04:00
Marius Andra
95dafc9a62
Insight & dashboard loading issues (#5612)
* load the funnel after the logic mounts, not after the component

* move logicFromInsight to another file to avoid recursive imports of funnelLogic and insightLogic

* take last applied filters directly from results

* fix type

* more meaningful default key

* add some props (WIP)

* only run insight query start/end tracking if on insights

* fix some types

* load the funnel only if valid to do so; prevents initial "loaded, but error" state

* remove debug

* still call startQuery/endQuery on insightLogic

* convert dashboardLogic to TS

* fix more ts errors

* fix more TS errors

* save last used filters with results

* fix type import path for typegen
2021-08-17 16:19:17 +02:00
Yakko Majuri
1bfb20f85e
Show search bar for plugin config choice field (#5578) 2021-08-17 09:33:49 +00:00
Alex Gyujin Kim
51918efe35
Add delays to tooltip + Typing Actions (#5591)
* custom tooltip component and typing for actions

* change delay to 500ms

* cautionary comment

* debouncing visible

* dont introduce new html element into tooltip, use cloneElement instead

* add prop types and default override prop to tooltip
2021-08-16 19:33:04 +00:00
Karl-Aksel Puulmann
5517cead23
Fix refreshing funnels (#5597)
https://github.com/PostHog/posthog/pull/5576 broke funnels refreshing
due to an added equality check
2021-08-16 09:07:12 -07:00
Alex Gyujin Kim
344aab3ee7
Patch for dashboardLogic crashing home page (#5522) 2021-08-16 08:59:50 -05:00
Yakko Majuri
e5a9c3b04e
merge people test (#5567)
* do all merge_people ops in plugin server

* add integration test

* flip call order

* allow calls in any order

* update test approach
2021-08-16 10:53:52 +03:00
Li Yi Yu
3ad9ad2158
Fix retention filters (#5590)
* fix filter params

* add comment

* clean up with selector
2021-08-13 18:30:38 -07:00
Alex Gyujin Kim
db1def7c6d
Revert "Fix white screen bug for sessions table navigation to trends (#5569)" (#5592)
This reverts commit 2bc3281d05.
2021-08-14 00:46:59 +00:00
Paolo D'Amico
bb458edbff
Report properties on insight viewed (#5511) 2021-08-13 17:59:51 +00:00
Alex Gyujin Kim
d945bb3b3c
PEMDAS, Performance Optimization, and a small UI bug (#5576)
* pemdas, performance improvement

* descriptive comment

* no bools today
2021-08-13 09:09:40 -07:00
Li Yi Yu
2bc3281d05
Fix white screen bug for sessions table navigation to trends (#5569)
* do not render line graph for wrong data types

* data of undefined fix
2021-08-13 09:40:33 -04:00
Michael Matloka
18bd79ee41
Insights refresh improved (#5530)
* Improve insight refreshing UX

* Clean up

* Make sure `ComputationTimeAndRefresh` is on the right in Trends too

* Fix typing and some inconsistencies

* Remove unused const

* Update test_clickhouse_insights.py

* Update decorators.py

* Refactor `ComputationTimeWithRefresh` into own file
2021-08-13 03:31:54 +02:00
Li Yi Yu
64afebd643
Insight tags and description (#5480)
* pull description into its own reuseable component

* working object tags for insights

* refactor editing toast and add insight description editing

* insight name editing and split up huge insights component

* fix toast bug

* typing

* test fixes and clean up

* test something

* add cypress tests

* bug fixes

* test with user logic dashboard collab instead

* history is now a link button

* hide under saved insights feature flag

* skip tests for now

* prettier

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-12 17:55:11 -04:00
Yakko Majuri
304033c01f
Add Sessions tooltip (#5564)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-12 21:11:19 +00:00
Kunal
3d1875efe1
Add link to ingestion docs to helper dropdown (#5571)
* add ingestion doc link

* copy tweak

Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
2021-08-12 20:30:46 +00:00
Karl-Aksel Puulmann
57d8826150
Proposal: Hide people count (#5560)
See https://github.com/PostHog/posthog/issues/5559 for context
2021-08-12 13:22:24 -05:00
Alex Gyujin Kim
5c4630f7e6
New funnel uncalculated state (#5554) 2021-08-12 12:31:29 -05:00
Li Yi Yu
19c68ed697
Hide funnel step table when graphs are errored (#5549) 2021-08-12 12:44:31 +02:00
Alex Gyujin Kim
247d2c05e2
Custom conversion window sizes (#5453)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-11 18:27:58 -05:00
Li Yi Yu
37f1498410
Sort insights table total sum (#5521)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-11 14:35:18 -05:00
Li Yi Yu
79e74aebba
Replace retention tab with new filters (#5536)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-11 19:29:30 +00:00
Eric Duong
0ef17984b4
only send breakdown value when there's a valid value (#5529) 2021-08-11 14:45:33 -04:00
Eric Duong
de7ff476c5
Allow cohort breakdown to show on funnel (#5495)
* allow cohort breakdown to show

* Sanitize `order` in `Entity.__init__`

* Remove kludge from #5485 by making `entity.order` useful in practice

* Use synthetic `index` instead of user-provided `order`

* Fix `processed_entities` sorting

* Update frontend/src/scenes/funnels/funnelLogic.ts

Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>

* change type guard and add number back

* remove typeguard and add correct types for cohorts

* remove type change

* working cohort breakdowns ui

* one more type fix

* adjust tests

* adjust tests

* more test adjustmenet

* minor syntax change

* use breakdown type

* add comment

* remove leakover

Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Karl-Aksel Puulmann <macobo@users.noreply.github.com>
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-08-11 13:56:49 -04:00
Tim Glaser
a6cc0f0aa7
Use official rrweb version again and update (#5004)
* Use official rrweb version again and update

* Bump rrweb to 1.0.2 (from 1.0.1)

* Use updated `@posthog/react-rrweb-player`

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-08-11 13:00:08 +02:00
Michael Matloka
ab57d9b321
Fix drawer z-index (#5533) 2021-08-11 08:51:45 +00:00
Paolo D'Amico
3478213acf
Improvements to insights table & funnel logic cleanup (#5505) 2021-08-10 19:11:27 -05:00
Paolo D'Amico
cc005ddd9a
Update Clickhouse upgrade message (#5520) 2021-08-10 15:09:56 -07:00
Li Yi Yu
16481a82d8
Fix preserve of dashboard name when navigating insights (#5502) 2021-08-09 07:01:36 -05:00
Karl-Aksel Puulmann
cd18cf88cd
Show error instead of timeout message when query fails with non-500 (#5498) 2021-08-08 18:09:00 -05:00
Li Yi Yu
12f5b76f2c
Show only spinner when loading for funnels (#5449)
* return only spinner or warning

* add some white space
2021-08-06 20:02:15 +00:00
Neil Kakkar
da0edb87d8
Clarify how Filtering out internal users works (#5486)
Got feedback that it was very confusing whether the filter is applied as is, or in negation. (as is makes sense for properties, but makes very little sense for cohorts, since internal users cohort size <<< external users cohort size)
2021-08-06 11:51:01 +00:00
Karl-Aksel Puulmann
049c41868e
Hide time-to-convert when using breakdown (#5476) 2021-08-05 14:05:17 -07:00
Michael Matloka
5c1408fac7
Provide more informational invalid regex message (#5456)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-05 19:10:05 +00:00
Michael Matloka
fd0ff16c9b Fix link to building a plugin
Glossed over in #5448.
2021-08-05 17:44:48 +02:00
Yakko Majuri
1f2458eaaf
Add more contrast between official and community plugins (#5448)
* update plugins repo tab

* Make it clear when plugins are built by the community
2021-08-05 17:37:11 +02:00
Li Yi Yu
cd94321cba
Saved insights default page (#5416) 2021-08-05 07:38:07 -07:00
Marcus Hyett (PostHog)
cca46b2f80
Automatically Persist Filter Value on Blur (#5373)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-08-05 10:04:33 +00:00
Michael Matloka
e48bd8b08b
Allow "new member" email opt-out (#5430) 2021-08-04 18:09:41 -07:00
Michael Matloka
a163b84974
Hotfix crashing Home (#5454) 2021-08-05 01:00:34 +02:00
Paolo D'Amico
76bbf7f4df
Better insights instrumentation (#5432)
* report from dashboard on insight viewed

* report person modal

* abstract filter sanitization and report cohort creation

* report insight viewed after 10s

* change to insight analyzed
2021-08-04 14:45:14 -07:00
Alex Gyujin Kim
5d8bc03e29
Beef up warning funnel empty state message (#5434)
* standardize warning funnel empty state

* change color and icon
2021-08-04 13:16:42 -07:00
Marius Andra
3f70dcd857
Add urls to programmatically create routes (#4656)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-04 12:31:14 -07:00
Alex Gyujin Kim
c22f66ca33
Synchronous dashboard refreshes (#5407)
* add synchronous dashboard refresh all items

* add auto reload dropdown

* fix trigger bounds

* small fixes

* refresh width

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-04 08:48:00 -07:00
Paolo D'Amico
5e0fe12471
View graph in dashboards is now a link (#5418) 2021-08-03 17:15:35 +00:00
Neil Kakkar
a5d9953dc1
Make Breakdown limit customizable and Allow empty breakdown value in trends and funnels (#5357)
* breakdown limits update

* include null in limit

* clean breakdowns for trends & peeps
2021-08-03 10:59:09 +01:00
Michael Matloka
077f6f13bb
Complete move to 4px border radius (#5414) 2021-08-02 19:57:08 -07:00
Alex Gyujin Kim
a797e5d09c
Add an empty state for funnels and property filter arrow fix (#5422)
* refactor render function

* fix extra arrow in property filters

* remove consoles
2021-08-03 01:54:17 +00:00
Michael Matloka
cc499d8fbc
Show sortable webhook status column in ActionsTable (#5415) 2021-08-02 21:44:25 +00:00
Paolo D'Amico
617ded5b80
Don't pin dashboards by default (#5419)
* Don't pin dashboards by default

* E2E test
2021-08-02 20:27:39 +00:00
Michael Matloka
91aa0b15c1
Remove AsyncActionMappingNotice (#5417) 2021-08-02 16:48:53 -03:00
Alex Gyujin Kim
2c1cf157f2
Center person uuids in modals (#5413) 2021-08-02 19:32:03 +00:00
Paolo D'Amico
a30d3e92e8
Funnel improvements - Graph type, identical steps, UI updates (#5384)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-08-02 18:57:46 +00:00
Paolo D'Amico
ce2c9a2f90
Random insights improvements (#5406) 2021-08-02 09:44:44 -07:00
Paolo D'Amico
0a46442b3d
Fix session recording navigation from persons page (#5404)
* fix close recording player from persons

* set proper tab when watching a recording
2021-08-02 07:31:05 -07:00
Alex Gyujin Kim
58706cc68d
Add bin counts dropdown to Funnel Time Conversion (#5246)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-30 19:35:43 +00:00
Alex Gyujin Kim
105f99f5ef
Fix SI units less than 1 on time to convert (#5403) 2021-07-30 12:19:21 -07:00
Li Yi Yu
e245cfbd93
Allow formulas for single graph series again (#5400)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-30 19:06:36 +00:00
Kunal
92642421aa
Add a syntax example for HTML attribute based actions (#5362)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-30 17:40:27 +00:00
Kunal
3d537bd57b
Ingestion - add confirmation to skip + help button (#5348)
* Initial commit: wire up test w/ helper button

* check in the feat flag

* update copy, add data-attrs

* move bool check up

* update mgmt - fix double click issue

* reset changes to settings.py

Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-07-29 16:23:49 +00:00
Marcus Hyett (PostHog)
c1aeed3a62
Update TaxonomicPropertyFilter.scss (#5350)
Removed width constraint of Taxonomic Property Filter to allow form fields to flex to their max width.
2021-07-29 14:58:19 +01:00
Alex Gyujin Kim
54627e093b
Percentages to Time Conversion + Better Y-Axis Labels + Misc. Fixes (#5347)
* add percentages to time conversion + styling fixes

* remove test

* hide first gridline tick

* add scrolling and min-width to histogram bars

* updated snapshot

* remove console.log
2021-07-28 17:01:08 -07:00
Li Yi Yu
df100bc907
do not allow for persons modal search on clickhouse (#5344) 2021-07-27 11:22:00 -04:00
Alex Gyujin Kim
5216c52e4a
Address 'status' of undefined error (#5335) 2021-07-27 02:32:40 +00:00
Alex Gyujin Kim
e7f89597d5
Standardize date and time formatting across app (#5332)
* standardize dates and times across app

* fix tests

* fix postgres tests

* some more fixed tests
2021-07-27 01:46:20 +00:00
Alex Gyujin Kim
84470098d2
fix step count changing on search and btn styling (#5334) 2021-07-26 18:20:17 -07:00
Sam Winslow
7eead50e02
Set 'previousStep' count on first step (#5319) 2021-07-26 11:36:46 -07:00
Marius Andra
535256cf69
Logic tests again (#5234)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-23 23:58:29 +00:00
Alex Gyujin Kim
7b316c6a6a
Fix various histogram release bugs (#5320)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-23 21:57:53 +00:00
Sam Winslow
9d58499f53
Autofill signup form email address from query params (#5321) 2021-07-23 14:30:12 -07:00
Li Yi Yu
3e17b8a4e3
pie chart total sum (#5318) 2021-07-23 12:35:45 -04:00
Neil Kakkar
9630f310d3
Show dropped off users in modal (#5315) 2021-07-23 12:12:29 +00:00
Neil Kakkar
2b3eb62eba
update notification (#5308) 2021-07-23 10:58:22 +00:00
Marius Andra
295d033c22
funnels don't automatically recalculate on postgres (#5306) 2021-07-23 09:12:25 +00:00
Marius Andra
f40ac4b75c
All Users cohort in breakdown filter (#5293)
* Initial stashed work

* fix all users cohort

* fix test

* fix typesscript values

* remove .only

* simplify some nulls
2021-07-23 08:54:59 +00:00
Alex Gyujin Kim
30d3ec4067
Fix various funnels empty state UX postgres (#5304)
* add popover to calculate funnels

* wrong prop

* remove local state

* hide people table if not valid filter

* more accurate comparison

* dirty state alert

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-23 08:43:10 +00:00
Alex Gyujin Kim
7076c4479a
Wrap d3 histogram labels (#5301)
* text label squiggle overlaps begone

* expose formatXTickLabel

* remove console
2021-07-23 09:11:23 +02:00
Li Yi Yu
8fba8cd6f5
Pass in funnel_step_breakdown param for funnels breakdown persons modal (#5289)
* pass in funnel_step_breakdown param for persons modal

* add comment

* allow clicking on drop off part of the funnel bar

* fix funnel persons modal titling

* small fixes

* ellipses man
2021-07-22 22:43:18 +00:00
Sam Winslow
f72b1bc000
Remove funnel step checkboxes, logic, and associated types (#5300)
* Remove checkboxes, logic, and associated types

* array accessing fix
2021-07-23 00:34:29 +02:00
Alex Gyujin Kim
29efee4fe0
Time conversion histogram paint optimization (#5265)
* change color to primary alt

* standardize funnels colors for time conversion

* errant addition
2021-07-22 21:01:40 +00:00
Eric Duong
a9a1e217b3
Only show person modal actions for trends and stickiness (#5297)
* only show actions for trends and stickiness

* combine logic
2021-07-22 19:59:35 +00:00
Sam Winslow
59be866f96
Add FunnelStepTable (#5233)
* add FunnelStepTable with titles

* Finish v1 of table

* hide some info on step 0

* visibility toggles per breakdown in table

* breakdown visibility toggles affect graph

* clean up types and dedupe rowKeys

* clean up styling of leftmost column

* address changes

* use memoized values in bar chart

* fix table overflow styling

* fix persons modal; show only when steps > 1

* show only on Steps view

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-22 19:21:49 +00:00
Marius Andra
771b9a74cf
Enable filter and funnel feature flags (#5282) 2021-07-22 13:40:49 -05:00
Alex Gyujin Kim
f74e079611
default to steps funnel type (#5294) 2021-07-22 18:22:54 +00:00
Li Yi Yu
bb1d920c62
show total sum (#5285) 2021-07-22 18:43:20 +02:00
Sam Winslow
eee1ef0230
Use flex-basis instead of percentage for funnel bar sizing (#5269) 2021-07-22 16:10:16 +00:00
Marius Andra
19d9fcc9ed
Funnel default event (#5280)
* get default event name directly from django

* default event name in the backend

* fix "~/" urls in jest tests

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-22 17:57:41 +02:00
Li Yi Yu
bfb1a001b1
do not allow persons modal opening on dashboard item view (#5286) 2021-07-22 15:45:07 +00:00
Li Yi Yu
d7e4563065
Show funnel empty state on Steps if less than 2 steps (#5284)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-22 15:17:52 +00:00
Marius Andra
9d5dd47ef9
Add PERSISTED_FEATURE_FLAGS env (#5273)
* add PERSIST_FEATURE_FLAGS env

* improve handling of persisted flags

* release three flags

* add missing feature flag constants

* rename to PERSISTED feature flags

* remove flags
2021-07-22 13:12:32 +00:00
Li Yi Yu
9b69a71e6d
Fix persons modal load more people (#5271)
* count display update

* do not reload list of people when loading more people

* Revert "do not reload list of people when loading more people"

This reverts commit eb9ef11690.

* fix flag

* separate initial loading state

* update title with "+", fix person/persons

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-22 13:49:57 +02:00
Alex Gyujin Kim
e1a2420801
Fix funnels time to convert dashboard item height (#5259)
* improve funnel dashboards

* histogram fits dashboard

* cache time conversion results

* fix histograms on dashboard

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-22 09:47:37 +00:00
Marius Andra
4b97398650
Fix Mix - z-index & multiple cohorts in breakdown (#5270)
* improve popup z-index

* fix popup and other antd z-indices

* extract button from component

* can select multiple numbers for breakdown

* taxonomic breakdown supports multiple cohorts
2021-07-22 10:06:11 +02:00
Paolo D'Amico
75d50e30a3
Release new tooltips #4156 (#5267)
* release InsightsTableV2

* release graphs new UI
2021-07-21 22:48:51 +02:00
Paolo D'Amico
326453975b
Update global button styles (#5266) 2021-07-21 13:36:38 -05:00
Paolo D'Amico
700f5bc0b5
Improvements to Persons Modal (#5264) 2021-07-21 13:08:52 -05:00
Li Yi Yu
d4f965d8cf
Unblock funnel persons table for non clickhouse (#5263) 2021-07-21 12:45:08 -05:00
Marius Andra
61ee7e7bbf
Fix feature flag proxy JSON serialization bug (#5257) 2021-07-21 11:46:48 -05:00
Li Yi Yu
4f30c89293
funnel trends doesn't have average time conversion? (#5256) 2021-07-21 16:32:05 +00:00
Marius Andra
802ccf3e47
fix white screen when directly opening funnels (#5258) 2021-07-21 16:22:35 +00:00
Tim Glaser
c442bf9812
Remove Pie as an option for stickiness (#5254) 2021-07-21 16:04:19 +00:00
Li Yi Yu
e899491507
Funnel trends is clickhouse only (#5252)
* funnel trends is clickhouse only

* don't show graph type if there's only one option

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-21 15:32:49 +00:00
Marius Andra
a414250866
Improve funnel dashboards (#5253) 2021-07-21 10:28:34 -05:00
Marius Andra
3764ea22c9
carry event and action filters between tabs (#5250) 2021-07-21 16:27:29 +02:00
Marius Andra
11476f5f0a
More funnel fixes (#5248)
* fix funnel reload bug with changed filters

* remove the type so we could autocomplete feature flag strings

* hide breakdown from time & trends graphs, remove the param when switching to them for safety

* positive check

* clarify arg name

* remove needless flag

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-21 15:55:25 +02:00
Li Yi Yu
bd36c7f82a
Handle persons modal navigation better (#5236)
* handle persons modal navigation better

* clean up excess pesronModal actions/values, move people to loader

* fix person modal not opening on funnels

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-21 15:12:28 +02:00
Paolo D'Amico
6b11dcf7b3
Nail funnels on dashboards (#5228)
* steps with breakdown is already validated

* finally make dashboards render 🙌

* abstract new funnels from FunnelViz component

* refactor basic styles

* post-merge fix

* fix text overflow in event name

* funnels base UI on dashboard

* disable bar tooltip on dashboard

* Revert "disable bar tooltip on dashboard"

This reverts commit 4ba814ff2e.

* fix auto height on dashboards

* colored dashboards support

* full color support

* set layout as a filter param

* save funnel layout on backend

* proper scrolling in dashboards

* restore average conversion time

* only one layout for histograms

* fix bar graph margin that's causing a scrollbar

* fix person modal not opening on funnels

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-21 13:27:32 +02:00
Alex Gyujin Kim
54eefdfb90
Fixes various time conversion bugs (#5243)
* various time conversion bugs

* pass real network "Error"s to endQuery in order to show an error on 500

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-07-21 09:47:34 +00:00
Pankaj Patil
c6080bd6b6
Fix: Funnel drop off user list title is confusing (/buggy?) (#5227)
* Fix:Funnel drop off user list title is confusing (/buggy?)

* Handle Negative Step

* Conditionally Render The String

* Update frontend/src/scenes/funnels/funnelLogic.ts

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* prettier

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-21 10:17:55 +02:00
Eric Duong
9bb66c53bd
Engagement cohorts UI (#4574)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-20 20:49:35 -05:00
Tim Glaser
4e3faae3ee
Change global filters to filters (#5117)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-20 17:48:20 -05:00
Marius Andra
752e331709
Small frontend undefined fixes (#5222)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-20 12:47:55 -05:00
Tim Glaser
f6ed4f9a65
Warn when exiting plugin source edit with changes (#5226) 2021-07-20 12:41:11 -05:00
Li Yi Yu
13cbf9f2a7
Enable persons modal on funnel trends (#5133)
* funnel trends persons call

* hide nonfunctioning funnel graph display options

* undo date year conversion

* avoid forced typing

* clean up and add comment

* use funnel_viz_type param for funnel graphs

* fix funnel_viz_type param router replacement bug

* fix types and potential display param bug

* funnel trends should not be an option for non-clickhouse

* reuse existing filters

* patch white screen death bug

* type predicate

* undo prettier
2021-07-20 13:21:35 -04:00
Sam Winslow
5392aabb23
Hotfix for funnel historical trends & histogram being always hidden (#5224)
* selector for showBarGraph

* use Funnel component
2021-07-20 14:18:13 +00:00
Tim Glaser
9282c9a5f5
Reload actions once one is created (#5219) 2021-07-20 14:11:57 +02:00
Paolo D'Amico
02a09adef1
Funnel improvements IV (#5205) 2021-07-19 19:29:16 -05:00
Alex Gyujin Kim
5b4dd777e1
fix global filters dropdown (#5214) 2021-07-19 22:58:39 +00:00
Alex Gyujin Kim
39303ebf69
Fix no funnel time conversion (#5212)
* remove duplicate timeConversionBins kea value and always end query

* put back isbreakpoint check
2021-07-19 22:55:20 +00:00
Marius Andra
5245ee68ae
New filtering experience (#5189)
* the new filtering experience

* revert bug
2021-07-19 22:28:57 +00:00
Tim Glaser
44a7976c2c
Fix prop values not loading if object (#5213) 2021-07-19 22:01:01 +00:00
Alex Gyujin Kim
2cd5e3b7c6
Disable funnel average conversion time label behind FF and clickhouse check (#5206)
* disable funnel average conversion time label behind FF

* ch check
2021-07-19 20:13:37 +00:00
Alex Gyujin Kim
a3b8a0dbc8
Fix empty states funnel overflow (#5204)
* remove fixed height

* move inline css to scss

* errant deletion
2021-07-19 13:08:31 -07: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
Li Yi Yu
20ed19a23c
Fix person modal loading state (#5190) 2021-07-19 09:05:26 -05:00
Paolo D'Amico
7240a7d2ff
Consolidate funnel feature flags (#5195) 2021-07-19 07:37:20 -05:00
Yakko Majuri
d27f02f4b5
Round funnel steps (#5175)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-17 11:59:49 -05:00
Sam Winslow
10a04fc521
Breakdown UI for Funnels (#5077)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-16 18:50:33 -05:00
Michael Matloka
cfd436a293
Fix capitalization of "UTM Content" (#5185) 2021-07-16 23:54:34 +02:00
Yakko Majuri
0250c645cc
Plugins UI revamp (#5137)
* Plugins UI revamp

* remove unnecessary fragment

* address comments

* update capabilities info wording

* Reword capabilities a bit, fix a typo

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-07-16 12:41:13 -03:00
Li Yi Yu
68030cfa53
Person modal cohort bug updates (#5152)
* update personsModalNew cohort id

* reuse selector
2021-07-16 11:11:24 +02:00
Sam Winslow
1167d68058
coercion to avoid spreading non-iterable instance (#5160) 2021-07-16 10:06:36 +02:00
Paolo D'Amico
1b190e89cf
SSO domain whitelist (#5111) 2021-07-15 18:20:43 -05:00
Alex Gyujin Kim
7a73a0ac77
pluralize and singularize matching session events (#5159) 2021-07-15 14:03:00 -07:00
Alex Gyujin Kim
d98b8afdbc
some kea generated typing (#5158) 2021-07-15 13:42:33 -07:00
Eric Duong
4a4c82415a
better null check for annotations field (#5157) 2021-07-15 16:23:55 -04:00
Sam Winslow
e132d11663
move and rename ANTD_TOOLTIP_PLACEMENTS, set z-index on overlay (#4864)
Co-authored-by: Alex Gyujin Kim <alexgkim205@gmail.com>
2021-07-15 15:17:06 -04:00
Li Yi Yu
cf605deb5e
Fix squished height funnel trends graph (#5155)
* fix squished height funnel trends graph

* remove unused import
2021-07-15 19:04:48 +00:00
Michael Matloka
dc75327140
Move old funnel people to TS and fix look (#5153)
* Move old funnel people to TS and fix look

* Restore `EntityFilterProps`

* Improve `People` return code readability

* Include People component deprecation notice
2021-07-15 18:59:59 +00:00
Paolo D'Amico
75f3682eab
Improve funnels stylings III (#5047) 2021-07-15 13:20:00 -05:00
Paolo D'Amico
dae1d86edb
Explicit org creation in self-hosted (#5108)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-07-15 12:43:34 -05:00
Yakko Majuri
9b997f7215
Plugin metrics tooltip fixes (#5099) 2021-07-15 12:25:47 -05: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
Tim Glaser
ec759c8238
Fix funnel visualisation (#5147) 2021-07-15 12:17:20 +02:00
Alex Gyujin Kim
a5215f76db
make non time conversion graph types visible in self hosted (#5140) 2021-07-15 00:14:43 +00:00
Alex Gyujin Kim
824635b9a1
Funnel Empty States (and other minor empty state touchups) (#5138)
* 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

* better app-wide empty states and funnels histogram empty state

* revert fat finger

* erroneous type

* empty state comments
2021-07-14 16:17:34 -07: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
Li Yi Yu
0721f96352
do not request time to convert funnel if there are less than 2 steps (#5129) 2021-07-14 13:08:37 -04:00
Li Yi Yu
2a15a964e0
Move persons modal logic out of trends (#5092)
* move persons modal logic out of trends

* refactor long action params

* pass filters through actions to decouple trendsLogic from personsModalLogic

* no longer need to preload trendsLogic

* move people loading to persons modal logic

* potential cohort logic id error fix
2021-07-14 09:36:30 -04:00
Yakko Majuri
b1f03b2fd7
update tooltip and metrics drawer z-indexes (#5097)
* update tooltip and metrics drawer z-indexes

* order z-indexes list
2021-07-14 10:21:51 -03:00
Paolo D'Amico
d9cf8b948e
Nuke order column from SessionDetails (#5115) 2021-07-14 10:32:44 +02:00
Li Yi Yu
a5842dca36
Add loading spinner for persons modal (#5105)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-13 22:44:58 +00:00
Michael Matloka
c140a388bd
Disable Logs button for never enabled plugins (#5100) 2021-07-13 14:25:29 +02: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
Paolo D'Amico
ca21d6a32d
Clarify math property aggregator descriptions (#5068)
* Clarify total event count

* extra improvements
2021-07-13 09:53:38 +02:00
Yakko Majuri
c01dc0ccca
Add plugin config required_if and visibile_if (#4998)
* wip

* Add support for plugin config required_if and visibile_if

* update form rules

* update key check

* move from OR to AND operation on deps array

* update scaffold
2021-07-12 15:01:53 -03:00
Eric Duong
e70389fa50
Add null param to funnel breakdown (#5080)
* add null param

* put behind featureflag

* flip
2021-07-12 12:04:53 -04:00
Li Yi Yu
49768d1419
Time conversion histogram (#5050)
* set up funnel histogram option

* connect time conversion bins backend with frontend logic

* typing

* add histogram step change functionality

* clean up a little

* header style updates

* add new color

* update step dropdown select

* move component variables to kea and funnel utility methods into separate file

* adjust graph type selector

* fix colors

* missing commit

* update naming

* remove dupe option

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-12 11:29:42 -04:00
Karl-Aksel Puulmann
ac0ef1b30e
Load session events async on clickhouse (#5056)
* Load session events asynchronously from a separate endpoint

This mirrors the behavior of postgres query

* Simplify backend & query

event_count is unused
don't select unused columns in list query

* Rename filter_by_session_recordings to filter_by_session_recordings

This is more in-line with what the function actually does

* Update types, handle start/end url properly

* start_url / end_url to session result

* Update sessions list builder tests

* Remove some `session.events` references

* Remove unneeded code

* Simplify filteredSessions

* Fix type issue

* Add test for session properties

* Test and fix start_url/end_url

* Add test for the new sessions API endpoint

* Improve types

* Update py types again

* Fix bug
2021-07-12 10:43:40 +03:00
Li Yi Yu
f71b58fca0
fix load more people button color (#5059) 2021-07-09 10:29:54 -04:00
Li Yi Yu
04f74e4a5c
Persons modal style updates (#5040)
* updated styling

* update persons modal styling

* prettier

* expand property details button

* style fixes

* minor fixes
2021-07-09 09:57:21 -04:00
alx-a
db976aa354
Fix inappropriate install instructions for Snippet (#5054)
The current instructions contradict the docs. Instead of "<head>" it should be </head>
2021-07-09 15:26:19 +02:00
Li Yi Yu
ea4f272cee
fix conditional (#5036) 2021-07-08 11:17:12 -05:00
Sam Winslow
e7c669692d
Fixes / improvements to funnel step UI (#5018)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-08 10:43:42 -05:00
Karl-Aksel Puulmann
714697467c
Load action matching event count async (#5027)
* Load action event count asynchronously

This speeds up loading/editing events quite a bit on clickhouse.

Issue: https://github.com/PostHog/posthog/issues/4802

* Add test for /api/action/{id}/count endpoint

* Update code
2021-07-08 15:14:14 +03:00
Alex Gyujin Kim
b24b29d060
Bringing back dashboard item refreshes (#4786)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-07 17:45:15 -05:00
Li Yi Yu
b7c257b434
always show funnel persons table (#5032) 2021-07-07 17:16:54 -04:00
Li Yi Yu
cd696369c4
case switch display fix (#5029) 2021-07-07 11:33:32 -04:00
Tim Glaser
83c48b2f84
Fix direct navigation to graph (#5022) 2021-07-07 10:53:08 +00:00
Kunal
8fc9c90245
Change home default behavior, don't route by default (#5000) 2021-07-07 03:13:47 +02:00
Sam Winslow
ad63386a69
Polyfill Object.fromEntries (for Safari <= 12) (#4999) 2021-07-06 19:47:51 -04:00
Li Yi Yu
90042024a7
Connect funnel persons (#5013)
* connect funnel persons to the frontend

* fixes

* simplify feature flag call and open persons modal on bar click

* persons dropoff call

* move methods to kea and clean up code

* remove unused imports

* round the percentage down

* pass in correct step number

* type fix

* small fixes

* prettier

* clickhouse enabled check

* fix clickhouse enabled check

Co-authored-by: Li Y Yu <liyi@Lis-MacBook-Pro.local>
2021-07-06 13:56:26 -04:00
Tim Glaser
52994907a2
Revert "Connect funnel persons to the frontend (#4953)" (#5012)
This reverts commit 05418cdd89.
2021-07-06 19:24:36 +02:00
Li Yi Yu
05418cdd89
Connect funnel persons to the frontend (#4953)
* connect funnel persons to the frontend

* fixes

* simplify feature flag call and open persons modal on bar click

* persons dropoff call

* move methods to kea and clean up code

* remove unused imports

* round the percentage down

* pass in correct step number

* type fix

* small fixes

* prettier

* clickhouse enabled check

Co-authored-by: Li Y Yu <liyi@Lis-MacBook-Pro.local>
2021-07-06 12:51:36 -04:00
Alex Gyujin Kim
b9c8cf142a
Sessions table bug fixes (#4964)
* sessions table bug fixes

* match event icon tweak

* code quality

* feature flag that expand

* single expand/collapse button

* update UI of matching events

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-06 16:51:22 +02:00
Tim Glaser
2f88176c46
Display empty values correctly (#4913)
* Display empty values correctly

* fix broken test and I

* handle more cases of empty strings / objects

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-06 16:28:07 +02:00
Yakko Majuri
cd5df835b5
Plugin Metrics UI (#4871)
* Plugin Metrics UI

* remove testing code

* update tests

* add feature flag

* fix title

* rename to 1355plugin_metrics

* always refresh
2021-07-06 10:24:21 -03:00
Sam Winslow
a743255fdc
Add horizontally scrolling funnel bar graph & incorporate design changes (#4965)
* Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-06 09:13:22 +02:00
Sam Winslow
660999f7c7
Fix CSS overflow prop on filters (#4994) 2021-07-05 12:45:42 -04:00
Paolo D'Amico
1331ab1679
Add to dashboard button in funnels (#4986) 2021-07-05 11:37:46 +02:00
Alex Gyujin Kim
299a1121a1
Allow session filters to be deeplinked properly (#4983) 2021-07-02 11:38:08 -07: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
Marius Andra
35aface03f
Fix funnel navigation step-merge (#4939)
* fix when new steps in the url get merged with old steps from values (new steps contain actions, old events)

* set default event in funnels

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-01 22:58:15 +00:00
Karl-Aksel Puulmann
a5135c210b
Fix PropertiesVolumeTable issue (#4934)
Sentry:
- https://sentry.io/organizations/posthog/issues/2362813464/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
- https://sentry.io/organizations/posthog/issues/2389010198/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-07-01 11:33:41 +02:00