* chore: date filter UI fixes
* fix eslint errors
* fixes
* fix test
* fix cypress
* add test
* Update frontend/src/scenes/dashboard/DashboardHeader.tsx
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* wip
* it actually works now
* fix pinned dashboard display
* popups
* fix TS issues
* shortcut
* remove popper
* refactor to floating ui
* remove debug
* even more cleanup
* cleaner handler
* yarn.lock
* simplify more
* not taller than the window
* position top popups
* simplify
* let me work with node 18
* fix few more popups
* fix top open animation
* fix some tests
* use html element for consistency
* revert random changes
* don't write the default
* fallback first, then shift
* it works
* add to group filters
* add feature flag
* add support for insight panels
* add backend tests
* add frontend tests
* Update snapshots
* type fixes
* fix cypress
* paramaterize team_id
* clean up FF
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* fix: change color to muted and make popup appear directly
* fix: add active state when popup open
* fix: border width
* change title back
* adjust test
* unique attribute on toolbar side action button
* remove sneaky it.only
* clicking add new URL moves to toolbar page and focusses the new url input
* refactor tests
* update cypress
* really click something that's actually there
* obey cypress and use done
* run cypress 9 in CI
* no need for before each when only one test
* no need to set window size to the default
* get tests passing file by file
* delay checking for a graph in a test
* be more specific cypress
* use cy command
* select text like a human
* silly cypress
* try and avoid cypress deciding that a visible field is not valid
* select delete button correctly
* find save button differently
* try and avoid not always typing the first character
* better trends selections
* use cy command to navigate
* conitnue trying to get tests to pass in CI
* another try at setting feature flag names in CI
* can CI find undo button without a wait?
* better assertion for cypress
* up to v10
* fix splitting specs with v10 path
* show cypress how to wait for the test to finish
* remove redundant file
* change return to satisfy new cypress
* move import
* same style error messages
* make tagged_item __str__ work
* first pass activity logging with tags
* update field exclusions for feature flag and person
* pluralize "Tag" correctly
* with working code
* prefetch tags so they are available for change detection when they're being deleted
* add a skipped test
* with some tests
* fix pluralization
* adding tests
* test drive insight descriptions - all but permissions
* insights don't log permissions or retention summary
* use dashboards model to load nmaes for insight descriptions
* Revert "use dashboards model to load nmaes for insight descriptions"
This reverts commit 3ac08ff4b0.
* allow activity log more control over how related items appear
* fix paging
* fxes tests
* no need to spread knowledge out to the models
* no need to check if a list is a list
* split cypress tests
* split cypress tests
* add a m2m aware insight move behind feature flag
* update insight's dashboard list when we know it has changed
* slightly better failing test
* fix the mock
* first pass at caching different dashboard contexts separately
* Remove unnecessary
* add cypress test for multi dashboard addition
* don't register feature flag for all tests
* correct mock structure
* Update frontend/src/models/insightsModel.tsx
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* simplify move to dashboard signature
* don't filter items in the items reducer
* update entire insight whenever the updateDashboardItem action is called
* fix trends cypress tests
* remove unused import
* remove unnecessary todo
* not passing a dashboard means don't filter by dashboard
* no need to send null anymore
* only let dashboard update an insight if it is in dashboard context
* skip the cypress test
* don't fight cypress, for now
* slightly better
* don't load any old version of an insight if it happens to be pressent on another dashboard
* read dashboard id from props when looking up matching insights
* try looking up insight in dashboardModel as well
* change to insight scene logic has no effect
* fix test setup
* slightly better namne
* expand the tests
* refactor tests
* try and trick cypress into passing in CI the same way it passes locally
* move info out of my brain and into the code
* try and trick cypress into passing in CI the same way it passes locally
* rename method and file
* one fewer thing to think about
* rename refactor
* complete file rename
* resolve naming nit
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* remove tests that have been off for a year
* remove component tests that are covered by main cypress tests
* remove a bunch of component based test setup and upgrade cypress
* get tests running but not all passing on Cypress 9
* don't upgrade yet
* don't upgrade yet
* refactor: Apply PERSISTED_FEATURE_FLAGS always, everywhere
* Don't use fetched feature flags in self-hosted
* Do use fetched feature flags in development
* Fix Jest tests
* Try to fix Events E2E tests
* feat(insights): /new without saving an empty insight
* run reportInsightCreated when clicking "new"
* remove "doNotPersist", refactor new flow
* save and continue editing
* urls.insightNew()
* fix types
* keep ?dashboard in url
* reset filters in new insight
* fix unintended combineUrl mock
* fix one test
* support old old url params, load results after start
* hackity hack
* not needed
* some comments
* try to avoid double query
* don't write TRENDS in default new urls
* better change detection
* small cleanup
* Hide "Save & continue editing" when there are no changes
* Add comment on fields to send to the API
* Update insights.js
Co-authored-by: Michael Matloka <dev@twixes.com>
* Remove useless `addGraph` action from `savedInsightsLogic`
* Pass `from_dashboard` from `addGraph` to `insightSceneLogic`
* Fix flow so that the draft insight only appears on the dashboard after saving
* Fix newly-created insight not appearing on dashboard
* Address feedback
* Update `LemonSpacer` opacity
* Fix `LemonButton` edge cases
* "New" to "Add"
* Fix E2E tests
* Add new Cypress test
* thrown an explicit error if can't render react app (shown on the toolbar authorize scene)
* remove reverse logic connection
* upgrade kea, remove deprecated code
* don't permanently auto-connect this logic
* add few direct connections
* remove automatic mount
* fix few extra setState calls
* improve howto create stories
* refactor new dashboard form
* use new form component for flags
* new flag story
* refactor scene stories to use <App />
* add even more default mocks
* fix two bugs
* fix more test issues
* increase the quality of mocked data
* fix new dashboard redirect logic, simplify code even further
* fix test
* update docs
* fix toolbar multiple errors, rearrange mdx stories
* tweak some stories
* add "how to create stories" and "how to mock requests"
* move from __stories__ folders to just __mocks__
* how to build a form and how to use components
* how to build a scene
* fix unrenamed logic
* replace insightRouter with a redirect
* cmd click on a tab in insight edit mode clones insight
* create separate insight scene
* filters and urls do not sync (part 1)
* use the full scene
* use the right insightMode
* fix tests
* remove itemMode and syncWithUrl from insightLogic
* fix edit links
* fix insightLogic.test.ts
* insight numeric id
* better action to url
* refactor cachedResults and filters to cachedInsight, refactor ChartParams, deprecate color on graphs
* fix test
* avoid flicker in url
* fix insight id check
* fix super high steps
* move mock
* fix one test
* fix typo
* load correlations only when component is rendered
* also load property correlations only if table is shown
* skip two tests and trigger correlations loading from the view layer
* skip one more
* auth test
* get mounted insight in insightSceneLogic, move breadcrumbs to insight scene
* this is no longer technically correct
* fix insight copy name
* keep loading if 404 to pass cypress test
* one more cypress fix
* remove //
* don't load fake insight with id "new"
* fix funnel experiments
* Make layout transition from insight skeleton to scene more seamless
* Adjust `InsightSkeleton` a bit more
* remove dead code
* clarify filtersKnown
* simplify link
* move reliance on entityFilterLogic into async
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
* wip
* trends tab to use property groups too
* add util methods for backwards compatibility
* add property groups to retention and paths
* leave events table alone
* fix typescript errors
* fix e2e tests
* fix type
* flatten property groups in places
* typing
* clean up ui
* recurse property groups, handle empty groups, and clean up
* prettier
* fix typing
* data attr
* make space on insights layout for new filters
* remove clone library and unmutate states
* remove redundant isPropertyGroup checks
* feature flag it again and style cleanup
* fix global filters title
* filter duplication and test account filters styling
* e2e tests and style clean up
* prettier
* funnel layout fix with filters
* fix logical operator dropdown default value bug
* Upgrade `react-toastify` to latest version (from 5.5.0 to 8.2.0)
* Use team ID in `switched_team` instead of just a bool
* Update base toast style
* Adjust toast width
* Reduce toast `autoClose` to 6 seconds
* Update ALL the toasts
* Fix typing, improve wording
* Update `[data-attr=success-toast]` selectors
* Address feedback and update Cypress tests
* Remove useless snapshot test
* Fix leftover ` expect(toast)`
* "Fix" the problem with tests
* Update featureFlags.js
* Fix comment
* Update featureFlags.js
* Update featureFlags.js
* Remove `helpButtonLogic` import
* option to expand taxonomic filter infinite lists
* make the button blue, update copy
* remove duplicate
* test for is_event_property filter
* fix test
* refactor fetching
* test expandable infinite list
* fix clicking on "$time" in event prop cypress
* remove debug
* fix data-attr
* clean up shared attrs
* test with flag
* use "scoped endpoint" instead of "extended"
* don't click on skeleton
* describe scoped endpoint
* Revert "describe scoped endpoint"
This reverts commit 8450b66ef5.
* describe scoped endpoint
* remove comment
* type div props
* pluralize list
* cleaner variable names
* make sure there's something there
* pluralize some more
* don't tab if we can select something in the list