From a48bff2eee9fc786744ecedb122507e0ca76b729 Mon Sep 17 00:00:00 2001 From: Elvina Valieva Date: Fri, 3 Dec 2021 13:19:23 +0100 Subject: [PATCH] :zap: Survey updates (#2495) * feat: update survey * feat: appearance tweaks * chore: hardcode survey showing * chore: fix survey options * feat: show survey for users with workflows * chore: take personalization into account * chore: revert survey conditions * chore: remove select override * chore: remove transfer component from editor * chore: more expressive flag name * :zap: Minor improvements Co-authored-by: Jan Oberhauser --- packages/editor-ui/src/Interface.ts | 3 +- .../src/components/PersonalizationModal.vue | 174 ++++++++++++------ packages/editor-ui/src/constants.ts | 16 +- packages/editor-ui/src/modules/helper.ts | 4 +- packages/editor-ui/src/modules/settings.ts | 1 + packages/editor-ui/src/n8n-theme.scss | 23 --- packages/editor-ui/src/plugins/components.ts | 2 - 7 files changed, 140 insertions(+), 83 deletions(-) diff --git a/packages/editor-ui/src/Interface.ts b/packages/editor-ui/src/Interface.ts index 7332f35480..cef30c8f98 100644 --- a/packages/editor-ui/src/Interface.ts +++ b/packages/editor-ui/src/Interface.ts @@ -458,7 +458,7 @@ export interface IVersionNotificationSettings { infoUrl: string; } -export type IPersonalizationSurveyKeys = 'companySize' | 'codingSkill' | 'workArea' | 'otherWorkArea'; +export type IPersonalizationSurveyKeys = 'codingSkill' | 'companyIndustry' | 'companySize' | 'otherCompanyIndustry' | 'otherWorkArea' | 'workArea'; export type IPersonalizationSurveyAnswers = { [key in IPersonalizationSurveyKeys]: string | null @@ -700,4 +700,3 @@ export interface IBounds { maxX: number; maxY: number; } - diff --git a/packages/editor-ui/src/components/PersonalizationModal.vue b/packages/editor-ui/src/components/PersonalizationModal.vue index dc4be6efbf..37727a4ccc 100644 --- a/packages/editor-ui/src/components/PersonalizationModal.vue +++ b/packages/editor-ui/src/components/PersonalizationModal.vue @@ -18,23 +18,52 @@ Look out for things marked with a ✨. They are personalized to make n8n more relevant to you.
- - - + + + + + + + + + + + + + - + - + + + - - - - - - - - - +
+ + + + + + + + + + + + + + @@ -99,6 +122,8 @@ /> + +