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

516 Commits

Author SHA1 Message Date
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
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
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
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
Michał Matłoka
93aebb9e7b
Update prettier to 2.0.x (#1143)
* Update prettier devDependency to 2.0.x

* Format with prettier 2.0.5

* Update yarn.lock
2020-07-03 14:37:07 +02:00
Eric Duong
6ccc38b11e
Add flutter docs and reorder flow (#1134)
* add flutter docs and reorient flow

* make consistent

* fix tests
2020-07-02 10:56:22 -04:00
Tim Glaser
9a22495e5e
Update logo (#1111)
* Update logo in app

* Update favicons
2020-07-01 16:12:38 +02:00
Marius Andra
c751085cfd
Toolbar Updates - Episode 4 (A New Hope) (#1125)
* max-height for the floating windows

* authenticate text alignment

* drag only from the main toolbar button

* fix key errors

* support searching by text

* fade above the heatmap

* keep dock on top

* max height for toolbar block

* put all of the "stats" tab in a block that can scroll

* fix heatmap style

* if I can't `position:fixed` this dock, then let's at least make it animate smoothly

* add link to issue to provide feedback during the beta program
2020-07-01 16:05:02 +02:00
Marius Andra
8a9d7f620a
Toolbar Updates - Episode 3 (#1105)
* fix tab alignment

* fix button float color

* default color in float mode

* long press extends the toolbar

* add new logo

* also add logo without text

* add window values plugin

* refactor utils

* support x,y coords in circle

* show toolbar button in new style

* remove float mode

* draging doesn't trigger click

* improve rotation

* improve heatmap number

* position of the close button

* "dock" icons to button

* clarify my choice

* show heatmap in a window

* show heatmap with a border

* use new icons

* open actions tab

* remove unused prop

* move Fade into lib/components

* animate with fire

* fix heatmap icon bug

* don't show X, new stats icon

* heatmap window title

* dock and close also shrink

* flag animation and loading for actions

* dock actions to button when enabled

* actions window

* open actions in button window

* colors for indicators

* close buttons

* inspect X

* add stats view with info

* new icons for close & dock

* add/edit actions in button mode

* color code the different elements in select element view
2020-06-30 12:57:02 +02:00