-
- Downloads
Add snowplow events for embedding setup flow (#37617)
* Add snowplow events for embedding setup flow * Fix dashboard model tests * Fix dashboard tests * Fix card tests * Fix dashboard API tests * Fix type error * Implement analytics 2/7 1. public_link_copied 2. public_link_removed * Fix snowplow schema enum Removing null as we don't seem to put `null` in `enum` * Complete the embed_flow snowplow schema * Modify `initial_published_at` to not be overridden * Implement analytics 4/7 1. public_link_copied 2. public_link_removed 3. public_embed_code_copied 4. static_embed_published 5. static_embed_unpublished * Prevent accidental ESLint log in Cypress * Differentiate `EmbeddingParametersSettings` from `EmbeddingParametersValues` We were mixing the type before, as the former one are the type of the setting values, not the actual values for the parameters. * Fix dashboard and card types * Fix `params` count for `static_embed_published` event * fixup! Prevent accidental ESLint log in Cypress * Fix ESlint from the result of upgrading ESLint package * Fix Snowplow schema enum to include null * Fully implement `static_embed_code_copied` * Finish embed_flow snowplow* Fix unit tests because markup change * Fix E2E tests * Fix E2E CI failure Apparently using `.realClick()` on copy button could fail locally, but pass on CI and vice-versa. I couldn't replicate this all the time. I'm not sure why it would fail locally. * Fix copy to clipboard not working on CI * Improve test readability * Remove extra test-id * Fix refactor `*CodeOptionId` * Restrict Snowplow schema * Revert unnecessary change * Apply Cal's suggestions for BE improvements Co-authored-by: Cal Herries <39073188+calherries@users.noreply.github.com> * Update src/metabase/util/embed.clj Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> * Fix backend linter error, hopefully. --------- Co-authored-by:
Mahatthana Nomsawadi <mahatthana.n@gmail.com> Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> Co-authored-by:
Nicolò Pretto <info@npretto.com>
Showing
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/ClientEmbedCodePane.tsx 11 additions, 8 deletions...s/EmbedModal/StaticEmbedSetupPane/ClientEmbedCodePane.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/CodeSample.tsx 9 additions, 7 deletions...components/EmbedModal/StaticEmbedSetupPane/CodeSample.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/EmbedModalContentStatusBar.tsx 7 additions, 1 deletion...Modal/StaticEmbedSetupPane/EmbedModalContentStatusBar.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/OverviewSettings.tsx 10 additions, 6 deletions...ents/EmbedModal/StaticEmbedSetupPane/OverviewSettings.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/ServerEmbedCodePane.tsx 30 additions, 20 deletions...s/EmbedModal/StaticEmbedSetupPane/ServerEmbedCodePane.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/StaticEmbedSetupPane.tsx 127 additions, 43 deletions.../EmbedModal/StaticEmbedSetupPane/StaticEmbedSetupPane.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/config.ts 11 additions, 6 deletions...blic/components/EmbedModal/StaticEmbedSetupPane/config.ts
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/tabs.ts 5 additions, 0 deletions...public/components/EmbedModal/StaticEmbedSetupPane/tabs.ts
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/tests/common.unit.spec.tsx 5 additions, 1 deletion...mbedModal/StaticEmbedSetupPane/tests/common.unit.spec.tsx
- frontend/src/metabase/public/components/EmbedModal/StaticEmbedSetupPane/tests/premium.unit.spec.tsx 3 additions, 9 deletions...bedModal/StaticEmbedSetupPane/tests/premium.unit.spec.tsx
- frontend/src/metabase/public/lib/analytics.ts 154 additions, 0 deletionsfrontend/src/metabase/public/lib/analytics.ts
- frontend/src/metabase/public/lib/code-templates.ts 32 additions, 13 deletionsfrontend/src/metabase/public/lib/code-templates.ts
- frontend/src/metabase/public/lib/code.ts 12 additions, 4 deletionsfrontend/src/metabase/public/lib/code.ts
- frontend/src/metabase/public/lib/embed.ts 5 additions, 5 deletionsfrontend/src/metabase/public/lib/embed.ts
- frontend/src/metabase/public/lib/types.ts 5 additions, 3 deletionsfrontend/src/metabase/public/lib/types.ts
- frontend/src/metabase/query_builder/actions/sharing.ts 4 additions, 1 deletionfrontend/src/metabase/query_builder/actions/sharing.ts
- frontend/src/metabase/query_builder/reducers.js 1 addition, 0 deletionsfrontend/src/metabase/query_builder/reducers.js
- frontend/src/metabase/ui/components/overlays/Popover/index.ts 0 additions, 3 deletions...tend/src/metabase/ui/components/overlays/Popover/index.ts
- frontend/src/metabase/ui/components/overlays/Popover/index.tsx 18 additions, 0 deletions...end/src/metabase/ui/components/overlays/Popover/index.tsx
- resources/migrations/001_update_migrations.yaml 32 additions, 0 deletionsresources/migrations/001_update_migrations.yaml
Loading
Please register or sign in to comment