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

1304 Commits

Author SHA1 Message Date
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
James Greenhill
56ec7e9be7
Closes #1059: Async processing of Event -> Action mapping (#1170)
* Make Async processing of event -> action mappings optional for large installations

* black format python

* Bump frequency for mapping Events -> Actions to hourly

* make the recalculation of action -> events incremental

* just use naive datetime for default start

* add created_at field for events to base incremental event->action mapping off of

* use timezone aware now's

* remove old test for a migration long gone

* use naive date for default start period on calculate_events_for_period

* default old events to created_at null and fix time calculated

* set last calculated when EmptyResultSet

* black format migration

* update migration to not conflict

* consolidate calculate_events functions

* Consolidate logic and handle nulls in created_at gracefully

* add ACTION_EVENT_MAPPING_INTERVAL_MINUTES as env var

* Feedbacked, no env var for calc period and add null=true on event model

* update migrations w/ feedback

* black format migration
2020-07-14 12:36:43 -07: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
Tim Glaser
51d98db499
update logo heroku (#1210) 2020-07-14 16:27:45 +02:00
Michael Matloka
2f3c3d810b
GitHub templates update (#1198)
* Update issue templates

* Adjust pull request template whitespace

* Make "you" in "Thank you" italic
2020-07-13 17:38:11 +02:00
Max Ungless
6aeac8ca82
Catch TemplateDoesNotExist on setup_admin load (#1200) 2020-07-13 16:23:47 +02:00
Michael Matloka
4e1d1e7003
Cohort filters (solves #952) (#1130)
* Update UI for cohort filters

* Change cohort filter interface slightly

In TS notation a cohort filter is: `{
    key: string, // hashtag followed by cohort ID
    value: true,
    type: 'cohort'
}`

* Add server-side support for cohort filters

* Optimize PropertyFilter and change tabs width

* Refactor PropertyFilter for better maintainability

* Fix property of undefined bug

* Fix Select values

* Test API

* Resolve merge conflicts with master

* Prettier JS

* Add search to CohortPaneContents and element attributes

* Make cohort filter property more elegant

The relevant type is now
```TypeScript
interface CohortProperty {
	key: 'id',
	value: number, // cohort ID, e.g. 42
	type: 'cohort'
}
```

* Update and enhance test

* Improve code style
2020-07-13 16:22:16 +02:00
Marius Andra
34939f7e45
Toolbar __posthog state param and JS_URL setting (#1196)
* use "ph_authorize" as an action when loading toolbar

* upgrade to new posthog-js

* add a new setting for JS_URL (webpack HMR path)
2020-07-13 12:21:53 +02:00
Tim Glaser
13293c6c91
Fix docker builds (#1195)
* Copy correct babel file in docker images

* Add babel to docker ignore
2020-07-13 12:01:17 +02:00
Tim Glaser
302d587d78
Copy correct babel file in docker images (#1194) 2020-07-13 11:20:21 +02:00
Marius Andra
904c4c5d17
chore: rename .babelrc (#1184) 2020-07-13 10:36:38 +02:00
Michael Abrahamsen
2fa48d8cd4
fix check for sys.argv[1] (#1192)
- check the length of the list to avoid throwing a list index out of range
- there are times where sys.argv[1] will not exist, for example: using uwsgi to deploy
2020-07-13 10:36:13 +02:00
Eric Duong
9ffa069f7e
Add comprehensive Cypress tests for dashboards (#1171)
* integration tests

* pop last_refresh

* add tests
2020-07-10 13:21:30 -04:00
Eric Duong
9fb2f64cba
Annotations (#1120)
* 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

* 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

* use ref again

* add condition

* another condition

* remove animations

* limit area

* adjust spacing

* condition

* minor fix

* colors

* more patches

* use draggablecancel

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2020-07-10 10:28:15 -04:00
Marius Andra
8eb43925ab
[WIP] Toolbar Updates Episode 5 - The Editor Strikes Back (#1160)
* don't show action labels in normal inspect mode

* fix draggable windows on touch devices (close button didn't work)

* show "click for details" to guide users in toolbar button mode

* show actions tooltip
2020-07-10 15:22:40 +02:00
Marius Andra
ff08e5df58
add webpackbar and tune the setup (#1185) 2020-07-10 13:31:35 +02:00
Eric Duong
30e38c849c
add csrf decorator (#1164) 2020-07-10 11:36:30 +02:00
Kaushik Asp
5eb5633015
Moves total to the bottom of the pie chart (#1179)
* Closes #1140 Moves total to the bottom of the pie chart

* Changes the tag from h2 to h1 as it has no effect

* Adjusts the width, height, and font size to make everything fit on the dasboard card as well
2020-07-09 19:05:26 +02:00
Eric Duong
ddab8c3a0c
1139-Fix regex for event filter (#1168)
* fix regex for event filter

* make regex explicit

* add global flag again
2020-07-09 15:48:02 +02:00
Kaushik Asp
777d9a871f
Allow filtering retention table (#1165)
* Closes #1108 Allows filtering of retention table

* Adds logic to parse properties(filters) from the URL and including the filters while making api request for data

* Adds PropertyFilters component to the rentention table scene

* Adds props that are passed on to the RetentionTable component so that the properties prop is populated

* Fixes failing tests since the person_id wasn't added to the event objects

* Fixes type error for json loads

* Adds frontend and backend test

* Removes print statement
2020-07-09 15:26:47 +02:00
Paolo D'Amico
582ca4eed4
Feat: Billing Message (#1158)
* feat(billing): show message when billing set-up is required

Redirect to Stripe Checkout to set up billing.

* fix(billing): updated copy on billing toolbar
2020-07-08 14:01:19 +02:00
Marius Andra
a256373526
Add Typescript Support (#1157)
* explicitly ignore some linting errors

* add typescript support and fix postcss dev warnings

* convert a few files to ".ts"

* fix return values
2020-07-08 09:45:23 +02:00
Eric Duong
fb10127633
add requirement for password (#1162)
* add regex requirement for input and prompt

* update test with new password restrictions

* fix more tests
2020-07-08 09:44:29 +02:00
Yakko Majuri
37d4b0ead2
Added backend checks to required signup fields (closes #1128) (#1145)
* added checks on input for setup_admin and signup_to_team (#1128)

* added comment about is_input_valid

* minor formatting changes to tests for improved readability

* uncommented cypress/plugins/index.js

* reverting cypress example plugin file to original state

* fixed invalid input tests
2020-07-08 09:41:10 +02:00
Eric Duong
faa0696e32
Dashboard API Tests (#1153)
* add basic tests for dashboard and dashbaord items

* add layouts test

* lint
2020-07-07 14:28:53 +02:00
Eric Duong
f2f4da3ce5
fix deleting dashboard (#1152) 2020-07-06 16:17:11 +02:00