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
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
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
Sam Winslow
11a660f3e6
Funnel step querying UI (#4893) 2021-06-30 21:24:51 -04:00
Sam Winslow
c145309d58
Move SortableDragIcon to common icons file (#4951) 2021-06-30 12:30:12 -04:00
Sam Winslow
3fc81bdb42
add custom handle icon && adjust padding (#4944) 2021-06-30 07:51:47 -07:00
Paolo D'Amico
bcfa2b8f37
Feature flags - UI fixes (#4938) 2021-06-30 13:34:38 +02:00
Li Yi Yu
20a0ceabf5
Persons modal filtering (#4839)
* open person link in new tab

* set up filtering for person modal

* leave basic search with fuse

* allow for property filtering

* clean up UI

* linter

* replace fuse with backend querying because of pagination issues

* lint

* cohort test failure fix

* prettier

* fix bug

* do not open new persons tab

* return unique persons

* reuse filter request method for persons modal search

* fix test and linter failures

* isort

* feature flag it

* don't disappoint mypy

* try to separate persons modal logic

* cleanup component and logic code

* try to make types happy

* more type fixing

* fix count bug

* more fixes

* type with session string instead of string

* sanitize url param

* add or session back

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-30 12:25:45 +02:00
Tim Glaser
bb572272ca
Improve e2e flakeyness, skip Insights spec test (#4869)
* attempt to fix toolbar flakyness

* fix dashboard flakyness

* fix flake

* add retries to components

* Try speeding up build by skipping sourcemaps

* debug components

* show errors

* better error

* don't generate source map

* fix errors

* speed up component tests

* Try empty insights page

* Revert "Try empty insights page"

This reverts commit 68701b3804.

* Skip trends tests for now
2021-06-29 22:20:02 +02:00
Li Yi Yu
9f904e5b3d
update local filters on filter delete (#4915) 2021-06-29 08:39:53 -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
Sam Winslow
521d0c6a97
Revert "Quick hotfix of broken frontend" (#4908) 2021-06-29 11:56:35 +00:00
Karl-Aksel Puulmann
8acda53900
Fix typo in tooltip (#4907)
Closes https://github.com/PostHog/posthog/issues/4906
2021-06-29 14:53:14 +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
Marius Andra
0cde0dd291
fix potentially undefined value (#4905) 2021-06-29 13:10:09 +02:00
Marius Andra
46417c4086
Revert "typegen write (#4897)" (#4904)
This reverts commit 59dffc28fe.
2021-06-29 09:01:17 +00:00
Alex Gyujin Kim
59dffc28fe
typegen write (#4897) 2021-06-29 09:28:39 +02:00
Sam Winslow
3d8e23ad80
Funnels: Horizontal stacked graph view, v0.1 (#4878)
* fix indentation

* add FunnelBarViz to enum & ChartFilter dropdown

* Convert FunnelViz to TS && add custom d.ts for FunnelGraph

* type funnelLogic

* some type coercion

* Case-switch to selectively run buildChart

* add FunnelBarGraph: show bars & icons

* Dynamically position percentage label

* Fix NaNs and wrapper sizing

* show dropoff data in footer

* TEMP: disable inspector click-through buttons since logic not ready

* add entry to DashboardItem

* cleanup && fix useEffect dependency array

* useResizeObserver custom hook

* line between funnel steps

* flag for viz: `4535-funnel-bar-viz`

* correct some FF logic

* bugfix switching from Trends -> Steps

* address changes

* cleanup; humanize duration & show on first step
2021-06-28 20:56:33 +02:00
Paolo D'Amico
d354305bd0
Fix funnels on new interface (#4881)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-25 19:20:33 +02:00
Marius Andra
3b603d3448
Enable funnel-trends-1269 for everyone (#4880) 2021-06-25 16:37:50 +02:00
Sam Winslow
90152ce184
Convert FunnelViz to TS (#4872)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-25 10:12:29 -04:00
Marius Andra
11e18c2839
Show session recording durations in sessions list when available (#4853)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-25 10:30:16 +02:00
Sam Winslow
112fc8f75e
Minor refactor: abstract SeriesLetter into SeriesGlyph (#4877) 2021-06-24 23:58:29 +00:00
Paolo D'Amico
50ef5bea19
Remove legacy code for previous insights’ UI (#4852)
* remove legacy vertical tabs

* remove a bunch of more legacy code

* remove crosshair from lifecycle chart

* bring back changes from #4845

* fix trends tests

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 17:14:08 +02:00
Tim Glaser
845117cd8e
Fix people csv download (#4804)
* Fix downloading person CSV in clickhouse

* add properties

* Fix exceptions

* add properties
2021-06-24 17:12:04 +02:00
Alex Gyujin Kim
8121a4d933
Fix and standardize multiple table UI inconsistencies (#4727)
* fix multiple table bugs and standardize table overflows

* support more es2019 functions like Object.fromEntries

* simplify getting active breakout value

* unset maxWidth for resizable cols by default

* fix feature flag key cutoff and empty description bug

* ellipsify feature flag table

* labels or dates or days

* fix bugs; refactor table scroll

* fix double key and increase the width just a bit

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-06-24 17:09:41 +02:00
Marius Andra
4c921aa7be
force some keypresses (#4867) 2021-06-24 16:30:46 +02:00
Li Yi Yu
b759e15f7e
pass in cohort id not name as value (#4866) 2021-06-24 16:21:29 +02:00
Li Yi Yu
dc3caac3b1
fix cohort filter bug (#4861) 2021-06-24 09:15:35 -04: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
4228d99689
prevent undefined error (#4857) 2021-06-23 11:47:56 +02:00
Marius Andra
eb559c8c74
Fix saving paths to dashboard with horizontal UI (#4845)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression

* type PropertyFilter

* fix more types

* correct test account filter type

* fix even more types

* fix issue with updateUser type

* fix issue with updateUser type

* fix issue with filters on paths

* extract "isFilledPropertyFilter" method
2021-06-22 22:35:13 +02:00
Marius Andra
faa105e935
Property filter types (#4843)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression

* type PropertyFilter

* fix more types

* correct test account filter type

* fix even more types

* fix issue with updateUser type

* fix issue with updateUser type
2021-06-22 15:55:52 +02:00
Marius Andra
6396d52074
Plenty-o-types (#4842)
* few more TS conversions

* type IntervalFilter

* type a few dashboard logics

* add chart display types, fix some others

* fix few types

* fix bug uncovered by TS conversion

* fix regression
2021-06-22 15:29:45 +02:00
Yakko Majuri
31f1440a5d
In product $plugins_xxxx docs (#4807)
* In product $plugins_xxxx docs

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Update frontend/src/lib/components/PropertyKeyInfo.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* Fix closing tags

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-22 12:47:38 +02:00
Alex Gyujin Kim
8e30172600
Fix bug where we can't see counts in Insight Table (#4706)
* pass filters through context

* add tests and totalcount prop

* generalize tests

* remove feature flag
2021-06-21 23:21:00 +02:00
Marius Andra
3c691f4f5c
Funnels API GET -> POST|GET - Frontend + Clickhouse (#4789)
* Revert "Revert "[Frontend Change] Funnels API GET -> POST|GET (#4769)" (#4777)"

This reverts commit dab41f0f6a.

* Add POST support to clickhouse funnels

* run funnel tests on clickhouse
2021-06-21 13:13:08 -07:00
Alex Gyujin Kim
631f901ae6
switch copy icon in feat flag table (#4835) 2021-06-21 22:04:27 +02:00
Dimitris Mazarakis
4a7ef81649
Add Auto-Refresh toggle button #1687 (#4773)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-21 16:36:22 +02:00
Tim Glaser
ebe7b47e62
closes #4824 Fix formula (#4825) 2021-06-21 15:14:04 +02:00
Kunal
1679494b6a
Add viewport keys to special prop list (#4796)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-21 08:00:24 +02:00
Li Yi Yu
56ea8042c0
display small yaxis values better (#4808) 2021-06-18 14:15:14 -07:00
Karl-Aksel Puulmann
0f36e7bad1
Include instance realm and version in various events/posthog.people.set calls (#4800)
Related issue: https://github.com/PostHog/company-internal/issues/313

Aside: It's kind of wierd how few person properties we're setting. Is
that intentional?
2021-06-18 23:44:22 +03:00
Michael Matloka
5394533bde
Don't fire webhooks and Zapier in case of PLUGIN_SERVER_ACTION_MATCHING (#4794)
* Don't fire webhooks and Zapier in case of PLUGIN_SERVER_ACTION_MATCHING

* Add PLUGIN_SERVER_ACTION_MATCHING to settings

* Add PLUGIN_SERVER_ACTION_MATCHING to ECS task defs

* Remove leftover print

* Update `AsyncActionMappingNotice`

* Remove stale import
2021-06-18 16:32:29 +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
e8f0f6466c
Fix broken color issue (#4790) 2021-06-18 12:16:20 +02:00
Paolo D'Amico
3185a91835
Fix cypress component tests (#4736)
* Fix cypress component tests

* fix removeEventListener 🤞

Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-06-18 12:08:35 +02:00
Neil Kakkar
4097b7bcf9
New doc links + copy for Plugins in Source Editor (#4755)
* fix merge

* copy update + links

* Proposed updates to #4755 (#4792)

* Reword Plugins header caption a bit

* Update `defaultSource` slightly (functioning `runEveryHour`)

* Update source editor help wording

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-18 11:23:57 +02:00
Kunal
85c90fa8d5
Encode filter search params (#4798)
Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
2021-06-17 14:39:53 -07:00
Tim Glaser
b821b845a6
Remove free clickhouse license (#4788) 2021-06-17 16:47:04 +03:00
Paolo D'Amico
c89f19d616
Improve action creation process for elements (#4759)
* clarify elements in toolbar

* clarify match group page
2021-06-17 13:16:36 +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
Sam Winslow
e737947d35
Use ellipsis for insight titles & make Reset, Save buttons less verbose (#4778)
* Shorten default titles && add tooltips to Reset, Save btns

* Hide tooltip when SaveToDashboard modal shows

* Adjust flexbox && hide btn titles on sm screens
2021-06-16 14:56:18 -07:00
Alex Gyujin Kim
dab41f0f6a
Revert "[Frontend Change] Funnels API GET -> POST|GET (#4769)" (#4777)
This reverts commit bbf7af2920.
2021-06-16 08:45:02 -07:00
Alex Gyujin Kim
bbf7af2920
[Frontend Change] Funnels API GET -> POST|GET (#4769)
* bring back frontend changes from fix/long-funnels-*

* remove whitespace changes

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-16 12:13:10 +02:00
Michael Matloka
a0eff156db
Fix debug bar interactivity (#4762) 2021-06-15 16:43:50 +02:00
Tim Glaser
ab9e7a44d2
Fix broken color issue (#4761) 2021-06-15 15:01:05 +02:00
Neil Kakkar
e6ef9558bb
Populate defaults on creating source plugins (#4688)
* Enable defaults to be populated on edit from source

* rm rm line
2021-06-15 12:03:57 +02:00
Paolo D'Amico
264f96828f
Insights table - New UI (#4700)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-06-15 05:11:08 +02:00
Li Yi Yu
040458f690
reorder chart inner config (#4746) 2021-06-14 18:36:13 -04:00
Marius Andra
8d8b868971
fix toolbar dropdown z-index (#4739) 2021-06-14 19:36:35 +02:00
Marius Andra
7a0593f7cf
Property tags can be undefined (#4738)
* tags can be undefined

* tags can be undefined
2021-06-14 17:00:28 +02:00
Paolo D'Amico
e88e185802
Fix #4578 (#4733)
* Fix #4578

* separate tag colors from chart colors
2021-06-14 15:00:07 +02:00
Paolo D'Amico
0a1eb34129
New tooltips UI #4156 (#4651) 2021-06-14 14:03:34 +02:00
Sam Winslow
399bcc6a21
Refactor PropertyValue to TS (#4686)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-11 14:21:01 -04:00
Eric Duong
f6156c3bd6
Breakdown value display people params (#4640)
* add type

* add test

* use camelCase

* update test
2021-06-11 13:57:03 -04:00
Karl-Aksel Puulmann
aab9f03249
Fixup for api.js experiment (#4708)
Fixes https://sentry.io/organizations/posthog/issues/2448954453/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-06-11 09:18:43 +00:00
Marius Andra
1db9d5d996
Keep toolbar closer to the screen edge (#4684) 2021-06-10 17:54:51 -04:00
Eric Duong
946435a752
Revert "Change funnels API from GET to POST|GET (#4670)" (#4702)
This reverts commit 4a8151bd4e.
2021-06-10 17:03:20 -04:00
Paolo D'Amico
fd24056e20
Fix NPS reporting bug II (#4695)
* Fix NPS metrics

* make logic explicit

* dismissing after answering one question

* fix typo
2021-06-10 11:55:04 -07:00
Tim Glaser
6545648d1e
Fix breakdown value containing event_ (#4692) 2021-06-10 16:44:10 +02:00
Alex Gyujin Kim
4a8151bd4e
Change funnels API from GET to POST|GET (#4670)
* change get to post api

* tests

* fixed bug

* isort

* make funnels endpoint backwards compatible, add test to check this

* descriptive comment

Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro-2.local>
2021-06-10 16:09:30 +02:00
Karl-Aksel Puulmann
e6b1aec81b
Send duration + pathname for failed requests (#4691)
Duration measure/verify a hypothesis - are we seeing some (> 500) errors
due to them taking too long?

Previous full url was useless due to search parameters
2021-06-10 16:02:15 +02:00
Karl-Aksel Puulmann
054ee6e57b
Add reload all dashboard items, fix reloading internal dashboards (#4598)
* Re-add refresh button, respect refresh in API

Also `internal` dashboard always refreshes all.

How it works under the hood - if refresh param is passed, we call cache
updating code before returning the cached results. This bypasses the
need to fetch data from /api/insight and other endpoints which are not
embedding-aware

Mostly solves https://github.com/PostHog/posthog/issues/3609 and
provides a workaround for https://github.com/PostHog/posthog/issues/4587

* Show "last refresh time" in dashboard.

* Remove individual refresh buttons according to TODO

* Add tests

* mypy fix

* fix UI

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-10 15:43:52 +03:00
Alex Gyujin Kim
b2baa5aebc
don't use date range from data points (#4676) 2021-06-10 12:35:22 +02:00
Alex Gyujin Kim
fed96420e5
remove filterlength check (#4672) 2021-06-10 12:29:58 +02:00
Kunal
91dbaaa1da
fix result reporting (#4678)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-06-10 12:23:10 +02:00
Marius Andra
22c1c92595
Disable auto-extending toolbar buttons (#4674) 2021-06-09 20:35:46 -07:00
Alex Gyujin Kim
a64212d3f5
Use trends legend graph everywhere (#4646)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 20:30:51 -07:00
Li Yi Yu
6f6b126f22
Event/property taxonomy frontend (1/3) (#4591)
* split up files and organize code

* set up definition drawer and logic and add tagging

* add change owner selection

* definition description editing working

* definition drawer graph and events table

* remove graph logic for now

* small fixes

* property definition doesn't have an owner

* minor tweaks

* lots of small fixes

* show tags on table, disable editing for posthog events, fix tags autocomplete

* fix font sizes and alignment

* allow event limiting and hide behind feature flag again

* linter things

* test fix

* lint

* clean up events limit

* limitOffsetPagination in events

* ignore type

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 19:45:42 -04:00
Sam Winslow
f6d24270d3
Revert "Fix paths start element selector" (#4668) 2021-06-09 11:25:30 -04:00
Marius Andra
ef2b6acda0
Misc fixes from 4571 (#4658)
* simplify cypress nav menu clicks

* clean unused annotations code

* don't blank all cohorts when deleting one

* add data-test-filters-loading to better target loading indicators in tests
2021-06-09 16:58:34 +02:00
Yakko Majuri
6e650752de
Fix paths start element selector (#4662) 2021-06-09 09:58:16 -03:00
Marius Andra
a9fae11074
App context + persist feature flags + joy (#4652)
* preload user via django

* create django app context

* persist feature flags in localStorage

* add preflight into app context

* return undefined if no context

* keep user as `null`, it'll be overriden before anything renders anyway via `afterMount`

* remove broken and unused user code

* call `registerInstrumentationProps` when preloading `preflight`

* for cypress premium tests: add a search param to opt-out of using the preloaded context, so we could intercept the users api call
2021-06-09 11:08:49 +02:00
Marius Andra
0ce09ce4ee
No login flash (#4642)
* move scene override to sceneLogic to prevent seeing the login screen when logged in

* open the next scene if login has an url

* merge if to avoid bug

* minor comment clarifications

* refactor afterLoginRedirect()

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 10:01:47 +02:00
Sam Winslow
2ad5115ce0
Prevent auto-focused menus from covering controls (#4600)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 16:11:12 -04:00
Alex Gyujin Kim
50e1241049
Revert "Change funnels API from GET to POST (#4602)" (#4645)
This reverts commit b87f79dd41.
2021-06-08 19:08:53 +00:00
Alex Gyujin Kim
b87f79dd41
Change funnels API from GET to POST (#4602)
* change get to post api

* tests

* fixed bug

* isort

Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-06-08 11:20:47 -07:00
Buddy Williams
bdc1ab6c4b
Support funnel trends conversion window (#4618)
* added conversion window in days to funnel trends

* convert floats to ints so that the query doesn't break

* use kea breakpoints instead of debouncing lib

* put conversion input behind ee check
2021-06-08 13:40:05 -04:00
Tim Glaser
82128252f2
Remove annotations from stickiness (#4616)
* Remove annotations from stickiness

* clarify intent behind line

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 16:59:36 +00: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
Sam Winslow
9411a55858
Coerce possibly undefined values in insights filters to [] (#4636) 2021-06-08 10:32:17 -04:00
Marius Andra
3e65af436d
Frontend Models (persistent logic) (#4627)
* move event and property definitions to models, refactor models to import via component if user present

* rename Logic to Model

* add personPropertiesModel

* refactor sessionFilters to use personPropertiesModel

* remove personProperties from inside propertyFilterLogic and use the model

* break ternary

* fix cohort and feature flag tests (for virutalized lists)
2021-06-08 15:16:10 +02:00
Marius Andra
f2744edeb1
Cypress component test fix + style refactor (#4628)
* clean up styles into a folder

* fix cypress helper styles
2021-06-08 14:33:51 +02:00
Marius Andra
99b2f5aea1
Various frontend fixes for App and sceneLogic (#4614)
* remove unused export

* better feature flag logic connection

* hide development overlay until CSS loads

* refactor the way feature flags are loaded for the app

* show a spinner only after a second

* type fix

* simplify active scene

* allow copy/pasting from dev bar

* explain why not to use sceneLogic

* rename file to ts

* create appLogic

* clean up empty component

* remove unused path splitting code (`/url1|/url2`)

* add preflight check to App from AppScene
2021-06-08 10:35:47 +02:00
Sam Winslow
37d061b2c9
hotfix: fix 'cannot read length of undefined' (#4617) 2021-06-08 09:35:34 +02:00
Paolo D'Amico
a0df9b7fe1
NPS adjustment & release (#4623) 2021-06-07 12:42:04 -07:00
Alex Gyujin Kim
cbf98eb6fd
Fix padding bug in popovers (#4619) 2021-06-07 12:21:59 -07:00
Paolo D'Amico
e6968a4f71
Experimental: NPS prompt (#4562)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-07 04:31:01 -07:00
Alex Gyujin Kim
b7b14dd37c
Fix several annotations bugs and improvements (#4610)
* optimize render performance of graph annotations; squash scroll jump bug

* annotations overflow and dedupe bugs

* naming

* remove @ts-ignore and group by day

* convert annotations to typescript

* fix jest path

* one more fix

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-07 11:23:12 +02:00
Karl-Aksel Puulmann
12d70cd80e
Measure erroring API requests on the client (#4612)
Anecdotally I've seen a lot of these requests fail for no good reason
with a 502 error. I have a clue for how to fix this, but first measure!
2021-06-07 11:01:43 +02:00
Alex Gyujin Kim
af969b45be
[Fix] Annotations list not refreshing after creating annotation (#4564)
* Fix list not refreshing after create annotation

* typescript magic and refactor createGlobalAnnotation to loader
2021-06-04 15:24:12 +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
Li Yi Yu
7546e3ea0a
Event properties taxonomy (#4486)
* add description and tag fields to event and property definitions

* set up description and tagging on models

* frontend functionality for description editing

* connect backend and kea logic for description editing

* update event and property definitions model and migration

* delete set null instead of cascade

* migration merge fix

* add owner column

* undo posthog event property taxonomy migrations

* set up definitions on enterprise level

* allow enterprise definitions description editing

* fix licensing conditions and add tests

* proper get and update methods for the multi inheritance table and new column fields for enterprise event model

* check for license to separate routes

* migrate existing definitions to ee definitions tables and render ee vs non-ee definition views based on existing feature conditional

* all the working backend updates

* updated tests

* frontend fixes and linting updates

* feature flag it
2021-06-03 09:22:16 -04:00
Tim Glaser
23fe007d22
add user filter to lifecycle (#4560)
* add user filter to lifecycle

* consistency

* remove docker

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-03 13:31:57 +02:00
Tim Glaser
634b313602
Add OR label to feature flags (#4474)
* Add OR label to feature flags

* fix label in sessions tab

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-01 19:57:29 +02:00
Paolo D'Amico
1b0240d7fa
Insights short share URL (#4513) 2021-06-01 07:18:19 -07:00
Karl-Aksel Puulmann
1dd2d1d7ec
Only send internal metrics from FE is CAPTURE_INTERNAL_METRICS is enabled (#4556)
Housekeeping
2021-06-01 17:17:29 +03:00
Marius Andra
3530bcb2e1
remove local plugins from the "checking for updates" list (#4538)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-01 13:58:19 +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
bab88da39d
Revert "Merge all CSS into one file (#4549)" (#4551)
This reverts commit 604194b03e.
2021-05-31 21:29:09 +00:00
Marius Andra
604194b03e
Merge all CSS into one file (#4549)
EXPECT TO BE REVERSED

* merge all css

* fix toolbar modal

* remove unused css

* fix for toolbar
2021-05-31 23:09:14 +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
Michael Matloka
8ef727634e
Syncing action definition changes with plugin server (#4436)
* Save Organization.available_features as a DB column

* `update_available_features()` before an organization is created too

* Run the task half past the hour

* Adjust tests and fix available_features sync on start

* Improve action and property TS types

* Use plugin server ActionManager pubsub

* Use better pubsub channel names for plugin server ActionManager

* Fix PubSub's lack of teamId

* Use f-strings for property CH SQL formatting
2021-05-31 11:10:36 +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
Karl-Aksel Puulmann
5e25a652f3
Dashboards: allow changing date ranges on /instance/status dashboards (#4496)
* Show more things when embedding dashboard for internal purposes

* Show refresh button for /instance/status dashboard

* Allow logged in users to change date range in /instance/status dashboard

Also sets default

Logged in status is checked in a separate Permissions class
2021-05-30 12:02:38 +03:00
Sam Winslow
545dc62ec6
Hotfix SCSS for trend graphs (#4539)
* hotfix scss for trend graphs

* add dashboarditems

* prod on fire this is fine
2021-05-28 17:44:47 -04:00
Eric Duong
7471ade922
Fixing breakdown bug with retrieving top elements (#4313)
* fixing bug

* conslidate breakdown query

* remove clause

* add missing param

* fix name and bracket

* fix tests add none clause

* fix more tests

* more test adjustments

* add person prop filter test

* only use None when offset is 0 (first query)

* add null check and fix api helper
2021-05-28 10:24:50 -04:00
Paolo D'Amico
4c2365a51a
Bring back "Better experience when no actions are defined"
This reverts commit 48a25608a0.
2021-05-27 15:37:05 -07:00
Kunal
542be62053
Move history import to globals (#4531) 2021-05-27 15:57:31 -04:00
Sam Winslow
5e2a3290da
@ import all scss in lib/components (#4530) 2021-05-27 13:37:39 -04:00
Sam Winslow
4d4fc7c801
Add temporary comment in SelectBox.scss (#4527) 2021-05-27 13:27:32 +00:00
Tim Glaser
48a25608a0
Revert "Better experience when no actions are defined (#4455)" (#4525)
This reverts commit acb30a3de8.
2021-05-27 13:28:04 +02:00
Karl-Aksel Puulmann
4aa773139c
Measure metrics from insights in instance metrics (#4495)
* Send info on insights query timing + route to posthog

This will help with determining the root cause of our problems

* Capture information on "timeouts" correctly

previously every error on insights was reported as a timeout.

* WIP

* Solve typing issues within insightslogic

* WIP part 2

* Add graphs for insight load times

* Add tests for new routes

* PR review iteration

* Make instance_status POST available for all

* Do some cache busting
2021-05-27 12:48:11 +03:00
Paolo D'Amico
f06ff460ed
Adjust click area of copy component in FF (#4487) 2021-05-26 06:41:17 -07:00
Dimitris Mazarakis
da16909b6f
Remove feature flag for hotkeys buttons for insights page and add hot… (#4430)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-26 05:51:30 -07:00
Sam Winslow
acb30a3de8
Better experience when no actions are defined (#4455)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-26 11:40:58 +00:00
Tim Glaser
314d788a41
Remove legacy event_names code (#4480)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-25 17:55:06 -07:00
Calvin
b2407ab280
Fixes #3949 adds csv download function of datapoint on graph (#4175)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-25 17:33:25 -07:00
Joe Saunderson
0332488268
Default new feature switches to enabled (#4482) 2021-05-25 15:07:45 -07:00
Eric Duong
2145d5b211
Return default url if no changes need to be made (#4481)
* return as last conditoin

* empty

* try glob

* remove explicit glob
2021-05-25 16:35:18 -04:00
Michael Matloka
e02748c502
Add GitHub style deletion confirmation UI for projects (#4470)
* Add GitHub style deletion confirmation UI

* Improve edge case handling a bit

* Do #4463 for DeleteProjectModal

Co-authored-by: Joe Saunderson <joe.saunderson@mention-me.com>
2021-05-25 12:12:48 +00:00
Joe Saunderson
0ed05c1226
Add GitHub style deletion confirmation UI for organizations (#4463)
* Add GitHub style deletion confirmation UI

* Improve edge case handling a bit

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-25 14:02:23 +02:00
Karl-Aksel Puulmann
fbce3f5ccd
Avoid showing "dashboard not found" for loading dashboards (#4454)
* Avoid showing "dashboard not found" for loading dashboards

Follow-up to https://github.com/PostHog/posthog/pull/4429

* Fix flaky test

* renaming
2021-05-25 12:48:44 +03:00
Karl-Aksel Puulmann
7b8500fc94
Update signup page free event count (#4465)
Seems like we have not yet updated the copy everywhere - user in slack was confused
2021-05-25 12:29:04 +03:00
Massimiliano Mirra
2ccfeba0ed
use aria label as event title when text is not available (#4432) 2021-05-24 17:54:33 +02:00
Karl-Aksel Puulmann
714d304c0f
Fix bug with date range filters on dashboards (#4445)
Closes https://github.com/PostHog/posthog/issues/4444
2021-05-24 17:25:07 +03:00
Paolo D'Amico
8b8f415664
Compact mode for new insights page (#4443)
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-05-24 07:16:58 -07: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
Sam Winslow
090180816c
Quick hotfix of broken frontend (#4452) 2021-05-21 16:30:14 +00:00
Paolo D'Amico
119565a345
Shadows on insights cards (#4450)
Co-authored-by: Sankalp Sinha <sankalpsinha@Sankalps-iMac.local>
2021-05-21 11:51:30 -04:00
Buddy Williams
b15232a9ef
wip: support test_ api key (#4206)
* wip: support test_ api key

* Renamed test_environment property to

* Added Prod/Test switch to determine which environment to show data for

* moved environment toggle behind feature flag

* corrected key name to standard $ names

* Moved hidden filters to PropertyKeyInfo for improved clarity

* fix typing

* proposed UI

* Renamed  to ; Changed  to a string and added environment const types: production, test; Moved  into a hidden filter along with environment types for the frontend; Corrected tests to use environment constants;  is no longer set by default but only when test_ is supplied in the apiKey or  is manually supplied; Moved environment to navigationLogic;

* Added filter for test environments so that when it's enabled all test environments are filtered out

* Remove component if feature flag for test-environment is enabled

* adjust style of tooltip

* adjust UI based on @corywatilo's input

* implemented toggle functionality

* Made Environments an enum for clarity

* Moved environment constants to constants.py for consistency

* Moved Environments into constants for consistency

* Using parameter destructuring for better syntax

* Make sure type is set as a string

* Removed test filters

* Created _clean_token to ensure test_ is removed from all the places

* Bug fixes for adding filter property so that it work properly

* Show test account filter

* ensure token isn't None so that mypy checks pass

* Corrected css selector syntax

* removed quote since it's not needed

* Corrected cypress test by excluding featureFlag usage on shared dashboard scene

* Fixed test

* corrected syntax style issues

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Buddy Williams <buddy@Buddys-MacBook-Pro.local>
2021-05-21 11:34:07 -04:00
abhijitghate
cffe7d7ea5
added a close X button on the top right corner of the retension modal, added a column header for the table therein (#4325)
Co-authored-by: abhijit <abhijit@openhouse.study>
2021-05-21 10:52:49 +03:00
Karl-Aksel Puulmann
e9f7556af7
Add running & slow queries to instance status dashboards (#4420)
* Allow getting table schema from clickhouse

This will be useful constructing free-form lists for /instance/status
page

* Show PostgreSQL queries in system status page

* Show table with currently running queries

* Show slow queries from the past 6 hours

* Make collapsible sections optional

This way this page even works for non-clickhouse users

* Remove debug code

* Remove more cols from slow log, handle lists

* Extract const
2021-05-21 09:26:01 +03:00
Karl-Aksel Puulmann
c2726b6986
Move instance/status api code under viewSet (#4416)
* Move instance/status api code under viewSet

I will be adding other endpoints, which should live under it rather than
separately

* Fix url

* rename the permission
2021-05-21 08:58:19 +03:00
Michael Matloka
b508a458c7
Size trends in new query UI to be above the fold (#4433) 2021-05-20 19:38:15 -07:00
Karl-Aksel Puulmann
cafd6b3aa9
Fix dashboards list after visiting /instance/status (#4429) 2021-05-20 18:31:28 -04:00
Eric Duong
f734eb9ab0
only explicitly set color if label is pressent (#4427) 2021-05-20 15:26:19 -04:00
Eric Duong
cf6a89ab7f
fix null val (#4425) 2021-05-20 13:32:23 -04:00
Eric Duong
9fbc211b53
Use local state until ready to apply changes on nonmulti-select (#4411)
* use local state until ready to apply changes

* hopefully fix cypress test

* add conditions

* return test

* make logic easier

Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-05-20 09:33:34 -07:00
Tim Glaser
829f0cbb63
Fix breakdown color and selecting numbers (#4401) 2021-05-20 15:45:47 +02:00
Karl-Aksel Puulmann
030529cfb3
Show internal metrics on /instance/status page (#4366)
* Extract function for capture

* Add capability to capture internal metrics

- This is behind an environment variable, we'll turn this on by default
on clickhouse-based installation.
- A special Org/Team gets created for this lazily, which is not accessible for
anyone. This makes avoiding issues with stats/billing/properties and easier.

* Capture some useful metrics into posthog

* Set up an unique constraint for for_internal_metrics organization

This avoids some nasty race conditions

* internal_metrics fixes

* Extract component OverviewTab

* New tabbing system for system status page

* Embed ClickhouseTab

* Generate a dashboard for internal metrics on demand

* More metrics

* Add more internal metrics, add tests

* Fix migration files

* Adjust copy

* Update task definitions

* Fix a typing issue

* Rename a component

* Migration fixup

* Try reset patch after test ends

* Clear lru_cache between tests
2021-05-20 13:42:39 +03:00
Sam Winslow
66538f70d7
Fix copy showing when feature flag is not set (#4400) 2021-05-19 16:15:44 +02:00
Sam Winslow
62b0ba39ea
Custom events for tracking new filter UI interactions (#4367) 2021-05-19 07:30:49 -04:00
Kunal
3317b15e05
move create buttons above recent (#4393)
* move create buttons above recent

* delete ws

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-18 23:12:20 +00:00
Kunal
a60767e003
update column width md screens (#4392)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-18 20:48:35 +00:00
Sam Winslow
4fdb400e9b
Insights UI: Change position of action bar (#4382) 2021-05-18 20:07:21 +00:00
Kunal
6893aa133a
update col size if single element in list (#4390)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-18 19:54:59 +00:00
Kunal
52cb727e8c
update conditional - only show skeleton if both groups are loading (#4386) 2021-05-18 19:37:54 +02:00
Kunal
4dad7d6e39
show dashboard items if there are no recent items (#4385) 2021-05-18 19:18:12 +02:00
Kunal
54a700f37c
Fix/phome height (#4384)
* update height for small screens

* update recent heights

* update widths

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-18 16:37:49 +00:00
Kunal
bc758be9b6
update recent analyses height for small screens (#4383) 2021-05-18 18:18:33 +02:00
Kunal
4415a7f91f
project home v2 (#4374)
* project home v2

* tweak height

* css tweak

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-18 08:21:25 -07:00
Sam Winslow
a82bfe01ae
Insights UI improvements, reorder property value selectors (#4354)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-15 07:43:03 -07:00
Sam Winslow
ea1d031106
Revert "Revert "Improvements to querying experience"" (#4361) 2021-05-15 07:19:37 -07:00
Li Yi Yu
4fe87c35f4
insights title fix (#4363) 2021-05-14 18:35:38 -04:00
Tim Glaser
e8386d9208
Revert "Improvements to querying experience (#4346)" (#4360)
This reverts commit 11501ced86.
2021-05-14 18:56:44 +02:00
Paolo D'Amico
d118d66a52
Refactor SelectBox search logic & add instrumentation (#4336) 2021-05-14 09:25:43 -07:00
Sam Winslow
01304ff3d9
use text input on all non-multi-operator queries (#4334)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-14 16:19:09 +00:00
Paolo D'Amico
11501ced86
Improvements to querying experience (#4346) 2021-05-14 07:09:53 -07:00
Tim Glaser
71b6c861ba
Remove crypto-js in favour of md5 (#4320) 2021-05-14 13:45:09 +02:00
Kunal
2b78060fc4
fix link (#4352) 2021-05-14 04:04:11 +02:00
Li Yi Yu
f4a6dcde9b
Fix dashboard insight loader (#4321)
* fix dashboard insight loader

* flakey e2e

* undo flakey e2e edit
2021-05-13 20:43:35 -04:00
Tim Glaser
1ae890fbe2
1534 configurable columns person events table (#4141)
Co-authored-by: Mohit Gupta <mohitgupta3mail@gmail.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-05-13 14:13:54 -07:00
Tim Glaser
99cdd640d3
Rename is_ee_enabled to is_clickhouse_enabled (#4216)
* Rename is_ee_enabled to is_clickhouse_enabled

* Do frontend as well

* Fix import

* fix
2021-05-13 16:56:54 +02:00
Sam Winslow
594d586fe5
Interval filter UI tweaks (#4319) 2021-05-13 09:58:37 -04:00
Sam Winslow
1df3428f7d
Wrap feature flag key name in CopyToClipboardInline (#4322) 2021-05-12 16:08:52 -04:00
Li Yi Yu
91b6b5f618
Dashboard insight setup (#4308)
* set up dashboard insight scene

* render dashboard insight and allow for description editing

* add type

* remove loader

* copy pasta error
2021-05-12 12:18:28 -04:00
Neil Kakkar
2985bc346f
Update wording for runEvery functions in PluginEditor (#4315)
* Update wording for `runEvery` functions in PluginEditor

There's a distributed lock across plugin servers that ensures only one server gets the task ( https://github.com/PostHog/plugin-server/blob/master/src/main/services/schedule.ts#L43 ), and piscina enqueues the task only once, which ensures only one worker in a server gets it (https://github.com/PostHog/plugin-server/blob/master/src/main/services/schedule.ts#L94-L103)

* minor changes

Co-authored-by: Yakko Majuri <38760734+yakkomajuri@users.noreply.github.com>
2021-05-12 15:06:17 +01:00
Paolo D'Amico
9ddf910764
#4050 query revamp - Final Touches (#4314) 2021-05-12 08:56:51 -04:00
Paolo D'Amico
ebddd25ba5
#4050 insights layouts & misc improvements (#4306) 2021-05-12 03:38:01 -07:00
Sam Winslow
c7b71c4e53
New filtering experience UI enhancements (#4296) 2021-05-11 19:34:47 -07:00
Michael Matloka
63d576a276
Fix empty /personalization due to personalizationLogic error (#4287) 2021-05-11 07:16:58 -07:00
Eric Duong
8c623d3a9a
Match session setting to insight param (#4285)
* match session setting to insight param

* add more param handling

* remove unnecessary changes
2021-05-10 17:03:59 -03:00
Li Yi Yu
b2180412ba
Revert dashboard item view (#4286)
* lint fix

* revert update

* revert everything
2021-05-10 14:11:35 -04:00
Sam Winslow
eb5400a794
Customizability for ResizableTable && styling fixes
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-10 13:01:11 -04:00
Sam Winslow
5c09c820fb
Change event target criteria for outside click (#4290) 2021-05-10 12:34:58 -04:00
Kunal
f9043c2d68
speed up autoplay, scroll more slides (#4261) 2021-05-07 17:50:46 +02:00
Michael Matloka
69669adbb9
Enhance PropertyKeyInfo (#4235)
* Enhance PropertyKeyInfo

* Prepend "Initial " to $initial labels

* Add Brooklyn example for $geoip_ props

* Try improving E2E test quality
2021-05-07 02:26:42 +00:00
Paolo D'Amico
3dac5f5157
Fixes lifecycle & stickiness selecting action/events (#4249) 2021-05-06 19:06:40 -07:00
Marius Andra
c4f8abbdfc
Remove wrap on plugin logs table (#4246)
* remove wrap on plugin logs table

* Implement a real fix by checking if ResizableTableProps.expandable is set

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-05-07 03:46:21 +02:00
Paolo D'Amico
da040fc024
Fix date range component in insights (#4248) 2021-05-06 18:38:29 -07:00
Sam Winslow
209431c6f6
Horizontal UI mobile tweaks (#4245)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-06 18:13:25 -07:00
Sam Winslow
2c7891933d
New Insights query UI, Option B (#4233)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-05-06 17:01:18 -07:00
Tiina
d71e52cbd1
Closes #4218 fix loading overlay blocking chart interactions (#4241) 2021-05-06 16:50:17 -07:00
Paolo D'Amico
79a64bae8e
New querying horizontal UI - continuation (#4239) 2021-05-06 16:32:20 -07:00
Buddy Williams
95bb02de7b
Add commas to large numbers so that they are readable (#4231)
* Add commas to large numbers so that they are readable

* Format numbers in TrendLegend with commas for large numbers so that they are readable
2021-05-06 13:16:37 -04:00
Kunal
5377600dcf
Tally up counts of filters on events and actions (#4214)
* tally up counts of filters + actions

* update comment

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-05-06 14:58:22 +00:00
Michael Matloka
e96f95ef5a
Plugin log entries (#3482)
* Add Postgres model PluginLogEntry

* Add equivalent PluginLogEntry to Kafka+ClickHouse

* Add migration

* Add PluginLogEntry.Type.LOG & make PluginLogEntry.message a TextField

* Update 0130_pluginlogentry.py

* Add PluginLogEntry.instance_id

* Update migration

* Update migration

* Add plugin log entries API

* Test plugin log entries DB fetching

* Add PluginLogs component prototype

* Fix API

* Improve PluginLogs component

* Remove almost unused plugin Feedback button

* Update migration

* Fixed typing

* Fix org permission error test asserts

* Fix plugin log entry tests

* Fix CH plugin log entry timestamp string

* Update CH test_plugin_log_entry.py

* Fix plugin log entry tests across PG/CH

* Satisfy mypy

* Add search and limit to plugin log entry API

* Send team_id in plugin config API

* Rework plugin logs UI

* Add plugin config team ID in tests

* Add plugin config team ID in tests actually

* Fix code quality

* Make logs plugin config-based

* Fix CH queries

* Fix typing

* Improve UX and fix things

* Polish plugin logs logic

* Update migration

* Add Celery task to delete old plugin logs

* Fix UX bug with loading more plugin logs

* Fix missing import

* Remove OrganizationMemberPermissions message change

* Make mypy happy

* Add PluginLogEntry.is_system

* Optimize CH plugin_log_entires PARTITION/ORDER

* Increment migration

* Adjust plugin logs drawer display

* Fix plugin_log_factory_ch

* Fix plugin_log_factory_ch fix

* Replace PluginLogEntry.is_system with source

* Adjust PluginLogEntrySerializer

* Update CH fetch_plugin_log_entries

* Make kea-typegen happy
2021-05-06 10:54:32 +03:00