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

530 Commits

Author SHA1 Message Date
Eric Duong
9cc2a46bfe
Poll funnels (#1366)
* working poll funnels

* remove packages

* update test to use polling

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

* Update notice and use TypeScript

* Use "newest" everywhere
2020-08-10 12:40:50 +02:00
Michael Matloka
85fe3b9a62
Add DEBUG overlay bar (#1378)
* Add DEBUG overlay bar

* Add z-index

* Implement a tricolor bottom bar

* Add close button and replaced version with git branch

* Improve responsiveness

* Remove extra span opening tag
2020-08-10 12:39:22 +02:00
Eric Duong
249ec347c3
Revert "Insight history (#1303)" (#1363)
This reverts commit 4166e96364.
2020-08-05 17:00:56 +02:00
Eric Duong
4166e96364
Insight history (#1303)
* add insight history

* add table

* edit format

* links working

* add modal

* add tab switch

* saving insights

* remove insights model

* no model for insight history

* initial working

* remove wrong typegen

* made the history per user

* missing param

* added funnel support

* add details

* add delete saved insight functionality

* add line break logic and funnel name

* fix reload logic

* fix rendering error

* add pagination component

* fix bugs

* add backend tests

* add insight-history-panel check

* add drawer and replace table

* add loading next

* add date

* add callback

* update test

* use table

* fix spacing

* fix rows

* adjust spacing

* fix spacing and styling

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

* Improve close button UX

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

* remove posthog-js yalc package regression

* add types to toolbar react components

* logout when closing the toolbar

* reset users's temporary token when logging out

* test for resetting the temporary token

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

* Remove old hedgehog from network error page
2020-08-03 20:14:50 +02:00
Marius Andra
7439577aa9
Toolbar Action link to PostHog after save (#1313)
* set up react-toastify with toolbar

* show links to actions/insights when adding action
2020-08-03 20:03:22 +02:00
Eric Duong
bc7f12cb95
save properties on switch (#1302) 2020-07-30 19:48:52 +02:00
Tim Glaser
7d8bfbba21
By default create annotations globally (#1296)
* By default create annotations globally

* add condition explicitly to checkbox

* fix bug wherre global was being recreated

* fix toParams function

Co-authored-by: Eric <eeoneric@gmail.com>
2020-07-30 19:24:13 +02:00
Marius Andra
cf98e8ba35
Toolbar Typings (#1306)
* update to kea-typegen that runs through prettier

* remove posthog-js yalc package regression

* add types to toolbar

* add react-dom and react-redux types

* add types to toolbar react components

* convert a lot of components to typescript

* convert more components to typescript

* fix error

* actions return void

* clean up other Type.ts files as well

* fix last untyped files

* upgrade kea, fix webpack config entrypoint

* add stricter typechecking

* add types for a few more files

* fix bug with nth_child selectors (introduced in this PR, now fixed)

* fix one more type
2020-07-30 19:16:59 +02:00
Eric Duong
8d92f9897d
add override (#1298) 2020-07-30 11:17:34 +02:00
Eric Duong
7dc4e2e45f
Consolidate features (#1265)
* bring retention table and paths to trends page, refactor tabs

* fix filters

* remove add dashboard item

* add funnel to insights

* add funnel to insights

* add url handling

* add people table to funnel insight

* chart filters

* funnels date filter working

* add comments

* prop and date filters working

* fix default states

* add types for dashboard visualizations

* save funnel

* dashboard items working

* reformat tabs

* fix links

* fix tests

* fix tests

* add missing labels

* change trends to insights

* fix funnel filtering

* add test

* add clear funnel ability
2020-07-29 17:51:49 +02:00
Marius Andra
f2b8d54ee5
Kea TypeGen 0.0.31 (#1297)
* update to kea-typegen that runs through prettier

* update logic type files

* remove posthog-js yalc package regression

* upgrade to 0.0.32 that fixes error with string literals in defaults

* prettier wants to reformat things
2020-07-29 11:21:00 +02:00
Eric Duong
1efc1d8a90
fix gutter condition and global loading (#1291) 2020-07-28 22:35:46 +02:00
Marius Andra
3f47ad2d0c
Kea TypeGen (#1286)
* update typescript eslint config / fix tsconfig.json path bug

* add kea-typegen and UserType

* kea-typegen first run, add types to userLogic
2020-07-28 22:25:24 +02:00
Eric Duong
ebc0e9af38
prevent refresh when no property is added (#1285) 2020-07-28 22:18:23 +02:00
Eric Duong
5bf1fbedef
Fix timestamp on session list (#1294)
* make types consistent

* fix dates

* clear load more when changing dates
2020-07-28 22:15:35 +02:00
Michael Matloka
b75a46d5d7
Team management resolved (closes #260) (#1274)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-07-24 11:59:22 +02:00
Tim Glaser
a7bc824d19
Fix funnel loading on dashboards (#1266)
* Fix funnel loading on dashboards

* Fix adding funnels
2020-07-23 13:51:25 +02:00
Tim Glaser
31f3185776
Closes #1020 WIP shared dashboards (#1071)
* add test for caching funnels and refreshing

* Closes #1020 WIP shared dashboards

* Make webpack work

* Progress?

* Hash the entire filter and add share tokens

* Make webpack work properly

* Fix sentry error

* Tighten up the caching logic

* Correctly refresh items and show in frontend'

* Add some padding

* fix caching, update layout

* Add cypress tests

* Fix merge conflict mistake

* Convert share_token to boolean

* Hide text when small

* Redo tooltip for lock

* Remove move cursor when in shared mode

* Improve spacing

* Fix state being incorrect

* Use selectors instead of value

* Use const instead of let

* Fix type errors et al

* Increase cache size

* Fix dashboard tests

* Fix team tests

* Add wait time

* Fix tests

* Fix refreshing

* Fix dashboard tests

* Fix test

* Excluded deleted dashboard items and don't show refreshing

* Fix renaming issue

* Fix migrations and fix display of status change

* Use grid for responsive header

* Don't load annotations

* Eslint

* Fix variable naming

Co-authored-by: Eric <eeoneric@gmail.com>
2020-07-23 10:41:59 +02:00
Eric Duong
d7fe71f083
1247 annotations crud (#1258)
* working table

* add modal

* continue adding to modal

* added function to create global annotation

* format

* test commit

* add precommit

* add update function

* crud working

* add type

* fix tests

* add next

* add prompt

* tests
2020-07-22 12:25:54 +02:00
Eric Duong
2cd1f606f2
Retention entity selection (#1234)
* frontend

* inital working

* add action ability

* add type

* add test

* add label

* fix test

* Show 0.0% if started out with 0 users

* Make Retention UI in line with the rest of PostHog

Co-authored-by: Twixes <dev@twixes.com>
2020-07-21 14:11:25 -04:00
Michael Matloka
4fe9b3c0ad
Aggregate functions on Trends (closes #1193) (#1217)
* Update entityFilterLogic for filter.math_property

* Add new math types and math_property to ActionFilterRow

* Add backend support for new math types

* Update data-attrs

* Add dropdown Cy test

* Add API tests

* Improve process_math style

* Add resiliency to non-number property value occurences

* Annotate for clarity

* Update UI text

* Update UI text a bit more

* Reword tooltip

* Update UI slightly

* Update capitalization

* Improve internal style

* Improve code style

* Filter out property `token`

* Utilize formatted string

* Don't show empty dropdown contents

* Add event_properties_numerical for the future

* Fix dropdown button title
2020-07-21 16:18:11 +02:00
Michael Matloka
d7a77da20f
Add regex matching to actions and filters (closes #1150) (#1231)
* Add regex matching option to New Action screen

* Support Action regex matching in the rest of UI

* Add backend support for Action regex matching

* Add regex matching to filters

* Update UI text

* Update PropertyFilter column sizes

* Add not_regex

* Add backend tests

* Fix bug
2020-07-21 15:11:12 +02:00
Tim Glaser
473e4ddac1
Cut of UUID in table on smaller screens rather than wrap (#1255) 2020-07-21 11:46:44 +02:00
Marius Andra
021531c121
Toolbar Instrumentation (& posthog-js-lite) (#1206)
* more packages

* add instrumentation for toolbar

* Remove committed code

Co-authored-by: Tim Glaser <tim.glaser@hiberly.com>
2020-07-21 11:35:52 +02:00
Sandeep Guptan
d9fe0cd214
Date interval enhancement (#1253)
* added modification to date selection as per the issue for automation selection

* added modification to date selection as per the issue for automation selection
2020-07-20 19:27:09 +02:00
Eric Duong
5003c0b92c
Add interval selection to sessions (#1241)
* add interval selection to sessions

* fix error with session logic
2020-07-20 19:03:00 +02:00
Eric Duong
de50908c4d
Add button to dashboard that allows users to easily add item (#1242)
* add button to dashboard that allows users to easily add item

* Fix "card undefined" className bug

* Fix card margins

* Clean up code style

Co-authored-by: Twixes <dev@twixes.com>
2020-07-20 09:24:16 -04:00
Sandeep Guptan
25d9f8700c
enhanced ctrl + click new tab opening feature (#1248)
* enhanced ctrl + click new tab opening feature

* worked on review changes reverted and fixed over link.js component

* add return method for ctrl click and command click
2020-07-20 12:22:11 +02:00
Michael Matloka
3c65dbb3c8
Fix retentionTableLogic (#1243) 2020-07-18 01:43:03 +02:00
Marius Andra
5623551b04
Launch toolbar (#1186)
Co-authored-by: Twixes <dev@twixes.com>
2020-07-17 19:57:42 +02:00
Eric Duong
0d93ccf883
Add people breakdown on retention (#1202)
* use pandas to intercept unique ids

* add people breakdown

* update test

* add people

* remove people tests

* ranked people

* fixed filtering

* people working again

* people paginate on retention working

* fixed sorting

* fix types

* .

* add message for no users

* make lowercase

* remove unnecessary action

* make sure something is always returned

* Add period and update button capitalization

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-07-17 11:26:22 -04:00
Max Ungless
66d9aef47b
Fix line charts and make them straight (closes #1218) (#1238)
* Lines now straight in LineGraphs

* Resolve #1218

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-07-17 16:31:40 +02:00
Eric Duong
5960d95b6b
Add funnel interaction time per step (#1190)
* add funnel interaction time per step

* 0 check

* fix typing

* add days to datetime util
2020-07-17 13:04:09 +02:00
abhijitghate
5875df25f5
Closes #609 adds text DAU or Total next to event (#1201)
* Closes #609 adds text DAU or Total next to event

* Closes #609 Updated PR

* Removed console log statement
2020-07-16 09:42:54 -04:00
Michael Matloka
01c237015b
Refined toolbar styles (#1226)
* Refine shadows

* Set font weight

* Fix background override

* Set .toolbar-block color to avoid inheritance

* Improve body background check

* Update label style

* Put circle-label style in the right place
2020-07-16 15:22:06 +02:00
Eric Duong
742912f2f1
Global annotations (#1173)
* draw a vertical line

* some annotation

* progress

* progress on logic and mouse events

* popover aligned

* comment popup working

* fix spacing

* add model

* annotation endpoint

* initial working

* frontend create dashbaord item with annotations working/ modified model

* remove plugin

* add sizing hook

* fully working basic implementation

* style the notes

* annotations delete

* annotations base complete

* tweaking spacing and styling

* enforce input limit

* format

* add margin

* restrict deletes to proper users

* modify styling

* add api tests

* add error boundary to graph

* fix code comments

* fix lint

* fix how name is determined

* nit

* refactor into logic

* ux fixes

* colors

* inting errors

* fix dashbaord test

* remove hardcoded test

* fix linting again

* remove autofocus

* add dynamic spacing for annotations and fix margins

* more patches

* disable annotations on compared graph

* code fixes

* fix mouseover detail

* add patch

* initial working

* add control for mousedown

* add condition

* add escape key functionality

* refine boundary recalculation condition

* missing call

* fix dragging listener

* some refactoring and add control for dragging/popup

* better control when clustered

* one more tweak

* fixed bug

* use ref again

* add condition

* add util

* another condition

* add delete

* delete working

* remove animations

* limit area

* adjust spacing

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-07-16 09:12:21 -04:00
Eric Duong
932e200555
Make sessions load (#1221)
* remove premature evaluation

* fix test

* add one null fix

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-07-16 09:12:03 -04:00
Michael Matloka
487a44289e
Patch small issue with default Add filter tab (#1228) 2020-07-16 14:47:51 +02:00
Michael Matloka
0e88fc5f0a
Fix Add filter tabs (#1225) 2020-07-16 13:42:01 +02:00
Michael Matloka
a2a90825a2
Possibly fix issue with switching to Cohort tab (#1224) 2020-07-16 12:51:15 +02:00
Marius Andra
493dcc0338
Make "new version" less threatening (#1216) 2020-07-15 14:49:12 -04:00
Eric Duong
6af4a6bf5d
fixed filtering (#1214) 2020-07-15 13:25:11 +02:00
Marius Andra
fc1befb12e
Dashboard pie label (#1211)
* pass dashboard item size to css classname

* label with variable font size for pie chart

* adjust font size in trends page
2020-07-14 16:41:48 +02:00