* Revert "revert: "feat: allow linked flag variants" (#20623)"
This reverts commit 1bd544853e.
* without changing decide
* put ui change behind a flag
* Update UI snapshots for `chromium` (2)
* skip test
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* style(frontend): Round by 6px by default
* Silence `buildResponse` destructuring error
The destructuring fails when a previously imported .scss file can't be found, e.g. after switching branches - but in that case there already is an actually helpful error in the logs, so we don't need this destructuring noise.
* Update UI snapshots for `chromium` (2)
* Maybe fix wrong story
* Update UI snapshots for `chromium` (2)
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Move web analytics CTEs to their own file
* Add overview stats query
* Add very basic structure of web dashboard
* Add missing entry in SavedInsights
* Move session_cte into from
* Replace dashboard css with "tailwind"
* Make top pages query not a f-string
* with tab and templates
* added preview page for dashboards
* added button to go to the template dashboard
* use template
* added blank template
* Revert "added blank template"
This reverts commit ce67d2b53a.
* added blank template
* property filter working
* first filter
* added variables
* added undefined
* added create button
* added story
* reset dashboard modal on close
* can save tiles into db and get it back
* added dashboard variables
* add remaining variables
* change variable schema
* change create to use create
* load templates from the server
* showing the variables for the dashboard template
* added id and description to variables
* template function
* move out function
* improved formatting for now
* create_from_template_json now working
* working! Can use the dashboard variable
* added new dashboard template modal
* actually make a new dashboard template
* added table of dashboard templates
* added retrieval of dashboard tempalte by id
* can now create, update and delete dashboard templates if your a staff user
* can edit and delete template
* update templates table on template change
* added variable description to the UI
* close after updating
* improved layout
* added more validation
* added todos
* added required steps
* improved dashboard pictures
* added fallback color
* added setup events
* added large examples
* move update button to the bottom right
* rename newdashboardtemplate to dashboardtemplateeditor
* added closeNewDashboardTemplateModal
* fix types
* remove the groups tabs
* added feature flag and cleaned up
* added in the old modal and put the dashboard templates behind a feature flag
* remove dashboard variables from this
* fiexed the tests
* collapsed into 1 migration
* fixed import
* handle template variables length
* rename file
* fixing pr feedback
* store dashboard template in db
* validation error
* show the validation errors
* improve layout of dashboard templates
* improved error reasons
* removed any types
* replaced with api
* added migration
* removed inline styles
* removed old import
* remove duplicate import
* fix imports
* added in getting the schema from the backend
* fix imports and use schema from backend
* fixed monaco type error
* remove monaco import
* removed extra create from json function
* fix migrations
* fixed mypy issues
* rename /schema route to /json_schema
* Update snapshots
* Update snapshots
* fix mypy
* allow blank created_at in migration
* remove default in migration
* fixed nits from Thomas
* fix the model inline with the migration
* fixed migrations
* added new snapshots
* fix migrations
* update migration after merge
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* wrap css
* rename logic file
* remove return
* rename logic file
* a bunch of review fixes
* remove set method that allows for story to set templates
* justify between template cards
* move variables to props from useeffect
* utilityify the css object-fill
* ignore null warning in migration on small table
* fix create from template test
* Update query snapshots
* another attempt at allowing nulls in the migration
* unmount logics in story
* dashboard mocks errors
* primary buttons for primary actions
* a little simplification
* move set templates to API mock
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update query snapshots
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `webkit` (2)
* story doesn't need useeffect
* don't load templates if featureflag is off
* don't load templates if flag is off
* Update UI snapshots for `webkit` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* cache schema for two minutes
* validate template against schema
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* fix tests
* Update UI snapshots for `chromium` (2)
* tailwindify our screen breakpoints to width and height css
* but not broken
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* fix test
* Update UI snapshots for `chromium` (2)
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* hitting creation with a hammer
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* satisfy mypy
* tests for creating from template with text or query
* Update query snapshots
* put behind a new flag
* switch to css grid
* smaller border
* Update query snapshots
* live well at v2 templates with v1 templates
* Update UI snapshots for `chromium` (2)
* 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 UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update query snapshots
* Update UI snapshots for `chromium` (1)
* Update query snapshots
* Update query snapshots
* Update query snapshots
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
* Update UI snapshots for `chromium` (2)
* Update UI snapshots for `chromium` (1)
---------
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
The toolbar lets you pick selectors for elements to create actions. The library we use (and others out there) concentrates on choosing a unique selector. But sometimes the unique selector is not the meaningful one.
* Fix weird scrollyness
* Add a project switcher to the ingestion screen
* Let someone go to proj settings
if they haven't onboarded yet
* Let the bridge page scroll if not full screen
* Fix weird hover state on popup
* fix
* Allow creating new team/project with is_demo flag
* make is_demo not read-only
* Give ppl option to create demo proj right away
* Load the demo data if it's a demo project
* Make sure the variable exists
* Add a demo tag next to demo projects in switcher
* Add a darker color to snack
so it shows up on a hovered button
* Swap bookmarklet for 'generating demo data' panel
* Finish getting rid of bookmarklet (test only)
* Show the demo flag in the main nav if Is_demo
* Update permissions to create a new proj if is_demo
and the org doesn't already have a demo proj
* If org already has a demo proj, just go there
* Add DemoProjectButton
* Don't show ingestion details if it's a demo team
* Don't show ingestion flow on demo project
I doubt people will land here, but just in case
I also renamed the ingestionLogic file name since we renamed the
logic itself previously
* Fix a couple ts errors
* Fix and write new pytests
* Don't change test strings
* Add a story for the snack
* Minor fixes
* Don't set completed_snippet_onboarding
just deal with it otherwise
* Remove the demo data option from platforms
* Change CTA to reflect existing demo project
* Only make the first button primary
* Fix ts error
* feat: prevent billing for events in demo projects (#12924)
* Don't include events in a demo proj in billing
* filter demo teams from usage reports
* Fix ts error
* Make sure demo teams actually aren't included
* take a stab at a test for this
* fix test
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
* Enable master project demo data on Cloud too
* Use proper python
Co-authored-by: Michael Matloka <dev@twixes.com>
* Address review suggestions
* Remove color option from ProjectName
It was the same for all uses
Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: Michael Matloka <dev@twixes.com>