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

772 Commits

Author SHA1 Message Date
Sandeep Guptan
60072edb7b
Cohort search bar fix (#2557)
* cohort search bar fix

* cohort search bar fix

* Refactor Search/Reset

* Bring back maxWidth: 400

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-30 10:54:18 +01:00
Karl-Aksel Puulmann
b05e2ad1a9
Don't toggle rows when viewing player (#2546) 2020-11-29 13:02:07 +02:00
Tim Glaser
43f93215cb
Fix posthog identify (#2552)
* Fix posthog identify

* Unrelated change
2020-11-27 15:49:36 +01:00
Michael Matloka
412c3809e9
Reworked Teammates page (#2482)
* Improve code quality of org members

* Update global.scss

* Add is_expired to invite serializer

* Refactor members and invites pages

* Make invite creation modal clearer

* Update sceneLogic.ts

* Update commandPaletteLogic.ts

* Refactor members and invites to new files

* Remove Invites from the sidebar

* Simplify ActionsComponent

* Update test_organization_invites.py

* Improve create invite modal looks

* Make Invite Teammate work better with sidebar

* Update Invites.tsx

hide organization invites if there aren't any created

* Move Divider to Invites component

* Clarify copy

* Use moar idiomatic English

* s/Teammate/Team Member/g

* Allow admins to promote others to admin or demote from

* Improve permissions on the backend

* Update user.py

* Fix ownership oversight

* Allow kicking out equals

* Update setup_dev.py

* Fix behavior

* Fix linting

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-11-27 14:47:48 +01:00
Michael Matloka
1a73f8196a
Update SessionsPlayerDrawer.tsx (#2549) 2020-11-27 14:41:45 +01:00
Marius Andra
edea60ce95
Fix celery heartbeat bug, Add redis & plugins to preflight (#2520)
* Fix celery heartbeat bug, Add redis & plugins to preflight

* make celery required
2020-11-27 12:44:05 +01:00
Tim Glaser
944b592804
Closes #2542 remove send event overlay and replace with warning (#2544)
* Closes #2542 remove send event overlay and replace with warning

* Add padding in new design
2020-11-27 12:41:07 +01:00
Paolo D'Amico
c46bae8628
UI improvements to sessions page (#2538)
* move some logic to kea

* sessions loading state

* URL max width & copy to clipboard
2020-11-27 11:39:43 +02:00
Tim Glaser
e8d772f2e4
Fix Not all users have names (#2539) 2020-11-27 10:32:15 +01:00
Paolo D'Amico
5acc9977e0
Session player page (#2479)
Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2020-11-26 16:56:13 -05:00
Tim Glaser
bbd8a9748b
Fix redirecting to /persons after deleting user (#2533) 2020-11-26 16:56:05 +01:00
Tim Glaser
260b999093
Revert "Retention graph and multiple event fix (#2405)" (#2532)
This reverts commit e90857900e.
2020-11-26 15:52:45 +01:00
Eric Duong
e90857900e
Retention graph and multiple event fix (#2405)
* intiial graph on PG

* initial frontend

* fix filtering and types

* clickhouse working

* change reference date

* fix label and defaults

* fix multiple event retention

* working clickhouse and postgres for multiple events

* remove final

* remove sql parse

* add inital person query

* working clickhouse person query and return testrunner

* implement postgres retrieve person

* add endpoint and pagianted test

* click on datapoint works

* fix params

* fix action handling

* people paginated backend

* finished paginatino frontend logic

* fix variable naming for pg

* working first time persons for clickhouse

* first time people working for pg

* dont replace if recurring

* run again

* fix import

* refactor filter to retention specific and move postgres

* convert clickhouse to use new filter

* move imports

* fix types

* fix types

* fix initial load

* adding to dashboard works

* fixed defaults

* add test for dates

* fix insight panel

* add seert

* fix import

* fix date select for people
2020-11-26 15:18:37 +01:00
Karl-Aksel Puulmann
38f8364d7a
Return person data together with session recording (#2528)
* Return person data together with session

This will be used in the new session recording page

* Add names to anonymous types
2020-11-26 16:06:50 +02:00
Karl-Aksel Puulmann
b8fcaf264b
Fix linting errors broken on master (#2529) 2020-11-26 15:33:01 +02:00
Michael Matloka
1ea02827c5
Project Settings cleanup (#2483)
* Fix headings

* Enhance danger zone with overlay

* Fix placement

* Improve styling style

* Extract out of scope changes

* minor copy adjustments

* proposal for locked out danger zone

* adjust copy

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2020-11-26 13:47:33 +01:00
Michael Matloka
37243eef32
Enhance webhook integration UX (#2488)
* Generalize Team.slack_incoming_webhook to Team.incoming_webhook

* Refactor WebhookIntegration

* Remove extraneous period

* Sprinkle message with some Markdown

* Revert "Remove extraneous period"

This reverts commit 6e6c229f60.

* Remove migration
2020-11-26 13:47:15 +01:00
Michael Matloka
760dd9a6b2
Disallow inviteless signup on initiated self-hosted instances (#2489)
* Add MULTI_TENANCY = False to settings.py

* Add and use permission UninitiatedOrCloudOnly

* Update sceneLogic.ts

* Enhance _preflight endpoint and refactor PreflightCheck logic to TS

* Redirect away form signup on initated self-hosted

* Make redirecting work

* isort

* Format
2020-11-26 13:46:41 +01:00
Karl-Aksel Puulmann
eed1046895
Show session player icons as greyed out if visited (#2517)
* Show session player icons as greyed out if visited

Idea from @hgazim.

* Use <Link /> component over rolling our own
2020-11-26 10:56:07 +02:00
Marius Andra
23f129e083
Require curly brackets around if statements (#2505)
* require curly brackets around if statements

* merge
2020-11-25 17:46:49 +01:00
Michael Matloka
8a9f2c2448
Make Plugins page a bit nicer (#2500)
* Make Plugins page a bit nicer

* Pull in changes from plugin-ordering
2020-11-25 15:57:37 +01:00
GalDayan
000f76a5bd
2094 too many distinct (#2480)
* BUGFIX: re adding feature flag after deleting

* Suppport max array length and show more when need

* refactor

* added 3 distint id to user

* 2 users

* Revert "BUGFIX: re adding feature flag after deleting"

This reverts commit bf9b019b9e.

* added more distinct

* added data-cy and person tests

* fixed tab

* added search for person if not first
2020-11-25 11:12:22 +01:00
Karl-Aksel Puulmann
8fe26f37b2
Use our own session recording player (Revert-revert) (#2491)
* Revert "Revert "Use our own session recording player (#2470)" (#2477)"

This reverts commit c601024e4d.

* Update player package

* Explicitly include rrweb styles

It seems like our package isn't bundling them properly - this should fix
things.

* Manage session player css via scss
2020-11-25 11:50:21 +02:00
Michael Matloka
96e4ee8512
Nest endpoints of project-based models under /api/project/ – LITE (#2485)
* Nest endpoints under /project/ with StructuredViewSetMixin

* Rewrite URLs

* isort

* Update utils.py

* Fix errors

* Fix almoast all the errors

Last left to do: shared dashboards and permission classes.

* isort

* Adjust for master

* Add compatbility with shared dashboards

* Debug ClickHouse

* Remove some # type: ignores

* Simplify CursorPagination

* Move test base from posthog.api.test to posthog.test

* Improve API structure

* Bring back legacy endpoints

* Fix legacy compatibility

* Fix bugs and typing

* isort

* Fix hooks test

* Try fixing errors

* Fix oversight

* isort

* Fix problems

* isort

* Be more tolerant

* Fix naming and remove redundant code

* Fix imports

* Update deleteWithUndo

* Roll back

* Roll back more

* Update .gitignore

* Rollll back

* Rollllllll

* back

* Betterify

* Address feedback
2020-11-24 23:26:28 +01:00
Tim Glaser
4ef642e9ad
Fix various caching issues (#2496)
* Don't return last refresh if no cache

* Add filters_hash, fix caching

* Add migration

* fix tests
2020-11-24 21:09:58 +01:00
Tim Glaser
f47e8b97ae
Combine events and actions into select box (#2394)
* WIP combine events and actions

* Alignment

* Keyboard navigation select box

* Fix enter and other small issues

* add icons

* fix renderinfo

* Hide scrollbar

* Refactor

* Fix cypress test

* fix cypress test
2020-11-24 18:28:44 +01:00
Paolo D'Amico
bbd2cf2a27
Refactor camelCase util (#2487)
* refactor camelCaseToTitle

* Rework identifierToHuman

* Test identifierToHuman with Jest

* Add Jest to frontent CI

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 16:07:36 +01:00
Michael Matloka
c29ed53c69
Add Table rowKey where missing and unify style (#2486) 2020-11-24 10:14:11 +01:00
Adam Boaler
433a37c482
Show gradient on scrollable Select elements (#2453)
* Add SelectGradientOverflow component

* Add gradient to the bottom of some long Select elements

* Improve style and add top scroll gradient

Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-24 09:59:59 +02:00
Michael Matloka
454161db57
Fix organization/project creation when organization-/project-less (#2484)
* Make ProjectMembershipNecessaryPermissions only run on detail views

* Hide close button when not needed

* Add Cypress test

* Update project deletion+creation test

* Update projectSettings.js

* Update E2E test

* Run Cy with DEBUG

* Delete Cypress test

* Revert "Run Cy with DEBUG"

This reverts commit d0f29a353c.
2020-11-24 08:51:33 +01:00
Paolo D'Amico
4251e5447c
Refactor scene configuration logic (#2478)
Co-authored-by: Michael Matloka <dev@twixes.com>
2020-11-23 18:42:52 -05:00
Tim Glaser
e4842f7fed
Feature flag table improvements (#2448)
* Feature flag table improvements

* sorter created by

* fix cypress test
2020-11-23 19:43:03 +01:00
Paolo D'Amico
c601024e4d
Revert "Use our own session recording player (#2470)" (#2477) 2020-11-23 13:22:42 -05:00
Michael Matloka
7e779a72bb
Make note that webhook integration is unavailable for Cloud now (#2476)
* Make note that webhooks aren't working on Cloud for now

* Improve project settings page
2020-11-23 17:56:46 +01:00
Karl-Aksel Puulmann
7a0ba0afa2
Use our own session recording player (#2470) 2020-11-23 09:08:44 -05:00
Yakko Majuri
671d1febee
Fix Feature Flags typo (#2463) 2020-11-23 12:07:43 +01:00
Michael Matloka
50dfabdc7a
Fix My Settings (#2465)
* Fix sidebar

* Fix change password form layout
2020-11-23 11:38:05 +01:00
Michael Matloka
d24783ece6
Org/projects UX enhancements (#2145)
* Improve member removal UX

* Add Delete Project

* Constrain project deletion in the frontend

* Improve no org

* Make minor fixes

* Bring back changes

* Add member level changing

* Update test_organization_members.py

* Fix org leaving edge case

* Polish Project Settings UI

* Allow full project deletion

* Fix dynamic page title edge case

* Mymymypy

* Remove console.log

* Remove obsolete test

* Fix API constraints

* Fix invite creation validation case

* Add cloud/self-hosted specificity to premium feature guarding

* Improve user setting logic in case of error

* Use Teammates instead of Team Members

* Improve org/project creation UX

* Add organization ownership

* Add migration

* Fix redirecting to org creation

* Improve clipboard toast consistency

* isort

* Update tests

* isort

* Update test_organization.py

* Fix typing (somewhat)

* Explain passing on ownership

* Address feedback

* Reverse guardPremiumFeature return

* Fix typing

* Fix test

* Fix last typing

* Fix merge conflict resolution

* Remove unused code
2020-11-23 10:53:45 +01:00
Tim Glaser
1a1beaa7b2
Don't record session player (#2455) 2020-11-20 18:38:24 +01:00
Marius Andra
cba2b1b986
plugin server url (#2451) 2020-11-20 16:51:16 +01:00
Marius Andra
97b5d8faac
deprecate from_web and from_json (#2449) 2020-11-20 16:51:06 +01:00
GalDayan
f39575d388
Add feature flag filters and roll out precentage to main table (#2387)
* added rollout precentage and filters to main table

* added enable editing

* Seperate to component

* Remove row design

* renamed

* delete unused code

* added typing

* Removed not necessary commits

* prettier ts file

* Formatting

* fix yarn linter

* changed rollout precentage

* changed

* rollbacked the changes

* If there is not roll out percent

* add test on rollout precentage

* refactor

* added filter selectio ntest

* delete unused data-attr

* update attribute

* added filters check
2020-11-20 11:03:14 +01:00
Nicolás Gonik
a85984fad8
fixed typo (#2443) 2020-11-19 15:33:44 +01:00
Yakko Majuri
e98a9e808d
Hide Billing Toolbar from PostHog team (#2439) 2020-11-19 11:19:56 +02:00
Tim Glaser
21b195a0c6
Remove unused dependencies (#2416)
* Remove unused dependencies

* Remove more deps

* add reselect back in

* Add cypress terminal back in

* install cypress terminal on the fly

* combine
2020-11-18 20:53:01 +01:00
Tim Glaser
da305b3e84
Redirect to manage billing view on app (#2434)
* Redirect to manage billing view on app

* Fix tracking
2020-11-18 20:42:22 +01:00
Karl-Aksel Puulmann
80f7b757ac
Session recording: only check permitted domains if defined (#2429)
This caused some confusion yesterday on users slack.
2020-11-18 13:06:09 +01:00
Paolo D'Amico
aaad92da0a
Update personsLogic.ts (#2423) 2020-11-17 18:14:48 -06:00
Paolo D'Amico
72b842cb93
Persons list refactor (#2418)
* refactor person category filter

* convert persons to TS & kea; clean up code

* remove undefined attributes from QS

* fix updating URL in every keystroke

* filter out invalid qs params

* fixes React key error

* bring back cohorts
2020-11-17 15:15:46 -06:00
Paolo D'Amico
9ad483064b
Refactor people & users to persons (#2413) 2020-11-17 08:40:48 -06:00