* insight route refactor, part 1
* add fromItem to get redirects
* fix some tests
* adjust many more paths
* fix test
* move new insight creation into insight logic
* fix a noisy test
* simplify one test
* open the url with the right filters
* null fix
* fix some more noisy tests
* move saved insights to `/insights`, fix logic tests
* fix cypress urls
* fix some tests
* fix even more insight urls
* wait a bit longer
* add old saved_insights redirect
* this might not be there yet
* rename newInsight -> insightNew
* rename Scene.Insights -> Scene.Insight
* also redirect old searches without fromItem
* fix link
* fix TS merge bugs
* fix import
* fix imports
* fix tests
* fix test
* Run prettier
* fix changes after merge
* switch to a simpler scene
* fix another test
* fix "save as" reset
* rerun tests
* Insight Short URLs (#7259)
* convert a bunch of things to user short_id instead of id
* fix more TS errors
* fix test
* fix jest tests
* various fixes
* add wise words
* type InsightShortId-s to make life easier
* reduce a bit of test noise
* use the InsightShortId in the URL
* fix type
* fix test
* fix insight url preloading
* pass dive dashboards as having insight short ids
* fix short url redirect
* mock scenelogic api
* better types and tests
* type fixes
* fix bug of linking to ourselves
* add back "id"
* get rid of some "getInsightId" calls
* two more
* few more
* refactor last usage of getInsightId
* move files around and improve errors
* make it simpler
* small fixes
* redirect to new url from old hashParam=42
* fix regression
* alert the user if we could not find an insight with the old ID format
* switch to a simpler scene
* fix another test
* Fix annotation creation
* Make short ID friendlier
* remove comments
* simplify insight links from dashboards and saved insights
* remove insight router
* fix TS
* Revert "remove insight router"
This reverts commit e52f474949.
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
* Update breadcrumb text
According to https://www.figma.com/file/gQBj9YnNgD8YW4nBwCVLZf/PostHog-App?node-id=5346%3A28614
* Extract code snippets to their own files
* Start refactoring/rewording feature flags pages
* Play with spacing
* Tags, add new and margins
* Delete match group button + margin on save button
* Update UTM_TAGS import
* Add duplicate option
* Update spacing
* update some actions naming
* Show group type(s) selection when groups enabled
* Remove the slider
* Add a new color
* Add grey badges to feature flags page
* Grey badges on FF page
* Toggle taxonomic groups based on dropdown selection
* Reset filters when group type changes
* Update wording
* Handle key change
* More consistent update when Match By changes
* Add save as button
* Dont use lemon button
* Commit file
* Fix eslint
* Fix issues
* fix
* fix typing
* fix tests
* Remove save and continue editing
* fix test
* Revert "Remove save and continue editing"
This reverts commit 5296f75b49.
* Revert "fix test"
This reverts commit 69b8cd9ae8.
* Copy changes
* Push instead of replace
* remove save new
* Add `LemonTable` base to Feature flags page
* Fix basic styling
* Rework more of the table
* Fix column `align`
* Update eventsListLogic.ts
* Align FF table columns with design
* Add pagination
* Add table loader
* Add `LemonTable` to Storybook
* Add sorting
* Increase feature flags page size to 50
* Add scroll indication
* Fix minor issues
* Fix typing
* Update E2E test
* Sort one column at a time
* Add default sorting
* Improve current page handling
* Use search params for current page state
* Don't mute disabled feature flags
* Add overlay for loading state
* Add profile picture to Created by and improve comments
* Fix `createdByColumn`
* Refactor the More button for reusability
* Fix content sizing (pagination/loader filling full width when scrolled)
* Remove need for `@ts-expect-error`
* d3-sankey alters the object passed into it. we must copy the object we pass to it
* save a path in a test
* don't rely on being able to query the toast when testing if paths saved
* only load events table from the URL on allow list of URLs
* add return type to function
* pass scene URL into events table
* use urlpattern to check if scene is loaded in events table
* don't need to check if still on the same page as when loaded because urltoaction is now specific
* which means we don't need url pattern matching at all
* add scene url to events scene export's logic props
* use a different action name for each run or retries can never complete as the action cannot be saved
* do not poll results if moved away from sceneUrl
* remove tabs from person/action event tables
* so cypress can run locally
* break the dependency of running one test first so the other can pass
* move check into logic and add an e2e test
Co-authored-by: Marius Andra <marius.andra@gmail.com>
* preload chunks when loading esbuild scenes
* fix TS error
* fix license title
* fix scene identifiers in menu
* lowercase data-attr
* make the events menu have the old data-attr
* change var name to clarify its usage
* 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
* 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>
* 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
* Refactor `PersonModal` and clean related components up a little
* Improve footer button conditions
* Remove unused vars
* "Personalize" "people" and "users"
* 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>