feat: Change desktop UM experience (#5312)

* refactor: Hide prompt for desktop

* feat: add email field to personalization modal

* fix: update survey interfaces

* chore: enable personalization survey email key display condition

* feat: add users page upsell for desktop client

* feat: disable UM on desktop where possible

* refactor: Have a single function to decide whether UM is enabled

* feat: update community nodes upsell link

---------

Co-authored-by: Alex Grozav <alex@grozav.com>
Co-authored-by: krynble <omar@n8n.io>
Co-authored-by: freyamade <freya@n8n.io>
This commit is contained in:
Omar Ajoue
2023-02-08 10:42:22 +01:00
committed by GitHub
parent d8865aa917
commit 5e3e70b83b
19 changed files with 177 additions and 64 deletions

View File

@@ -92,6 +92,7 @@ import {
NOT_SURE_YET_GOAL,
AUTOMATION_GOAL_OTHER_KEY,
COMPANY_TYPE_KEY,
EMAIL_KEY,
SAAS_COMPANY_TYPE,
ECOMMERCE_COMPANY_TYPE,
MSP_INDUSTRY,
@@ -155,6 +156,16 @@ export default mixins(showMessage, workflowHelpers).extend({
...mapStores(useRootStore, useSettingsStore, useUIStore, useUsersStore),
survey() {
const survey: IFormInputs = [
{
name: EMAIL_KEY,
properties: {
label: this.$locale.baseText('personalizationModal.yourEmailAddress'),
type: 'text',
placeholder: this.$locale.baseText('personalizationModal.email'),
},
shouldDisplay: () =>
this.settingsStore.isDesktopDeployment && !this.usersStore.currentUser?.firstName,
},
{
name: COMPANY_TYPE_KEY,
properties: {