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

19 Commits

Author SHA1 Message Date
Paolo D'Amico
02a09adef1
Funnel improvements IV (#5205) 2021-07-19 19:29:16 -05:00
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
Sam Winslow
386f308783
Reorganize files in frontend/src/scenes/insights/ (#4207) 2021-05-04 20:28:54 +02:00
Paolo D'Amico
a7352b4105
Revert "Revert "Continuation - Frontend - Refactor event & properties for async server-side loading (#4078)" (#4092)" (#4093)
This reverts commit d67ab843f1.
2021-04-23 17:13:50 -07:00
Paolo D'Amico
d67ab843f1
Revert "Continuation - Frontend - Refactor event & properties for async server-side loading (#4078)" (#4092)
This reverts commit bf2c774b1e.
2021-04-23 15:59:27 +00:00
Paolo D'Amico
bf2c774b1e
Continuation - Frontend - Refactor event & properties for async server-side loading (#4078)
* now we remove event & properties from team serializer

* random checkpoint

* checkpoint

* loads paginated event definitions

* EventsVolumeTable

* event & properties tables

* update all relevant components

* fixes all typescript errors

* fix all non-ts errors

* fix event rendering in select boxes

* fix events & breakdown

* fix filters

* fix math selector

* fix reused variable names

* simplify logic by removing reducer, set pagination to 500

* remove 0 and add back `null`

* add back nulls

* add properties loading to filtersLoading

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-04-23 16:06:53 +02:00
Paolo D'Amico
5ec9aefaa2
Miscellaneous improvements (#4003)
* fix person header icon

* refactor and simplify WebhookIntegration

* do not show error messages related to /billing endpoint

* fix a bunch of ts errors

* clarify anonymous users

* minor tweaks
2021-04-16 14:07:16 -04:00
Paolo D'Amico
0100e50cd8
Remove fixed typescript errors (#3956)
* Remove fixed typescript errors

* remove more errors

* more errors be gone

* and some more

* double digits errors
2021-04-14 10:33:27 +02:00
Marius Andra
3b72a3acb3
Show toast on API errors (#3561)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-02 12:05:16 -05: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
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
Karl-Aksel Puulmann
f36495bec6
Filters: Select multiple for equality/inequality (#3422)
* Don't colorize sql for output

* Handle setting array props as values

* Handle arrays exact/is_not property filters

Also updates tests to use parameterization

* Avoid autoclosing PropertyFilter popup

As key changes, old one got removed from DOM

* Improve filter UX

Don't allow filter to become multi-line and keep inputs the same size.

Previous flex={1} was doing flex: 1 1 auto which was messing things up

* Fix typescript issue

* Handle array lookups in postgres

* Update types

* Fix fixture to recreate tables

* Make replace spaces logic consistent with what was there before

* Handle list filtering better in postgres

* Update frontend tests

* Handle edge case: Switching between multi operator and single operators
2021-02-25 16:54:55 +02:00
Karl-Aksel Puulmann
95630f7a6b
Return no data for invalid regexes (#3248)
* Return no data if invalid regular expression

This currently returns a 500. Fixes 3191 together with frontend
validation.

* Add browser validation

* Typing errors
2021-02-11 21:53:58 +02:00
Karl-Aksel Puulmann
d507c876ff
Don't show "save" if user has not yet entered all cohort group data. (#3261)
Sentry error: https://sentry.io/organizations/posthog/issues/2062467419/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

From recording I could see that the user filled in Dynamic group >
Action > 7 days, but never picked the action and pressed save. After
seeing no error he stood by for a while.

Also fixes some type errors and a misc bug (choosing action second
deletes days)
2021-02-10 08:24:04 +02:00
Karl-Aksel Puulmann
93e8e3e73d
Fix SelectBox keyboard navigation (#3211)
This was broken since I added support for it in sessions. Typescript
errors were leading to real bugs.

Sentry error: https://sentry.io/organizations/posthog/issues/2161288131/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&sort=freq&statsPeriod=14d
2021-02-05 21:38:31 +02:00
Marius Andra
3259f8e706
Some typescript fixes (#3049)
* fix sceneLogic and teamLogic

* personLogic one fix

* navigationLogic type

* topContentLogic type

* personalAPIKeysLogic type

* BackTo type

* few other quick wins

* Update blacklist after rebase

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-01-25 11:05:36 +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