Skip to content

Commit

Permalink
fix: app_start/create_project event
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Jun 20, 2023
1 parent 7c21f2f commit fdb883b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const CreateProjectModal: React.FC = () => {
dispatch(setCreateProject({name, rootFolder}));
onCloseModalHandler();
} else {
trackEvent('app_start/create_project', {from: 'folder'});
dispatch(setTemplateProjectCreate({name, rootFolder}));
dispatch(openTemplateExplorer());
onCloseModalHandler();
Expand Down
1 change: 1 addition & 0 deletions src/components/organisms/NewProject/NewProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const NewProject: React.FC = () => {
'Not sure where to start? Explore a sample project containing everything you need to get started with just one click.',
itemAction: () => {
dispatch(openGitCloneModal({fromSampleProject: true}));
trackEvent('app_start/create_project', {from: 'sample'});
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/models/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type EventMap = {
numberOfValuesFiles: number;
executionTime: number;
};
'app_start/create_project': {from: 'scratch' | 'git' | 'template' | 'folder'; templateID?: string};
'app_start/create_project': {from: 'sample' | 'scratch' | 'git' | 'template' | 'folder'; templateID?: string};
'app_start/select_page': {page: string};
'app_start/select_project': undefined;
'project_list/open_project': undefined;
Expand Down

0 comments on commit fdb883b

Please sign in to comment.