Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing events #189

Merged
merged 2 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { createDocument } from './wizard/store';
import type { WizardStepsType } from '$lib/layout/wizard.svelte';
import { Dependencies } from '$lib/constants';
import { trackEvent } from '$lib/actions/analytics';

const databaseId = $page.params.database;
const collectionId = $page.params.collection;
Expand Down Expand Up @@ -42,6 +43,7 @@
message: 'Document has been created',
type: 'success'
});
trackEvent('submit_document_create');
invalidate(Dependencies.DOCUMENTS);
wizard.hide();
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { Dependencies } from '$lib/constants';
import { invalidate } from '$app/navigation';
import Attribute from './attribute.svelte';
import { trackEvent } from '$lib/actions/analytics';

let disableUpdate = true;
let currentDoc: string;
Expand Down Expand Up @@ -61,6 +62,9 @@

currentDoc = JSON.stringify($work);
invalidate(Dependencies.DOCUMENT);
trackEvent('submit_document_update', {
type: 'android'
});
disableUpdate = true;
addNotification({
message: 'Document was updated!',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { key } from './store';
import Scopes from '../scopes.svelte';
import Delete from './delete.svelte';
import { trackEvent } from '$lib/actions/analytics';

let showDelete = false;
let name: string = null;
Expand All @@ -37,6 +38,7 @@
$key.expire
);
invalidate(Dependencies.KEY);
trackEvent('submit_key_update_name');
addNotification({
type: 'success',
message: 'API Key name has been updated'
Expand All @@ -59,6 +61,7 @@
expire
);
invalidate(Dependencies.KEY);
trackEvent('submit_key_update_expire');
addNotification({
type: 'success',
message: 'API Key expiration has been updated'
Expand All @@ -81,6 +84,7 @@
$key.expire
);
invalidate(Dependencies.KEY);
trackEvent('submit_key_update_scopes');
addNotification({
type: 'success',
message: 'API Key scopes has been updated'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { onDestroy } from 'svelte';
import { onboarding } from '../../store';
import { Dependencies } from '$lib/constants';
import { trackEvent } from '$lib/actions/analytics';

async function onFinish() {
try {
Expand All @@ -24,6 +25,7 @@
if ($onboarding) {
invalidate(Dependencies.PROJECT);
}
trackEvent('submit_key_create');
goto(`/console/project-${$page.params.project}/overview/keys/${$id}`);
} catch (error) {
addNotification({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'android'
});
addNotification({
type: 'success',
message: 'Platform Package Name has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'apple-ios'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'apple-macos'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'apple-tvos'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'apple-watchos'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'flutter-android'
});
addNotification({
type: 'success',
message: 'Platform Package Name has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'flutter-ios'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'flutter-linux'
});
addNotification({
type: 'success',
message: 'Platform Package Name has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'flutter-macos'
});
addNotification({
type: 'success',
message: 'Platform Bundle ID has been updated'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { invalidate } from '$app/navigation';
import { trackEvent } from '$lib/actions/analytics';
import { CardGrid, Heading } from '$lib/components';
import { Dependencies } from '$lib/constants';
import { Button, Form, FormList, InputText } from '$lib/elements/forms';
Expand All @@ -26,6 +27,9 @@
$platform.hostname
);
invalidate(Dependencies.PLATFORM);
trackEvent('submit_platform_update', {
type: 'flutter-windows'
});
addNotification({
type: 'success',
message: 'Platform Package Name has been updated'
Expand Down