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

186 Commits

Author SHA1 Message Date
Marius Andra
14e3eb6ddf
Remove non null assertions (#4862)
* upgrade typegen

* remove non-null assertions

* fix small type bug

* fix sessions ts errors
2021-06-24 10:00:59 +02:00
Li Yi Yu
24fd3a54ff
Event definition drawer properties (#4722)
* wrap css classnames and allow for property definition filtering

* event properties section

* properties stats table and object tag functionality

* property descriptions and save all descriptions button

* fix description editing on the table

* fix test failures

* debouncing input is weird

* split up components

* refactor definition drawer kea file

* drawer should only open for taxonomy feature users

* lint errors

* prettier

* property definition filter backend test

* fix test

* populate test with definitions..

* clean up

* clean up property drawer interactions

* fix everything but scroll top issue

* test scroll issue

* table state wip

* update logic after typegen

* prevent undefined error

* only make the clickable rows clickable, not the entire table

* upgrade typegen and fix error with feature flags

* move to reducers and rename action

* update blacklist

* fix event properties description bug

* update typegen once more

* fix editing for events table

* fix editing for properties table

* add script to clean typegen

* update ts blacklist

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 09:00:59 +02:00
Marius Andra
cd94d2d464
Kea-typegen auto-import (#4801)
* fix a lot of types

* fix another bunch of types

* update typegen to beta, patch last types

* fix introduced bug

* fix a few errors

* update ts blacklist
2021-06-18 12:22:10 +02:00
dependabot[bot]
5249fff5c4
Bump postcss from 7.0.35 to 7.0.36 (#4784)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 18:42:49 +02:00
Paolo D'Amico
65500612dc
Tooltips improvements III (#4751)
* adjust tooltip position

* fix crosshair snap

* allow clicking the correct datapoint

* optimize InsightTooltip

* fix no background colors in bar value chart

* fix positioning for bar value chart

* fix display on bar value charts with breakdown

* use custom chart.js

* add slight animation to tooltip position

* use posthog chartjs with "nearestX" mode

* update to a unborked @posthog/chart.js

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-17 12:06:55 +02:00
PostHog bot
fc08c4e9f3
Update posthog-js to 1.11.3 (#4729) 2021-06-14 11:45:35 +02:00
Sam Winslow
902eb77396
Base tooltips refactor (#4529)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-08 09:18:23 -07:00
PostHog bot
b4e0574616
Update posthog-js to 1.11.2 (#4620) 2021-06-07 17:53:20 +02:00
dependabot[bot]
52fc3f5072
Bump ws from 6.2.1 to 6.2.2 (#4609)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-07 13:48:50 +02:00
PostHog bot
8b4d248849
Update posthog-js to 1.11.1 (#4601) 2021-06-04 18:17:44 +02:00
Joe Martin
0e0077fb2c
Update-Papercups-Greeting (#4584)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-03 09:25:56 -07:00
dependabot[bot]
79d7d999a0
Bump dns-packet from 1.3.1 to 1.3.4 (#4540)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 12:22:55 +02:00
PostHog bot
28eab6aefa
Update posthog-js to 1.11.0 (#4569) 2021-06-02 13:54:35 +02:00
Marius Andra
f7a42020b3
Plugin editor types (#4468)
* add @posthog/plugin-scaffold type to plugin editor, simplify plugin

* make functions async

* have same config type as config json

* ignore raw-loader ts errors

* remove monaco webpack plugin

* Add example `console.log` to `onEvent`

* Escape backticks inside backticks

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-01 13:19:38 +02:00
Marius Andra
5017bf1c08
Fix deduplicated SCSS issue (#4545)
* Revert "Hotfix SCSS for trend graphs (#4539)"

This reverts commit 545dc62ec6.

* Revert "Move history import to globals (#4531)"

This reverts commit 542be62053.

* Revert "@ import all scss in lib/components (#4530)"

This reverts commit 5e2a3290da.

* fix deduplicated css problem

* update lockfile
2021-05-31 19:13:50 +02:00
Marius Andra
9314dd47c1
Redefined shadow variable fixes (#4544) 2021-05-31 13:17:53 +02:00
Marius Andra
67379edb81
kea-typegen 0.7.2 & fix random errors (#4542)
* kea-typegen 0.7.1

* kea-typegen 0.7.2

* fix history ViewType

* fix key errors

* fix rrweb import error
2021-05-31 10:40:54 +02:00
dependabot[bot]
0df6b359cf
Bump browserslist from 4.14.6 to 4.16.6 (#4493)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.6 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.6...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 21:23:15 +02:00
PostHog bot
b078a200f9
Update posthog-js to 1.10.2 (#4472) 2021-05-25 14:23:17 +02:00
PostHog bot
96ad1fa5e0
Update posthog-js to 1.10.1 (#4466) 2021-05-25 12:43:25 +02:00
Tim Glaser
a392e8ec0c
Upgrade rrweb fork (#4442)
* Upgrade rrweb fork

* Use @posthog/rrweb and upgrade react-rrweb-player
2021-05-24 15:31:57 +02:00
dependabot[bot]
4965b5a960
Bump hosted-git-info from 2.8.8 to 2.8.9 (#4311)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-19 10:48:50 +02:00
Tim Glaser
71b6c861ba
Remove crypto-js in favour of md5 (#4320) 2021-05-14 13:45:09 +02:00
PostHog bot
ceba1787c8
Update posthog-js to 1.10.0 (#4252) 2021-05-07 08:07:23 +02:00
dependabot[bot]
e181ff8995
Bump ssri from 6.0.1 to 6.0.2 (#4183)
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 13:20:08 -07:00
Sam Winslow
965deb2cb2
Convert regex filter select to input with autocomplete (#4170) 2021-04-30 11:27:20 -04:00
Eric Duong
3b06eec925
Virtualize action filter (#4143)
* single list

* working virtualized list

* fix sessions data

* add search
2021-04-29 11:56:20 -04:00
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
Sam Winslow
ef0dace2aa
update caniuse-lite to 1.0.30001211 (#4040) 2021-04-20 10:46:23 -04: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
Paolo D'Amico
262e28497c
Fix cypress dependencies (#3881) 2021-04-06 09:21:21 -07:00
dependabot[bot]
97985695ea
Bump y18n from 4.0.0 to 4.0.1 (#3827)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-01 15:31:01 +02: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