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

176 Commits

Author SHA1 Message Date
Marius Andra
33d37cd79a
fix cypress funnel tests, volkswagen style (#6906) 2021-11-05 10:55:18 +01:00
Michael Matloka
a18beb8e63
Fix test depending on OrganizationBasicSerializer (#6795)
* Update test_user.py

* Account for "administrator" being shortened to "admin"
2021-11-02 23:58:35 +01:00
Michael Matloka
137c699150
Add site popover on profile picture to fresh top bar (#6701)
* Keep top bar always visible

* Add `LemonPopover`

* Add empty account control sections

* Rename `AccountControl` to `SitePopover`

* Add basic Sign out button

* Add `LemonButton` and use it for sign out

* Scale down popover scaling

* Remove `LemonPopover` in favor of `Popup`

* Improve icons story

* Polish account info

* Add organizations to site popover

* Add `CreateOrganizationModal` to  `TopBar`

* Polish things

* Add PostHog status items

* Update FunnelTab.tsx

* Rename `InitialBlob` to `Lettermark`

* Update utils.test.ts

* Address feedback

* Handle long emails

* Update Cypress test for sentence case title
2021-10-29 16:36:08 +02:00
Paolo D'Amico
f3222d2643
UX revamp for split/merge persons (#6544) 2021-10-26 14:27:00 -07:00
Paul D'Ambra
a957f0abb0
adds a search box to the toolbar featureflag list (#6527)
* adds a search box to the toolbar featureflag list

* test flakes because react is re-rendering between the get and the click. add an assertion to try and slow cypress down to avoid this

* move filtering toolbar feature flags to a Set and out of CSS

* support initKeaTestLogic() with no args

* fix query-selector-all-deep jest bug

* add simple test case for feature flags logic

* combine selectors

* with more understanding of Fuse

* add simple test for flag filtering

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-10-20 22:02:02 +00:00
Harry Waye
af876da5f0
ci(e2e): use fixed width email address to avoid flaky (#6545) 2021-10-19 07:15:11 -07:00
Paolo D'Amico
39ff3abab2
Persisted flags for 1.29.0 (#6401) 2021-10-18 02:32:20 +03:00
Paolo D'Amico
4b7ea0f5cc
Fix password reset (#6466)
* fix render issue on email

* fix redirection after password change

* fix test
2021-10-15 15:58:54 +02:00
Marius Andra
85aa9f3b74
Fix Cypress component tests (#6461)
* fix component tests

* disable sessions test

* add console errors into cypress output
2021-10-15 12:47:06 +02:00
Paolo D'Amico
20b0f9704a
Forgot password UI (#6177) 2021-10-15 10:40:31 +03:00
Michael Matloka
f5b2f36f29
Fix duplicated action name error message (#6454)
* Fix import of `urls` in `ActionEdit`

* Fix duplicated action name error message
2021-10-15 08:18:15 +02:00
Paolo D'Amico
9041e919b2
Remove Home page experiment (#6410)
* remove FF

* remove home page
2021-10-14 08:25:50 -07:00
Marius Andra
00633412cc
Insight logic refactor version 1 - keyed insightLogic (#6310)
* kea test "toNotHaveDispatchedActions"

* fix dashboard logic test

* add props and key to insight logic (has no effect)

* inform about is_sample's uniqueness

* use common InsightLogicProps

* persist state via BindLogic and shared insightProps

* persist hashParams

* remove cached Urls

* upgrade new to saved logic

* upgrade typegen

* patch metadata logic

* always show title if saved insights active

* fix negative bug

* fix interval filter

* go to view mode after saving

* full reload when going from dashboard to insight

* use clean filter

* createInsight is no longer used

* fix tests

* fix setAllFilters

* clean retention table duplicate code, fix test

* scene has its own key

* unify insightLogicProps key logic

* consolidate logic fetching

* fix test

* fix reloads

* clears the scene funnel

* move setInsight to reducer

* stronger clicks on menu items

* remove wait

* clarify testcases
2021-10-08 12:13:23 +00:00
Paolo D'Amico
19106cef2c
Signup UI Oct 2021 (#6136) 2021-10-01 07:26:19 +01:00
Paolo D'Amico
6b8d0de031
Login UI revamp (#6076) 2021-09-27 20:04:51 +03:00
Michael Matloka
7fa218bcf8
Add cohort description backend (#6089)
* Add cohort description backend

* Increase `Cohort.description` limit

* Require `DASHBOARD_COLLABORATION` for cohort description box to be shown
2021-09-27 11:57:13 +00:00
Tim Glaser
0779881027
Split persons (#5898)
* Split people with multiple distinct ids

* when merging get correct distinct_ids immediately

* fix type errors

* fix e2e tests

* Add feature flag
2021-09-16 00:41:17 +02:00
Manish Rastogi
693bb7ee4f
Added functionality to copy person details (#5884) 2021-09-14 18:02:00 +02:00
Paolo D'Amico
a0ddd7cccb
Remove deprecated /api/user (#5897) 2021-09-13 10:28:12 +02:00
Paolo D'Amico
ab9113947b
Release engagement cohorts (#5851)
Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-09-09 17:13:35 +02:00
Manish Rastogi
7b30a4aa84
Closes #4987 sets page title to dashboard name whenever a dashboard is visited (#5822)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-09-07 11:44:20 +02:00
Michael Matloka
7f605c8bd9
"Personalize" "people" and "users" (#5739)
* Refactor `PersonModal` and clean related components up a little

* Improve footer button conditions

* Remove unused vars

* "Personalize" "people" and "users"
2021-08-26 12:33:36 +00:00
Alex Gyujin Kim
b4c30cbe78
Fix edit actions losing focus on each keystroke (#5628)
* separate out components in action step for proper rerender

* fix required props

* add focus check to e2e
2021-08-18 18:13:43 +00:00
Alex Gyujin Kim
344aab3ee7
Patch for dashboardLogic crashing home page (#5522) 2021-08-16 08:59:50 -05:00
Yakko Majuri
e5a9c3b04e
merge people test (#5567)
* do all merge_people ops in plugin server

* add integration test

* flip call order

* allow calls in any order

* update test approach
2021-08-16 10:53:52 +03:00
Li Yi Yu
64afebd643
Insight tags and description (#5480)
* pull description into its own reuseable component

* working object tags for insights

* refactor editing toast and add insight description editing

* insight name editing and split up huge insights component

* fix toast bug

* typing

* test fixes and clean up

* test something

* add cypress tests

* bug fixes

* test with user logic dashboard collab instead

* history is now a link button

* hide under saved insights feature flag

* skip tests for now

* prettier

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-08-12 17:55:11 -04:00
Paolo D'Amico
617ded5b80
Don't pin dashboards by default (#5419)
* Don't pin dashboards by default

* E2E test
2021-08-02 20:27:39 +00:00
Paolo D'Amico
ce2c9a2f90
Random insights improvements (#5406) 2021-08-02 09:44:44 -07:00
Marius Andra
f40ac4b75c
All Users cohort in breakdown filter (#5293)
* Initial stashed work

* fix all users cohort

* fix test

* fix typesscript values

* remove .only

* simplify some nulls
2021-07-23 08:54:59 +00:00
Marius Andra
771b9a74cf
Enable filter and funnel feature flags (#5282) 2021-07-22 13:40:49 -05:00
Eric Duong
9bb66c53bd
Engagement cohorts UI (#4574)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-20 20:49:35 -05:00
Tim Glaser
9282c9a5f5
Reload actions once one is created (#5219) 2021-07-20 14:11:57 +02:00
Alex Gyujin Kim
a5215f76db
make non time conversion graph types visible in self hosted (#5140) 2021-07-15 00:14:43 +00:00
Sam Winslow
e7c669692d
Fixes / improvements to funnel step UI (#5018)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-08 10:43:42 -05:00
Tim Glaser
5f242b2bed
Solve ospath issue (#5014)
* Solve ospath issue

* try separate cypress cache

* Separate install

* ls

* try

* Try to put everything in same cache

* Remove cypress plugin snapshot

* fix cohorts and funnels
2021-07-07 14:04:39 +02:00
Tim Glaser
83c48b2f84
Fix direct navigation to graph (#5022) 2021-07-07 10:53:08 +00:00
Marius Andra
35aface03f
Fix funnel navigation step-merge (#4939)
* fix when new steps in the url get merged with old steps from values (new steps contain actions, old events)

* set default event in funnels

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-07-01 22:58:15 +00: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
Tim Glaser
bb572272ca
Improve e2e flakeyness, skip Insights spec test (#4869)
* attempt to fix toolbar flakyness

* fix dashboard flakyness

* fix flake

* add retries to components

* Try speeding up build by skipping sourcemaps

* debug components

* show errors

* better error

* don't generate source map

* fix errors

* speed up component tests

* Try empty insights page

* Revert "Try empty insights page"

This reverts commit 68701b3804.

* Skip trends tests for now
2021-06-29 22:20:02 +02:00
Paolo D'Amico
50ef5bea19
Remove legacy code for previous insights’ UI (#4852)
* remove legacy vertical tabs

* remove a bunch of more legacy code

* remove crosshair from lifecycle chart

* bring back changes from #4845

* fix trends tests

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-24 17:14:08 +02:00
Alex Gyujin Kim
8121a4d933
Fix and standardize multiple table UI inconsistencies (#4727)
* fix multiple table bugs and standardize table overflows

* support more es2019 functions like Object.fromEntries

* simplify getting active breakout value

* unset maxWidth for resizable cols by default

* fix feature flag key cutoff and empty description bug

* ellipsify feature flag table

* labels or dates or days

* fix bugs; refactor table scroll

* fix double key and increase the width just a bit

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Sam Winslow <sammywinslow@gmail.com>
2021-06-24 17:09:41 +02:00
Alex Gyujin Kim
8e30172600
Fix bug where we can't see counts in Insight Table (#4706)
* pass filters through context

* add tests and totalcount prop

* generalize tests

* remove feature flag
2021-06-21 23:21:00 +02:00
Michael Matloka
0aa5e0a319
Remove faulty repo-dependent Cypress test (#4793) 2021-06-17 20:36:43 +02:00
Michael Matloka
4bd79a27b7
Fix CI on forks (#4754)
* Remove commented out test

* Update VERSION

* Don't run the automerge job on forks

* Revert "Update VERSION"

This reverts commit dc37f20133.

* Change automerge condition

* Change automerge condition a bit more

* Try scrolling

* Scroll by more

* Stop GitHub complaining about no jobs ran in a workflow

* Search for a different event name

* Try a different operator

* Don't default branch push jobs on forks

* Move clicks around

Co-authored-by: PostHog Bot <hey@posthog.com>
2021-06-17 00:22:23 +02:00
Alex Gyujin Kim
a64212d3f5
Use trends legend graph everywhere (#4646)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-09 20:30:51 -07:00
Marius Andra
ef2b6acda0
Misc fixes from 4571 (#4658)
* simplify cypress nav menu clicks

* clean unused annotations code

* don't blank all cohorts when deleting one

* add data-test-filters-loading to better target loading indicators in tests
2021-06-09 16:58:34 +02:00
Marius Andra
a9fae11074
App context + persist feature flags + joy (#4652)
* preload user via django

* create django app context

* persist feature flags in localStorage

* add preflight into app context

* return undefined if no context

* keep user as `null`, it'll be overriden before anything renders anyway via `afterMount`

* remove broken and unused user code

* call `registerInstrumentationProps` when preloading `preflight`

* for cypress premium tests: add a search param to opt-out of using the preloaded context, so we could intercept the users api call
2021-06-09 11:08:49 +02:00
Marius Andra
3e65af436d
Frontend Models (persistent logic) (#4627)
* move event and property definitions to models, refactor models to import via component if user present

* rename Logic to Model

* add personPropertiesModel

* refactor sessionFilters to use personPropertiesModel

* remove personProperties from inside propertyFilterLogic and use the model

* break ternary

* fix cohort and feature flag tests (for virutalized lists)
2021-06-08 15:16:10 +02:00
Marius Andra
f2744edeb1
Cypress component test fix + style refactor (#4628)
* clean up styles into a folder

* fix cypress helper styles
2021-06-08 14:33:51 +02:00
Alex Gyujin Kim
af969b45be
[Fix] Annotations list not refreshing after creating annotation (#4564)
* Fix list not refreshing after create annotation

* typescript magic and refactor createGlobalAnnotation to loader
2021-06-04 15:24:12 +02:00