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

467 Commits

Author SHA1 Message Date
Li Yi Yu
5951ec301d
fix(surveys): survey results viz fixes (#20345)
* rename count bar to follow event name format

* add explore more results button

* fix squished options height

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* fix wording

* Update UI snapshots for `webkit` (2)

* add data attr

* clarify match

* add bar chart icon

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-15 18:20:03 +00:00
Marius Andra
de278a298e
fix(insights): Move from GET to POST queries (#19859) 2024-02-12 16:33:04 +01:00
Ben White
b7855c5a0f
feat: Tighter modals (#20238) 2024-02-12 14:11:41 +00:00
Ben White
f691f1e9a1
chore: Remove old prompts work (#20229) 2024-02-12 08:45:57 +00:00
Michael Matloka
6347750da6
test(dashboards): Add test for loading results on shared dashboards (#20146)
This fails currently – yay! Should pass after merging with master.
2024-02-06 12:09:16 +01:00
Neil Kakkar
ca28a69bff
fix(taxonomic-filter): Make selecting between property types more sea… (#20094) 2024-02-05 15:51:55 +00:00
Juraj Majerik
127dee3a75
feat(feature flags): do not set default rollout percentage (#20030)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-01-31 09:31:45 +01:00
David Newell
0dd78c59c0
chore: remove antd progress (#19953) 2024-01-26 16:03:17 +00:00
Juraj Majerik
ee7fa54136
chore(experiments): set up e2e test (#19916) 2024-01-25 11:19:21 +01:00
Neil Kakkar
f698daf62a
fix(flags): Allow fractions for flag rollout (#19946)
* fix(flags): Allow fractions for flag rollout

* fix
2024-01-24 16:45:47 +00:00
Michael Matloka
25e56f38b0
chore(navigation): Clean up account popover (#19904)
* Rename `SitePopover` to `AccountPopover`

* Condense "Instance" section of account popover and use new icons

* Use small radius for `Lettermark`

* Convert status descriptions casing in general

* Link to async migrations again

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-24 07:48:33 +00:00
Ben White
14d66fe467
fix: Redirect from /home (#19754)
* Fixed homepage redirect
Fixed issue with insights checking the url for dashboard context

* Fix removal of redundant project ID

* Redirect to canonical pathname

* Fix missing import

* Also ensure `urls.foo()` functions return canonical URLs

* Revert "Also ensure `urls.foo()` functions return canonical URLs"

This reverts commit ce76af3760.

* Update tests

* Fix tests

* Fix org and project creation scenes

* Keep params on canonical URL redirect

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
2024-01-15 16:44:56 +01:00
Marius Andra
efe8f57504
fix(actions): use the same words as in insights (#19730) 2024-01-15 12:44:50 +01:00
Marius Andra
8ccdde769f
feat(frontend): implement project-based routing (#13474) 2024-01-15 10:31:54 +01:00
Michael Matloka
6b4a936147
chore(3000): Remove unused test and clean up cohort buttons (#19629)
* Remove malformed, unused E2E test

* Improve cohorts top bar buttons
2024-01-08 13:26:43 +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
David Newell
e87d9bb586
chore: remove all input number (#19545) 2024-01-05 08:46:01 +01:00
Michael Matloka
05d8ec843d
refactor: Simplify breadcrumb keys (#19370)
* Rework breadcrumb keys with IDs to include scene

* Use the breadcrumb key in data-attr

* Remove `globalKey`

* Fix selectors

* Use joined breadcrumb key for fragment and `data-attr`

* Fix missing `sceneBreadcrumbs` keys
2024-01-04 20:43:58 +01:00
Manoel Aranda Neto
e28d34c6e9
chore: Add Flutter feature flags snippets (#19563) 2024-01-03 13:19:09 +01:00
Thomas Obermüller
e1c68da4bf
chore(3000): remove feature flag (#19416) 2023-12-27 09:52:28 +01:00
Ben White
4db19fba2e
fix: Issues with creating a notebook and deleting opening the side panel (#19197) 2023-12-11 08:37:12 +01:00
Paul D'Ambra
d229aa622e
fix: year in hog fangling (#19189)
* fix: year in hog fangling

* fangling

* fix

* remove skip

* style improvements

* tooltip the explanation

* achievements unlocked needs to have 2 badges to not be a bit rubbish
2023-12-07 21:34:44 +00:00
David Newell
54d722660c
fix: broken notebooks cypress test (#19191) 2023-12-07 19:49:42 +00:00
Paul D'Ambra
5e8c11d208
feat: progress component (#19181)
* feat: progress component

* fix

* schema

* bar as a style

* snaps
2023-12-07 18:58:16 +00:00
Joe Martin
fa682f934e
fix: Onboarding button length (#19101)
* fix: Onboarding button length

* Update UI snapshots for `chromium` (2)

* more fixes

* 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 end-to-end tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-12-07 16:56:39 +00:00
Bianca Yang
bf052e8b25
fix: fix fixture typos (#19108)
fix fixture typos

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-12-06 14:30:34 -08:00
Bianca Yang
70b04a8163
feat: Test that 'survey sent' Event is Triggered when Submitting Non-Empty Unsubscribe Survey (#18805)
* test that 'survey sent' event was triggered

* remove unneeded config changes

* update env vars, update test to check event payload

* make capture url slightly stricter

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-12-05 13:06:24 -08:00
Li Yi Yu
93774bfa58
chore(surveys): refactor and clean up old flags (#18972)
* refactor and clean up old flags

* 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>
2023-11-30 10:17:30 -05:00
Michael Matloka
ba84454531
fix(3000): Ensure all scenes work well with the new top bar (#18890)
* Remove dark mode `KeyboardShortcut` color hack

* Ensure that top bar is always compact at bottom of scene

* Remove top bar renaming from Notebooks

* Refactor the experiment scene to use `PageHeader` properly

* Improve `EditableField` sizing

* Add top bar renaming to actions and playlists

* Sort KeyboardShortcut.scss

* Fix missing warehouse mocks and strictly prevent toasts

* Fix CompactList divider width

* Fix missing early return

* Fix random typos

* Fix casing of buttons

* Reorder definition view top bar buttons

* Update Cypress test

* Fix typo

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

* Update casing in E2E test too

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: David Newell <d.newell1@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-27 15:27:00 +00:00
Paul D'Ambra
3cb9ed4b30
feat: Toolbar 3000 (#17276) 2023-11-23 12:54:01 +01:00
Soon-Mi Sugihara
9b35787855
feat(surveys): Add open-ended choices for multiple and single choice surveys (#18258)
* feat(surveys) Add open-ended choices for multiple and single choice surveys

* Validate question choices in backend

* Update open choice behavior and appearance to reflect posthog-js

* Change multiple and single choice questions to have has_open_choice field

* Fix survey logic test

* Remove key warning

* Change has_open_choice to hasOpenChoice

* Hide Add Open-Ended Choice button behind feature flag

* Remove border from text input

* Pass frontend CI tests
2023-11-22 18:14:37 -05: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
Neil Kakkar
e35c8e574d
feat(flags): Add easy cohort generator (#18607) 2023-11-22 11:13:52 +00:00
David Newell
0bbd150e7a
feat(3000): 3000 colors (#18545) 2023-11-20 11:53:12 +00:00
David Newell
271c01b070
chore: radio to segmented button (#18594) 2023-11-17 15:57:11 +00:00
Bianca Yang
558661e84d
fix: fix unsubscribe survey typo (#18585)
* fix unsubscribe survey typo

* try to test surveys with event capture

* undo attempt at intercepting posthog.capture in cypress

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-15 16:04:48 -08:00
Ben White
6676a1d504
feat: Refactor and simplify insights css (#18570) 2023-11-15 16:47:05 +00:00
Thomas Obermüller
56cf18ff29
fix(notebooks): use varying keys for global filters (#18601) 2023-11-14 14:38:36 +00:00
Bianca Yang
0521e2e9a5
fix: survey doesn't get dismissed when response textarea is empty (#18471)
* fix: survey doesn't get dismissed when response textarea is empty

* address pr feedback

* fix logic nit

* fix up the logic...

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-09 13:25:20 -08:00
Ben White
409b72380e
feat: Settings 3000 (#18419) 2023-11-09 10:08:33 +01:00
Ben White
e118f3bdb0
feat: Sidebar cohorts and annotations movement (#18200) 2023-11-08 16:16:05 +01: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
Bianca Yang
6c0168350d
feat: Add Unsubscription Survey (#18231)
* Add unsubscription survey

* Ask users why they're unsubscribing before they submit their unsubscription request.

* update to use kea for state management, clean up some logic around finding matching surveys

* resolve typo

* pr feedback

* CTA for contacting support in survey modal
* remove getActiveMatchingSurveys call since we can directly use the surveyID.

* add storybook for billing unsubscribe survey

* add basic cypress tests for the unsubscribe survey

* adding in product type as a response to our multi-question survey

* update survey to show more information about how users might control their costs

* another round of tweaks to survey

* beef up tests

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-02 13:34:45 -07:00
Li Yi Yu
fb6e408d0a
feat(surveys): auto opt in and out surveys for users (#18080)
* opt in surveys when creating survey and opt out when no active surveys

* update survey banner warning

* add auto opt ins for surveys list launch and stop surveys

* remove from onboarding step

* Update UI snapshots for `chromium` (2)

* update opt in from backend instead

* add filter for api surveys and post delete to receiver

* Update query snapshots

* fix popup flicker

* ambr snapshots

* disabled popup banner rename

* exclude api surveys in query instead

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-20 18:01:38 +00:00
Neil Kakkar
7b8072de4b
fix(surveys): Some UI/UX issues (#18070)
* fix more issues

* fix

* Update UI snapshots for `chromium` (2)

* update

* address comment

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-18 14:12:28 -04:00
Neil Kakkar
fd230b1964
fix: Make rating start at 0 for surveys (#18011) 2023-10-17 14:21:34 +01:00
Li Yi Yu
93e8ccc4eb
feat(surveys): templates (#17904)
* routes for survey templates

* basic on click setup logic

* Update UI snapshots for `chromium` (2)

* import type

* Apply suggestions from code review

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>

* address feedback from cory

* fix logic

* remove unused logic file

* Update frontend/src/scenes/surveys/constants.tsx

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>

* Update frontend/src/scenes/surveys/constants.tsx

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* address comments

* Update UI snapshots for `chromium` (2)

* more fixes

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* move description and title together

* fix e2e

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-10-16 16:32:07 -04:00
Eli Kinsey
27e183b765
feat(surveys): Improved survey creation flow (#17902)
* create edit survey components for feature flagging

* visual type picker

* organization

* move previews into tooltips

* targeting

* sync preview and accordion

* better presentation view

* Update UI snapshots for `chromium` (2)

* fix migration file lint

* Update UI snapshots for `chromium` (2)

* make collapse panel header easier to see

* label question index

* more fixes

* update

* surveys new creation flow flag

* fix linter spacing

* form appearance file

* Update UI snapshots for `chromium` (2)

* fix

* fix

* Update UI snapshots for `chromium` (2)

* fix targeting

* fix cypress tests

* black

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-10-16 14:38:29 +00:00
Marius Andra
23fec44a98
feat(hogql): edit SQL directly where possible (#17905) 2023-10-16 10:15:14 +02:00
Neil Kakkar
6269a4553d
feat(surveys): Add cypress e2e tests (#17920) 2023-10-13 12:40:34 +00:00