0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

33 Commits

Author SHA1 Message Date
Cory Watilo
c8545b9692
feat(3000): help & support panel (#20710)
* html for new support pane

* add algolia search component

* polish

* docs are not old anymore

* ux improvements

* add filters

* reset active option

* styles

* email an engineer button

* fix panel title

* add checkmark to resolved questions

* add result count to tags / allow tabbing through tags

* polish

* docs links

* tooltips

* inline support form

* remove unnecessary effect

* use correct color in tooltip

* Revert "tooltips"

This reverts commit 5603a65080.

* hook it up

* fix lockfile

* use iconinfo

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* reup lockfile

* Update UI snapshots for `chromium` (1)

* fix

* use std colors (except for purple)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update unit.json

* Update docker-compose.dev-full.yml

* Update docker-compose.dev-full.yml

* upgrade @babel/runtime

* move to a regular dep?

* address pr feedback

* add stories

* handle arrowLeft and ArrowRight keydown

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-18 09:14:44 -07:00
Paul D'Ambra
b434ef55a4
feat: revert the reverting of "revert: "feat: allow linked flag variants"" (#20624)
* Revert "revert: "feat: allow linked flag variants" (#20623)"

This reverts commit 1bd544853e.

* without changing decide

* put ui change behind a flag

* Update UI snapshots for `chromium` (2)

* skip test

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-01 10:56:49 +00:00
Tiina Turban
1bd544853e
revert: "feat: allow linked flag variants" (#20623)
* Revert "feat: allow linked flag variants (#20543)"

This reverts commit d1a534ec83.

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-28 10:46:17 -08:00
Paul D'Ambra
d1a534ec83
feat: allow linked flag variants (#20543)
* add some UI to let some choose a variant

* allow sending variant for linked flag

* update decide

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* flag state and variant choosing nicerer

* slightly wider

* don't track this

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update frontend/src/scenes/settings/project/SessionRecordingSettings.tsx

Co-authored-by: David Newell <d.newell1@outlook.com>

* add version note

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Newell <d.newell1@outlook.com>
2024-02-28 13:40:59 +00:00
Michael Matloka
55554f2ed3
style(lemon-ui): Make Sparkline look great (#19813)
* style: Make `Sparkline` look great

* Fix formatting

* Fix formatting more

* Update UI snapshots for `chromium` (1)

* Incorporate feedback

* Skip "Events dropped" in destinations if none were

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-17 20:06:24 +01:00
Michael Matloka
cd5490816a
refactor: Use LemonTag for property types (#19752)
* refactor: Use LemonTag for property types

#19699 inspired me to clean this up.

* Fix utility classes being overriden

* Clarify tooltip

* Update UI snapshots for `webkit` (2)

* 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>
2024-01-15 12:34:52 +01:00
Michael Matloka
f09c76e0dd
style(frontend): Round by 6px by default (#19701)
* style(frontend): Round by 6px by default

* Silence `buildResponse` destructuring error

The destructuring fails when a previously imported .scss file can't be found, e.g. after switching branches - but in that case there already is an actually helpful error in the logs, so we don't need this destructuring noise.

* Update UI snapshots for `chromium` (2)

* Maybe fix wrong story

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-12 19:33:21 +01:00
Michael Matloka
6a55c7e1d8
fix(pipeline): Load transformations/destinations progressively (#19652)
* fix(pipeline): Load transformations/destinations progressively

* Clarify TODO

* Fix

Co-authored-by: Tiina Turban <tiina303@gmail.com>

---------

Co-authored-by: Tiina Turban <tiina303@gmail.com>
2024-01-08 18:30:09 +00: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
Robbie
3b4aaf093a
feat(web-analytics): Add overview stats (#17722)
* Move web analytics CTEs to their own file

* Add overview stats query

* Add very basic structure of web dashboard

* Add missing entry in SavedInsights

* Move session_cte into from

* Replace dashboard css with "tailwind"

* Make top pages query not a f-string
2023-10-03 18:14:03 +01:00
Marius Andra
7355359cb3
feat(hogql): remove feature flag (#15936) 2023-06-29 13:23:36 +00:00
Michael Matloka
fa516b178f
chore(3000): Fix dark mode colors (#16108)
* chore(3000): Fix dark mode colors

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Use more `antd.less` options

* Consolidate `side` and `muted-light`

* Update tailwind.config.js

* Fix minor issues

* Fix more edge cases

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Remove flaky Number from InsightCard stories

* Update UI snapshots for `chromium` (2)

* Remove some old Ant style overrides

* Fix replay colors

* Fix filters banner

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-23 14:44:04 +02:00
Ben White
2852263154
feat: Notebooks PoC (#14805) 2023-03-24 13:04:21 +00:00
Luke Harries
4d881631e7
feat: dashboard templates (#14322)
* with tab and templates

* added preview page for dashboards

* added button to go to the template dashboard

* use template

* added blank template

* Revert "added blank template"

This reverts commit ce67d2b53a.

* added blank template

* property filter working

* first filter

* added variables

* added undefined

* added create button

* added story

* reset dashboard modal on close

* can save tiles into db and get it back

* added dashboard variables

* add remaining variables

* change variable schema

* change create to use create

* load templates from the server

* showing the variables for the dashboard template

* added id and description to variables

* template function

* move out function

* improved formatting for now

* create_from_template_json now working

* working! Can use the dashboard variable

* added new dashboard template modal

* actually make a new dashboard template

* added table of dashboard templates

* added retrieval of dashboard tempalte by id

* can now create, update and delete dashboard templates if your a staff user

* can edit and delete template

* update templates table on template change

* added variable description to the UI

* close after updating

* improved layout

* added more validation

* added todos

* added required steps

* improved dashboard pictures

* added fallback color

* added setup events

* added large examples

* move update button to the bottom right

* rename newdashboardtemplate to dashboardtemplateeditor

* added closeNewDashboardTemplateModal

* fix types

* remove the groups tabs

* added feature flag and cleaned up

* added in the old modal and put the dashboard templates behind a feature flag

* remove dashboard variables from this

* fiexed the tests

* collapsed into 1 migration

* fixed import

* handle template variables length

* rename file

* fixing pr feedback

* store dashboard template in db

* validation error

* show the validation errors

* improve layout of dashboard templates

* improved error reasons

* removed any types

* replaced with api

* added migration

* removed inline styles

* removed old import

* remove duplicate import

* fix imports

* added in getting the schema from the backend

* fix imports and use schema from backend

* fixed monaco type error

* remove monaco import

* removed extra create from json function

* fix migrations

* fixed mypy issues

* rename /schema route to /json_schema

* Update snapshots

* Update snapshots

* fix mypy

* allow blank created_at in migration

* remove default in migration

* fixed nits from Thomas

* fix the model inline with the migration

* fixed migrations

* added new snapshots

* fix migrations

* update migration after merge

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* wrap css

* rename logic file

* remove return

* rename logic file

* a bunch of review fixes

* remove set method that allows for story to set templates

* justify between template cards

* move variables to props from useeffect

* utilityify the css object-fill

* ignore null warning in migration on small table

* fix create from template test

* Update query snapshots

* another attempt at allowing nulls in the migration

* unmount logics in story

* dashboard mocks errors

* primary buttons for primary actions

* a little simplification

* move set templates to API mock

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* story doesn't need useeffect

* don't load templates if featureflag is off

* don't load templates if flag is off

* Update UI snapshots for `webkit` (2)

* 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` (2)

* cache schema for two minutes

* validate template against schema

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix tests

* Update UI snapshots for `chromium` (2)

* tailwindify our screen breakpoints to width and height css

* but not broken

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix test

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* hitting creation with a hammer

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* satisfy mypy

* tests for creating from template with text or query

* Update query snapshots

* put behind a new flag

* switch to css grid

* smaller border

* Update query snapshots

* live well at v2 templates with v1 templates

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 11:45:25 +00:00
Paul D'Ambra
7b20e8579f
feat: selector picker for when auto-detection is unique over meaningful (#14194)
The toolbar lets you pick selectors for elements to create actions. The library we use (and others out there) concentrates on choosing a unique selector. But sometimes the unique selector is not the meaningful one.
2023-02-22 20:43:19 +00:00
Raquel Smith
cf3dbc367f
feat: access other projects from ingestion (round 2) (#14174)
* Fix weird scrollyness

* Add a project switcher to the ingestion screen

* Let someone go to proj settings
if they haven't onboarded yet

* Let the bridge page scroll if not full screen

* Fix weird hover state on popup

* fix
2023-02-13 13:48:27 -08:00
Emanuele Capparelli
b8a90cc9a7
Revert "feat: access other projects from ingestion" (#14172)
Revert "feat: access other projects from ingestion (#14158)"

This reverts commit 4135380cc8.
2023-02-09 14:46:57 +00:00
Raquel Smith
4135380cc8
feat: access other projects from ingestion (#14158)
* Fix weird scrollyness

* Add a project switcher to the ingestion screen

* Let someone go to proj settings
if they haven't onboarded yet
2023-02-09 09:57:55 +00:00
Raquel Smith
8fc6d25dc7
feat(billing): experiment with adding pricing/feature table on the org billing page (#13105)
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
2022-12-05 07:50:46 -08:00
Raquel Smith
2f10b24a16
feat(onboarding): let people create demo project (#12877)
* Allow creating new team/project with is_demo flag

* make is_demo not read-only

* Give ppl option to create demo proj right away

* Load the demo data if it's a demo project

* Make sure the variable exists

* Add a demo tag next to demo projects in switcher

* Add a darker color to snack
so it shows up on a hovered button

* Swap bookmarklet for 'generating demo data' panel

* Finish getting rid of bookmarklet (test only)

* Show the demo flag in the main nav if Is_demo

* Update permissions to create a new proj if is_demo
and the org doesn't already have a demo proj

* If org already has a demo proj, just go there

* Add DemoProjectButton

* Don't show ingestion details if it's a demo team

* Don't show ingestion flow on demo project
I doubt people will land here, but just in case

I also renamed the ingestionLogic file name since we renamed the
logic itself previously

* Fix a couple ts errors

* Fix and write new pytests

* Don't change test strings

* Add a story for the snack

* Minor fixes

* Don't set completed_snippet_onboarding
just deal with it otherwise

* Remove the demo data option from platforms

* Change CTA to reflect existing demo project

* Only make the first button primary

* Fix ts error

* feat: prevent billing for events in demo projects (#12924)

* Don't include events in a demo proj in billing

* filter demo teams from usage reports

* Fix ts error

* Make sure demo teams actually aren't included

* take a stab at a test for this

* fix test

Co-authored-by: Emanuele Capparelli <k@emkpp.com>

* Enable master project demo data on Cloud too

* Use proper python

Co-authored-by: Michael Matloka <dev@twixes.com>

* Address review suggestions

* Remove color option from ProjectName
It was the same for all uses

Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2022-11-29 10:45:04 -08:00
Alex Gyujin Kim
35eb2cdf53
feat(recordings): [frontend] add sidebar metadata icons to playlist items (#12369)
Co-authored-by: Ben White <ben@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-24 16:10:46 +00:00
Ben White
85a178b2b9
feat: Added person properties expander to Meta area (#12294) 2022-10-18 15:07:45 -04:00
Ben White
e33a2be8f8
feat: Revamped Recordings list (#12213)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2022-10-13 19:56:10 +00:00
Ben White
eef9d64343
feat: Fully rollout V3 Player (#12207) 2022-10-13 09:34:35 +02:00
Alex Gyujin Kim
28357e2657
feat(recordings): make console log details expandable (#11692)
Co-authored-by: Ben White <ben@benjackwhite.co.uk>
2022-09-16 10:09:14 -04:00
Ben White
6a41e9c2a2
fix: AuthorizedUrls length in modal (#11673) 2022-09-06 10:34:48 +01:00
Ben White
8ec0d693b7
feat: Persons Modal V2 (#11432) 2022-09-02 11:17:29 +02:00
Ben White
8c765d2c3c
fix: Instance Settings visuals (#11323) 2022-08-16 14:12:58 +00:00
Michael Matloka
04d520731c
fix(navigation): Fix usage of li in Pinned dashboards dropdown (#11228) 2022-08-10 15:39:39 +02:00
Michael Matloka
ba2544effd
fix(tailwind): Restore support for cursor-pointer and add others (#11208)
* fix(tailwind): Restore support for `cursor-pointer` and add others

* Fxi tpo
2022-08-09 15:36:13 +00:00
Ben White
893c483adf
feat: LemonButton refactor (#11093) 2022-08-08 08:27:00 +02:00
Ben White
78bfb1917f
feat: Replace some styles with classes (#11073) 2022-08-02 09:10:15 +02:00
Ben White
8c42c7090f
feat: Extended utility classes and updated color palette (#11047) 2022-08-01 14:09:44 +00:00