0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

181 Commits

Author SHA1 Message Date
Marius Andra
6eb58ccdb3
Typegen and other Kea upgrades (#4097)
* upgrade kea, kea-typegen, kea-loaders, kea-router

* add correct imports to two logics

* upgrade kea

* upgrade typescript to 4.2.4

* add type

* fix one type
2021-04-26 15:53:50 +02:00
Yakko Majuri
cb175019d8
suppress antd change::: error (#3969)
* suppress antd change::: error

* Fix TS error, bump and dedupe rc-trigger
2021-04-14 14:53:56 +02:00
PostHog bot
63087620f3
Update posthog-js to 1.9.7 (#3933) 2021-04-12 19:44:06 +02:00
Sam Winslow
8fed52dd6f
Resizable table columns in Sessions (#3927)
* add react-resizable

* fixed-width starting sizes on ResizableTable

* responsive utils for resizable table

* resizable table has gradients on scroll

* clean up resizabletable interfaces

* computes grid basis on mount, avoid overflow

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-10 14:52:00 -04:00
Michael Matloka
61feb50865
Enable plugins for everyone (#3557)
* Put Team.plugins_opt_in out of use

* Put Plugins out of BETA

* Add attention-grabbing blip for Plugins in nav

* Add end of Plugins beta banner

* Refactor MenuItem highlighting

* Update Plugins page copy

* Prettier

* Add User.flags field and use it instead of posthog.persistence

* Fix User.flags API

* Update migration

* Update Plugins.tsx

* Roll back extraneous additions

* Roll back more

* Update code ordering
2021-04-07 16:43:41 +02:00
Paolo D'Amico
262e28497c
Fix cypress dependencies (#3881) 2021-04-06 09:21:21 -07:00
PostHog bot
1fe8f7d413
Update posthog-js to 1.9.6 (#3804)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-30 15:45:09 +00:00
Marius Andra
7ed7c4c649
Custom Data Attributes in the toolbar (#3761)
* add `important_data_attributes`

* fix undefined bug

* important data attributes in setup

* add dashes

* remove dead code

* scarier exampe

* support multiple data attributes in the toolbar

* update to simmer that supports wildcards

* rename "important_data_attributes" -> "data_attributes", store as a json array

* update ts blacklist

* another one

* use a tag select for data attributes

* remove needless string serialization

* implement text feedback

* data attribute setup style improvement

* better default handling

* fix out of sync migration
2021-03-30 10:28:57 +02:00
Paolo D'Amico
1bd08a3445
Update react-rrweb-player (#3714) 2021-03-22 11:30:18 +02:00
Tim Glaser
f7dfc7f7e2
Introduce Dayjs (#3490)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-18 10:49:45 -07:00
Paolo D'Amico
e5a0cd518e
Dashboard hotkeys (#3623)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-15 16:10:14 -07:00
PostHog bot
fa5da57d7e
Update posthog-js to 1.9.5 (#3640)
Co-authored-by: Twixes <Twixes@users.noreply.github.com>
2021-03-12 21:35:42 +01:00
Marius Andra
8c98e4f61d
Toolbar Date Filter, remove react-hot-loader, fix dashboard date filter URL (#3586)
* dropdown and datepicker z-index

* remove dead code

* pass getPopupContainer to range picker

* make DateFilter's custom time range work in a shadow root

* close after selecting

* show date filter instead of date range

* skip updating url on date filter change in toolbar

* actually filter the dates

* fix flickering (always show map)

* refactor date filter component

* upgrade to webpack 5 and @posthog/react-rrweb-player module

* disconnect dashboardLogic from dateFilterLogic (remove broken url changes, etc)

* add bundle tracker

* remove react-hot-loader

* Revert "add bundle tracker"

This reverts commit e59bcfa8

* remove bundle tracker

* remove updatePath

* fix code quality complaints

* revert @cypress/webpack-preprocessor version

* try different cypress webpack plugin

* add crypto-browserify

* add crypto-browserify

* revert to webpack 4

* revert to webpack 4

* revert to webpack 4

* implement feedback and remove debug stuff

* move insights date filter logic out of lib/

* rename DateFilterComponent to DateFilter

* rename DateFilterCustom to DateFilterRange

* Remove hot from new code
2021-03-12 14:54:29 +01:00
PostHog bot
57dd3c174e
Update posthog-js to 1.9.1 (#3594)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-10 13:11:52 +01:00
Michael Matloka
6f85e8f580
Gravatar support for user profile picture (#3584)
* Add crypto-js for calculating MD5

* Add Gravatar support to profile picture

* Add title attribute to ProfilePicture img

* Optimize ProfilePicture

* Fix typing

* Show Gravatar in Members list

* Remove style from ProfilePictureProps

* Update title in ProfilePicture img

* Fix TS

* Show Gravatars in Invites

* Remove debug line

* Use nbsp in /.+ (At|By)/ table headers

* Remove user prefix from ProfilePicture props
2021-03-08 14:13:31 +01:00
PostHog bot
1df3f7d927
Update posthog-js to 1.9.0 and @posthog/plugin-server to 0.11.3 (#3565)
* Update posthog-js to 1.9.0

* Update @posthog/plugin-server to 0.11.2

* Update @posthog/plugin-server to 0.11.3

Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-03 12:27:44 +01:00
PostHog bot
a6335483b1
Update posthog-js to 1.8.10 (#3558)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-03-03 00:09:12 +01:00
PostHog bot
696201588d
Update posthog-js to 1.8.9 (#3555)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2021-03-02 16:44:40 +01:00
Karl-Aksel Puulmann
b7bdad90eb
Add test for bar charts (#3474)
* Add test for bar charts

Since our charts are rendered on a canvas we can't really interact well
with it. Instead, we take a screenshot now (new dependency).

* Debug error in CI

* Make sure images are the same size on CI and locally
2021-02-26 16:50:36 +02:00
Tim Glaser
7eeb71ea28
Bump rrweb 0.9.14 (#3361)
* Bump rrweb 0.9.14

* Bump posthog-react-rrweb-player too
2021-02-17 13:04:59 +01:00
Karl-Aksel Puulmann
3a6ffad2be
Fix/replace setTimeout in logics (#3337)
* Update kea to 2.3.2

* Clear timeout before unmount

https://sentry.io/organizations/posthog/issues/2212704003/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d

* Fix old kea ts compatibility issue
2021-02-16 12:44:23 +01:00
Karl-Aksel Puulmann
933aa407d1
Update posthog-js to 1.8.7 (#3310) 2021-02-11 17:02:13 +02:00
Yakko Majuri
5ad265ca18
Add selection option to plugin config (#3229)
* Add selection option to plugin config

* update naming

* bump scaffold version

* add check for choices

* bump plugin scaffold

* wip handle invalid choices

* handle invalid choices

* bump scaffold

* clean up
2021-02-11 12:25:15 +01:00
Karl-Aksel Puulmann
30b6692920
React component tests with cypress (#3233)
* WIP: get cypress something doing

* Get a test running

* Get css loading, stub posthog

* Move helpers to separate file

* Givens > given2

It plays nicer with beforeEach

* Test for session filters

* Test date navigation

* Test filtering

* Try keep old tests running

* Try get tests running under CI

* Prettify fixtures

* Cleanup, use cypress 6

* Add yarn build

* Fix e2e cypress tests

* given2 => givens

* Rename `frontend-test-runner` to `e2e-test-runner`

* Fix cypress test

* Add webpack-preprocessor as a devDependency

* Improve freezing time

* Make css inclusions automatic for component tests
2021-02-09 17:28:01 +02:00
Tim Glaser
0cfdb05ab9
Update posthog-js 1.8.6 (#3219) 2021-02-05 16:35:52 +02:00
Karl-Aksel Puulmann
2a7fa2d15b
Update @sentry/browser (#3199)
I believe this will fix this sentry error: https://sentry.io/organizations/posthog/issues/2017505969/?project=1899813&statsPeriod=14d

From
https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md:

```
5.29.1
[tracing] fix(web-vitals): Fix TTFB capture in Safari (#3106)
```
2021-02-04 23:30:39 +02:00
Paolo D'Amico
de317c8e87
Bulk invite team members (setup section II) (#3143)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-03 13:03:22 +01:00
Karl-Aksel Puulmann
249ae881c4
Onboarding: Create demo data, show demo alert at top, route directly to dashboard (#3103)
* Migration for is_demo

* Populate is_demo when triggered

* Refactor: extract create_demo_team

* Also create ee sample data

* Create demo data if feature flag enabled (and in debug), redirect to root

* Show demo warning

* Solve rease issue

* Redirect to personalization

* Redirect to root

* Update antd to latest, which gives access to Alert action prop

* Update demowarning code

* update tests

* Update naming

* Update link
2021-01-27 12:53:10 +02:00
Karl-Aksel Puulmann
a978b28a68
Run typescript with strict in CI, allow no new errors (#3050)
* Verify no new typescript code breaks "strict" compilation

With this we have a file containing all current errors. As the code
changes, we should not add more errors here.

* remove some lines to show a failure

* Add total count to script

* Update blacklist after rebase

* Remove some fails on purpose.

* Attempt a reorder

* Add missing file

* Update script to write typegen

* Refresh list

* Attempt to use normal tsc

* update blacklist

* Store all errors

* echo for typegen

* Add check command

* typegen 3 times

* typegen 4 times

* typegen 6 times

* typegen 10 times

* remove debug code

* Update kea typegen to latest

* Remove hacks
2021-01-22 16:36:30 +02:00
Karl-Aksel Puulmann
9354b7ce64
Highlight filtered events in events table and in session recording (#2954)
* Highlight rows from sessions which are matched by the filter

* Send start_time of recording to frontend

This helps us calculate offsets a bit better

* Use timestamp by server for date shown

* Load session events via kea logic

* Update rrweb, rrweb-player

* Highlight events user is filtering for in sessions player

* Handle empty case properly

* Add positive test

* Order session recording events in query

* Fix filtering by multiple events with differing names

previously only the first would have been used due to overlapping
params.

* Return all highlighted times as action_filter_times

* Send back ids not timestamps

This avoids weird rounding errors causing issues

* Show skeleton for longer

* update typing

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-01-19 21:16:42 -06:00
Karl-Aksel Puulmann
19c50a2bfe
Sessions filtering system (#2912)
* Refactor adding filtering component

* Fix a type error

* Rename events to entries

This makes much more sense since you can select e.g. actions

* Start of the session filter box

* WIP: Sessions filtering

* Make SelectBox more generic

* Make sessions filtering visuals

* Extract operator value selection code

* Make action properties filterable

* Make it possible to filter by cohorts

* Filtering by events

* Make loading sessions possible with the new logic

* Make it possible to filter by actions/events via backend with new code

Note that it's all relying on old 'paths' - will refactor these later.

* Make it possible to filter by user properties

* Update imports

* Small fixes for sessions filter

* Add UserFilter file

* Ignore extra args to Property

* Make it possile to filter by recording duration

* Update how session duration filter works in the backend

* Rename a few columns

* Remove dead mixins

* Remove duplicated logic, put code behind feature flag

* Move sessions filters logic to subfolder

* Don't show properties if feature flag.

* Add saved filters support

This will require some discussion with Paolo - probably want to show
this on the side?

* Add divider before sessions table

* Narrower typing for recordings

* Some frontend for saving filters

* Small rename

* Add SessionsFilter model

* Save filter on backend

* add missing filter

* Extract const

* Make ActionFilterDropdown be able to pick actions again.

* Fix links from person modal to sessions

* Update tests.

* Fix database model

* Use proper deep equal for detecting active filter

* Remove unneeded field

* Only return filters from correct page

* Add missing data-attr

* Add instrumentation

* rename component

* Fix analytics metadata
2021-01-13 14:55:06 +02:00
Michael Matloka
598aea06b9
Make Jest tests work better with TypeScript (#2558)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-01-12 17:46:59 -06:00
Marius Andra
b70f5b5401
Support nodejs 15 (#2915)
* Support nodejs 15

* Simplify engines.node value

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-01-12 10:43:03 +01:00
Marius Andra
278d709133
posthog-js 1.8.3 (#2913) 2021-01-11 17:38:42 +02:00
Marius Andra
32e557e9ea
update simmer to version without installation warnings (#2896) 2021-01-08 15:14:57 +01:00
Marius Andra
663d853a07
Make funnel steps sortable (#2862)
* Make funnel steps sortable

* sortableElement eats the `index` prop, must pass separately

* properly sort all types of filters

* Lock dragging to Y axis

* Sorting UI improvements (#2888)

* use icon for drag handle

* allow sorting only when there's at least two steps

* add instrumentation

Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-01-08 09:35:12 +01:00
Marius Andra
22ef7cec6f
Custom NPM packages under @posthog (#2854)
* move some packages out of the @mariusandra/ npm namespace

* Fix yarn.lock

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-01-05 14:42:19 +01:00
Paolo D'Amico
febaed2340
Feature flag Papercups (#2799)
* feature flag papercups

* Use @papercups-io/chat-widget instead of weird useEffect hacks

* Rename basicComponents to essentialElements

* Add posthog_domain to Papercups metadata

* Actually rename basicComponents to essentialElements

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-12-16 21:42:32 +01:00
Marius Andra
f3e4cad700
Plugin editor (#2743)
* fix tsc error

* add plugin source, create plugin source version model, add plugin_type

* can create and save source plugins via the api

* make empty source plugins

* message if no config options available

* different image or tag for source plugins

* fix some types

* second drawer

* add fields into drawer

* add monaco editor

* refactor drawer

* save plugin and must be json

* close tab on save

* fix default code

* upgrade to plugin server 0.5.0 - with scheduled plugins

* less height

* upgrade to plugin server 0.5.1 - with posthog.capture

* remove minimap from editor

* upgrade to 0.5.1

* use enum

* reduce quirk

* must enter a name/url

* use the source

* simpler text

* sync image

* add link to docs

* add a link to the documentation inside the source code drawer

* text / ux simplifications

* nicer first plugin experience

* nicer django model choices
2020-12-14 17:11:29 +01:00
Karl-Aksel Puulmann
e1e483ca93
update to posthog-js@1.8.0 (#2749) 2020-12-14 09:15:02 +02:00
Karl-Aksel Puulmann
adb86b17fc
Update to posthog-js@1.8.0.beta-1 (#2740) 2020-12-11 11:45:24 +02:00
Karl-Aksel Puulmann
2758b0c8af
Update posthog-js to 1.7.3-beta.11 (#2713) 2020-12-09 11:34:10 +02:00
Karl-Aksel Puulmann
9167debe6a
Revert "Update posthog-js (#2704)" (#2707)
This reverts commit 60435da32d.
2020-12-08 21:05:28 +02:00
Karl-Aksel Puulmann
60435da32d
Update posthog-js (#2704) 2020-12-08 19:26:22 +02:00
Karl-Aksel Puulmann
f94b15aa94
Support gzip encoding from posthog-js (#2701)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-12-08 10:17:22 -06:00
Michael Matloka
b39dce42cf
Fix webpack-dev-server inside Docker (#2699) 2020-12-08 11:44:39 +01:00
Karl-Aksel Puulmann
02d3c24d3d
Update posthog-js to 1.7.3-beta.9 (#2655) 2020-12-03 16:49:46 +02:00
Karl-Aksel Puulmann
7114e22071
Update posthog-js to 1.7.3-beta.8 (#2653) 2020-12-03 16:01:06 +02:00
Karl-Aksel Puulmann
4656fe82c5
Update posthog-js to 1.7.3-beta.7 (#2652) 2020-12-03 14:56:50 +02:00
Karl-Aksel Puulmann
17c403e5f1
Update posthog-js to 1.7.3-beta.6 (#2623) 2020-12-02 12:14:34 +02:00