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

14 Commits

Author SHA1 Message Date
Michael Matloka
d1c75ab747
fix(environments): Rejig use of insight/dashboard endpoints (#25469)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-16 16:23:48 +02:00
Georgiy Tarasov
f685cec0f5
fix(insights): hide delete series button when there is a single series (#24286)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-27 11:27:44 +02:00
Marius Andra
807ba424b2
feat(hogql): inline hogql editor with autocomplete (#23247) 2024-06-28 08:16:53 +02:00
Michael Matloka
3604a1ca66
test(e2e): Treat HogQL insights as fully rolled out (#21722)
* test(e2e): Treat HogQL insights as fully rolled out

* Only intercept /query in `interceptInsightLoad()`

* Remove long-broken `*Premium.cy.ts` tests

* Update e2e.ts

* Don't assume that untyped properties are boolean

* Update test_property.py
2024-04-23 11:48:20 +02:00
Michael Matloka
93f47ade29
feat(insights): Warn about WAU/MAU in total value trends (#21067)
* feat(insights): Warn about WAU/MAU in total value trends

* Update trends.cy.ts

* Reword warning

* Reword warning more

* Update frontend/src/scenes/insights/filters/ActionFilter/ActionFilterRow/ActionFilterRow.tsx

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 12:28:50 +01:00
Michael Matloka
5c51230ea4
chore(frontend): Real Tailwind + Autoprefixer (#19051)
* chore(frontend): Real Tailwind + Autoprefixer

* Align some non-standard utility class usage with Tailwind

* Start using container queries

* Update tailwind.config.js

* Move PostCSS packages into prod dependencies

* Add EE

* Add larger spacings for properties other than width

* Fix spacing backward compat

* Add max-w-1/2

* Remove Tailwind normalization

* Ensure JIT analysis works

* Actually we don't need a container query for this

* Clean up more

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update production.Dockerfile

* Extend `fontSize` instead of replacing

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix production build

* Add clarification comment

* Update trends.cy.ts

* Fix `scale` usage

* Fix minor styling issues

* Upgrade to Tailwind 3.4

* Actually use `cssnano`

* Don't use `cssnano` in dev

* Solve annoying Tailwind logs

* Add comment explaining plugins being defined twice

* Fix side panel icon rotation

* Reset snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Fix dockerfile

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix up flag wrap

* Update UI snapshots for `chromium` (2)

* Fix

* 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>
Co-authored-by: Ben White <ben@posthog.com>
2024-01-08 13:26:12 +01:00
Thomas Obermüller
56cf18ff29
fix(notebooks): use varying keys for global filters (#18601) 2023-11-14 14:38:36 +00:00
Tom Owers
2a172a1f2f
fix: fixed 'yesterday' insights not filtering on the correct end date (#18412)
* Fixed 'yesterday' insights not filtering on the correct end date

* Fixed test
2023-11-07 10:17:51 +00:00
Paul D'Ambra
5da50e633a
fix: throw error so test failures are not swallowed (#17926)
So obvious in retrospect

If you listen to the Cypress fail event without re-throwing then you swallow all test failures

"fun"

When reviewing #17919 I knew the Cypress tests would have to be failing which is what prompted me to check

Introduced in bbb7ed9 (July 10th!)
2023-10-12 00:51:47 +01:00
Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume (#15672) 2023-05-25 16:31:35 +01:00
Marius Andra
105d7e8b10
feat(insights): support 'any event' filter (#15209) 2023-05-08 17:25:14 +02:00
Michael Matloka
50b02718a5
refactor(lemon-ui): Consolidate component library structure and naming (#14043) 2023-02-03 12:40:22 +01:00
Paul D'Ambra
5aa4995398
fix: dashboard modal could not cope with deleted tiles (#13794)
Problem
@annikaschmid accidentally deleted an insight from a dashboard and then couldn't put it back.

The insight API response was returning the deleted dashboard in the insight's dashboards field. That meant the UI didn't offer the ability to add it to that dashboard because it thought it was already added

Even though there was a test that protected against this which passes and I couldn't figure out why the application behaves well in the test and not when running 🤷

Changes
The dashboard_tiles relation is correct. And we should eventually remove the use of the dashboards relation.

So, let's expose it. This begins the deprecation of the dashboards field on the Insight API.

And overwrites the content of the dashboards field with the correct values when returning a representation of the model.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-01-25 13:09:58 +00:00
Thomas Obermüller
46e7f150e3
refactor(e2e): add .cy to cypress spec filenames (#13528) 2022-12-30 21:27:26 +01:00