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

63 Commits

Author SHA1 Message Date
David Newell
e87d9bb586
chore: remove all input number (#19545) 2024-01-05 08:46:01 +01:00
David Newell
68f96d0d8b
chore: remove last of the antd Row components (#19489) 2023-12-22 13:22:35 +00:00
David Newell
409a5b9219
chore: antd removal (#19490) 2023-12-22 11:17:20 +00:00
David Newell
99f7d4a9c2
chore(frontend): enforce inline style linting (#19134)
* chore: enforce inline style linting

* fix or ignore inline styles

* non-breaking spaces

* fix table header

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2023-12-11 20:10:23 +00:00
Michael Matloka
a2763eba4e
chore(frontend): Enable isolated modules and incremental compilation (#19168)
* Enable isolated modules and incremental compilation

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix typo

Co-authored-by: Paul D'Ambra <paul@posthog.com>

* Restore `include`/`exclude`

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-12-08 11:52:00 +00:00
David Newell
7295b73ddf
chore: remove antd tags (#18684) 2023-11-29 15:25:16 +00:00
Paul D'Ambra
16323959fd
feat: add ee licensed replay transformer (#18874)
first pass through using the EE licensed replay transformer in playback

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Newell <d.newell1@outlook.com>
2023-11-29 10:41:18 +00:00
Paul D'Ambra
a3ba101a54
chore: update es build (#18917)
* chore: update ESBuild

* chore: update ESBuild

* more logging collapsing

* Fix

* fiddling

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* end when finished if not --dev

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-28 14:33:21 +00:00
David Newell
85ea5b858d
fix: json dark mode (#18858) 2023-11-27 12:14:08 +00:00
Michael Matloka
69becac200
chore(frontend): Sort imports (#18663)
* chore(frontend): Sort imports

* Fix Storybook build problem

* Try a different fix

* Fix another circular import

* Fix more circular imports

* Fix logic connection

* Ignore `cypress` in TS

* Don't check import order in logic types

* Fix another `connect()`

* Don't sort imports in Notebooks nodes code

* Fix another connection

* Increase specificity of .LemonButton against .Link

* Fix styling issues

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-22 15:07:34 +01:00
David Newell
2496809ea1
chore: replace antd components (#18775) 2023-11-22 11:11:45 +00:00
Thomas Obermüller
2a3945be20
feat(search): more search improvements (#18705) 2023-11-20 17:43:54 +00:00
Michael Matloka
f2da9dcfd2
fix(frontend): Use type-aware recommended ESLint rules (#18662)
* fix(frontend): Use type-aware recommended ESLint rules

* Fix al the errors

* Generate logic types before running ESLint

* Fix missing async in test

* Restore some type info
2023-11-17 15:33:01 +01:00
David Newell
71da4c79e4
chore: replace all antd tooltips (#18638) 2023-11-15 12:15:05 +00:00
David Newell
1c63966139
chore: update more tags (#18509) 2023-11-09 17:16:11 +00:00
Robbie
b52ed5c3e6
chore(linting): Add no-constant-binary-expression (#18505)
Add no-constant-binary-expression
2023-11-09 10:37:05 +00:00
David Newell
74d63512a4
chore: stop people using new antd icons (#18494) 2023-11-08 22:08:18 +00:00
David Newell
daed413709
chore: cleanup inline styles (#18314) 2023-11-07 14:46:03 +00:00
David Newell
876bb6ab6c
chore: remove antd Space component (#18396) 2023-11-06 15:58:08 +00:00
David Newell
01af460e8d
chore: dark mode changes (#18393) 2023-11-06 13:38:55 +00:00
David Newell
f9c3f9f236
feat: node actions (#18248) 2023-11-03 10:22:19 +00:00
David Newell
3819d767f6
chore: lint anchor elements (#18227) 2023-11-02 09:35:10 +00:00
David Newell
40bbf00423
chore: custom lint rules (#18206) 2023-10-26 12:11:38 +01:00
David Newell
b3748a241e
chore: appease the eslint warnings, bump warnings to errors (#17758) 2023-10-04 14:32:49 +01:00
Paul D'Ambra
bb61ee1fa1
chore: lint for browser compatability so humans don't have to (#17527)
* chore: lint for browser compatability so humans don't have to

* Doh

* Update UI snapshots for `chromium` (1)

* we already do not support opera mini

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-19 16:19:48 +01:00
Michael Matloka
2edc058d0c
feat: Allow Markdown in item descriptions (#17241)
* feat: Allow Markdown in item descriptions

* Allow forcing Link "open in new" icon for non-text children

* Fix `LemonFileInput` empty child

* Add `LemonMarkdown`

* Simplify `LemonMarkdown` imports

* Update .eslintrc.js

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Increase test timeout

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-09-18 12:16:33 +02:00
Michael Matloka
59d4398646
ci(vrt): Stop the snapshot madness (#17163)
* Remove redundant Playwright specs

* Increase tolerance in Playwright

* Wait for profile pictures to resolve

* Ensure scene is loaded before proceeding

* Always wait for loaders to disappear

* Disable Gravatars in snapshots

* Don't wait for loaders in more stories with loaders

* Improve resiliency of batch export story

* Fix one more loading story

* Unskip Playwright tests

* Improve inconsistencies

* Upgrade Playwright from 1.29.2 to 1.37.1

* Wait for images to load

* Unify code editors

* Properly wait for images to load

* Go back to Playwright 1.29.2

* Wait for loader selector in LemonTable stories

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 09:28:03 +02:00
Robbie
4e885e618d
style: Make eslint stricter, fix issues that came up (#17092)
* Make eslint stricter, fix issues that came up

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Try to fix Playwright flakiness and speed up visual snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2023-08-21 13:28:29 +01:00
Michael Matloka
64c3b0c8d7
fix(insights): Clean up double filter buttons and and/or select (#16907)
* fix(insights): Clean up double filter buttons

* Replace all Ant `AndOrFilterSelect` with Lemon

* Tighten `AndOrFilterSelect`

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-04 15:49:45 +02:00
Paul D'Ambra
39eb7b2cb2
chore: console log in linter (#16794)
* chore: console log in linter

* silly toolbar

* Fix

* fix
2023-07-27 09:51:29 +00:00
Paul D'Ambra
0569f2f621
fix: disallow debugger statements when linting (#15487) 2023-05-11 09:01:27 +00:00
Michael Matloka
04944e2f4b
feat(lemon-ui): Add LemonCollapse, removing Ant Collapse (#14673)
* Add `LemonCollapse`

* Make single-open-panel version the default

* Improve `activeKeys` and `panels` ergonomics

* Replace `Collapse` with `LemonCollapse` all over

* Tune sizing

* Update scenes-app-experiments--complete-funnel-experiment.png

* Update UI snapshots for `chromium` (1)

* Add solid background to `LemonCollapse`

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Add `LemonCollapse` to `@posthog/lemon-ui`

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-10 14:55:26 +00:00
Michael Matloka
2f36cfff7c
refactor(frontend): Replace Tabs with LemonTabs (1/2) (#14191) 2023-02-13 17:13:07 +01:00
Michael Matloka
035020a71e
refactor: Replace Badge with LemonBadge (#13763) 2023-01-18 15:50:51 +01:00
Michael Matloka
8290cfd104
refactor(navigation): Remove Ant Layout and clean up .main-app-content (#13657)
* Remove Ant `Layout` completely

* Update `react/forbid-elements` rule

* Always apply base `.main-app-content`
2023-01-12 12:37:17 +01:00
Michael Matloka
5c783c744c
chore: Add debug info to JSX output (#12295)
* chore: Add debug info to JSX output

* Pin React to `^16.14.0` instead of `^16.13.0`

* Remove redundant `React`s

* Add `@babel/preset-react` for Storybook

* Update babel.config.js
2022-10-17 19:30:31 +02:00
Ben White
80b3212898
feat: Lemon Skeletons (#11629) 2022-09-08 13:54:00 +00:00
Ben White
5e2ffeb50a
feat: Simplified Links (#11700) 2022-09-08 14:23:28 +02:00
Ben White
b7cdbb505b
feat: LemonInput & TextArea (#11261) 2022-08-16 11:07:50 +02:00
Paul D'Ambra
35173a06fb
chore: adding a test with only is an error (#11145)
* chore: lint it.only as an error

* try and include it.only

* remove it.only example

* remove an it.only caught by the rule
2022-08-04 14:14:11 +01:00
Ben White
61e85b0cbe
feat: Add linting rule for style tag and Antd (#11079) 2022-08-02 10:49:06 +02:00
Michael Matloka
143e8e31c3
style: Reduce ESLint false positives (#9964)
* style: Make JS linting more accurate

* Don't lint autogenerated code
2022-05-25 14:38:44 +00:00
Marius Andra
5d1bae4b8f
chore(upgrade): Kea 3.0, keeping React at 16.11 (#9682)
* upgrade to 2.6

* upgrade kea-forms, validator -> errors

* upgrade to 3.0

* fix some kea 3.0 changes

* default forms to submit

* fix some issues

* newer typegen and router

* new subscriptions plugin

* upgrade packages, replace subscriptionsPlugin

* convert all logic that used forms to kea 3

* bump babel, remove babel-plugin-kea

* fix circluar TS import bug

* fix few tests

* fix more tests

* convert to use new subscriptions

* fix more tests

* convert to v3 to use new subscriptions

* remove packages

* remove unused provider tag

* fix props order

* connect prompts

* misc type additions

* upgrade kea

* clean up few more tests from noise
2022-05-09 11:34:28 +02:00
Marius Andra
10f2522c04
chore(storybook): update to 6.4 and add esbuild (#8893)
* upgrade to storybook 6.4

* storybook esbuild optimizations

* fix warnings reported by storybook
2022-03-08 14:17:59 +01:00
Paul D'Ambra
c38d2c343c
Add linter rule to guide people to the right dayjs import (#8156)
* add linter rule to guide people to the right dayjs import

* resolves dayjs linting errors
2022-01-20 13:13:29 +01:00
Yakko Majuri
e4fd5c5774
Plugin server tests CI (#6897)
* remove workflows from plugin server subdir

* wip plugin server ci tests

* prettier

* add ignore paths

* update paths
2021-11-04 15:03:28 -07:00
Marius Andra
128af73705
Revert "dev(react): add react hook eslint rules, as warnings" (#6831)
* Revert "dev(react): add react hook eslint rules, as warnings (#6571)"

This reverts commit f06e0b4c51.

* revert all eslint comments
2021-11-03 21:44:41 +00:00
Harry Waye
f06e0b4c51
dev(react): add react hook eslint rules, as warnings (#6571)
Here I have installed react-hooks eslint rules. See
https://reactjs.org/docs/hooks-rules.html#eslint-plugin for reference.

The specific trigger for this was [this
fix](abdbe54663)
I put in for a bug, which would have been caught by the
`react-hooks/exhaustive-deps` rule.

I've added these both as warnings as there are currently 69 😏
problems:

```
$ yarn eslint
...
✖ 69 problems (6 errors, 63 warnings)
```

At least this will highlight in editors that support it. We can make
these errors in a follow up PR, but this is valuable in itself without
getting into some yak shaving.
2021-10-20 14:40:06 +01:00
Guido Iaquinti
f4e47abb09
Bump prettier and eslint-config-prettier versions (#6167)
* Bump 'prettier' and 'eslint-config-prettier' version

* Run 'yarn prettier' with the new bumped version
2021-09-29 11:49:29 +01:00
Alex Gyujin Kim
f717d9d126
Better Sessions (Deeplinking, filter matching, expand/collapse options, matching highlights) (#4840)
* eslint

* implement deeplinking on frontend

* highlight matching events

* remove console.logs

* missed a print

* standardize entity to session filter conversion

* add matching events icon

* styling expand column width

* autoscroll, sessions table filtering, action options

* add e2e tests and a few bug fixes

* remove console.logs

* lint rules and typescript fixes
2021-06-30 19:27:36 -07:00