0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
Commit Graph

1229 Commits

Author SHA1 Message Date
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
Marius Andra
9265ba21d1
LOCAL_HTTPS support (with HMR) through ngrok and JS_URL (#1290) 2020-07-28 22:23:44 +02:00
Marius Andra
efcfad4227
Lessen the REDIS warning (it's there since 1.1.0), add warning if running with DEBUG=1 (#1288) 2020-07-28 22:20:16 +02:00
Michael Matloka
4ebca38d53
Sort imports with isort (#1272)
* Add and configure isort

* isort all the things!

* Use local black and isort, and include json in prettier

* Remove erroneous import

* Delete isort.cfg and add isort options to lint-staged

* isort all the things! (with Black-compatibile options)
2020-07-28 22:19:33 +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
Eric Duong
c281ec43bf
add null condition (#1293) 2020-07-28 20:41:24 +02:00
Eric Duong
d0419fdd81
fix team test (#1287) 2020-07-28 15:53: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
Max Ungless
d607c04394
Fixed naive datetime warning (#1262) 2020-07-23 15:19:05 +02:00
Eric Duong
051ddc9f70
Fix 48hour daily bug (#1264)
* fixed bug and added test

* fix types
2020-07-23 15:18:17 +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
0274a2657c
Filter person on distinct id (#1267) 2020-07-23 13:13:30 +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
Michael Matloka
35e70f8544
Make GH templates better (#1263)
* Remove useless list of changes stub

* Add PR template Changes placeholder

* Update issue templates

* Love squashing bugs
2020-07-22 11:35:32 +02:00
Max Ungless
6e6a1e4d71
"All time" date filter on Funnels fixed (#1252)
* "All time" date filter on Funnels fixed

* Fixed improper output

* Added tests for date_filter_Q function incl. by 'all'
2020-07-22 11:33:55 +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
Michael Matloka
5551a2f9fe
Update posthog-js to 1.3.5 (#1260)
* Update posthog-js to 1.3.5

* Update lockfile
2020-07-21 13:26:08 +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
James Hawkins
82b6acccd5
Update README.md (#1259)
couple of tiny typos
2020-07-21 11:35:20 +02:00
Yakko Majuri
a067b820b3
Close #1256: Add 80:8000 compose port mapping (#1257) 2020-07-20 21:41:43 +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
Max Ungless
e901fdf890
Added Github Action to create and deploy DigitalOcean images (#1232) 2020-07-17 08:55:46 -07: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
Tim Glaser
07b886c090
Release 1.11.0 (#1239)
* Changelog 1.11.0

* Bump version 1.11.0
2020-07-17 16:57:05 +02: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
Tim Mustafin
5274cc047f
Closes #1177 N+1 queries when loading live actions (#1182)
* Closes #1177 N+1 queries when loading live actions

* move filtering to prefetch_related

* fix typo
2020-07-17 13:13:09 +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
Michael Matloka
67a2acf757
Fix password validation and improve minimums notice (closes #1197) (#1204)
* Fix password validation and improve minimums notice

* Update whitespace
2020-07-17 12:58:09 +02:00
Tim Mustafin
949bac6245
Closes #1180 worker fails if timestamp is invalid (#1181) 2020-07-17 12:53:22 +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