Skip to content

Commit

Permalink
🐛 Fix personalisation bug (#2652)
Browse files Browse the repository at this point in the history
* fix personlization bug

* fix translation issues

* fix suggested nodes

* update key
  • Loading branch information
mutdmour authored Jan 7, 2022
1 parent 4cefe98 commit 6a2db6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions packages/editor-ui/src/components/PersonalizationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@
<n8n-input-label :label="$locale.baseText('personalizationModal.howAreYourCodingSkills')">
<n8n-select :value="values[CODING_SKILL_KEY]" :placeholder="$locale.baseText('personalizationModal.select')" @change="(value) => values[CODING_SKILL_KEY] = value">
<n8n-option
:label="baseText('personalizationModal.neverCoded')"
:label="$locale.baseText('personalizationModal.neverCoded')"
value="0"
/>
<n8n-option
:label="baseText('personalizationModal.iGetStuckTooQuicklyToAchieveMuch')"
:label="$locale.baseText('personalizationModal.iGetStuckTooQuicklyToAchieveMuch')"
value="1"
/>
<n8n-option
:label="baseText('personalizationModal.iCanCodeSomeUsefulThingsBut')"
:label="$locale.baseText('personalizationModal.iCanCodeSomeUsefulThingsBut')"
value="2"
/>
<n8n-option
:label="baseText('personalizationModal.iKnowEnoughToBeDangerousBut')"
:label="$locale.baseText('personalizationModal.iKnowEnoughToBeDangerousBut')"
value="3"
/>
<n8n-option
:label="baseText('personalizationModal.iCanFigureMostThingsOut')"
:label="$locale.baseText('personalizationModal.iCanFigureMostThingsOut')"
value="4"
/>
<n8n-option
:label="baseText('personalizationModal.iCanDoAlmostAnythingIWant')"
:label="$locale.baseText('personalizationModal.iCanDoAlmostAnythingIWant')"
value="5"
/>
</n8n-select>
</n8n-input-label>

<n8n-input-label :label="$locale.baseText('personalizationModal.whichOfTheseAreasDoYouMainlyWorkIn')">
<n8n-input-label :label="$locale.baseText('personalizationModal.whichAreasDoYouMainlyWorkIn')">
<n8n-select :value="values[WORK_AREA_KEY]" multiple :placeholder="$locale.baseText('personalizationModal.select')" @change="(value) => onMultiInput(WORK_AREA_KEY, value)">
<n8n-option :value="FINANCE_WORK_AREA" :label="$locale.baseText('personalizationModal.finance')" />
<n8n-option :value="HR_WORK_AREA" :label="$locale.baseText('personalizationModal.hr')" />
Expand Down
2 changes: 1 addition & 1 deletion packages/editor-ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const TRIGGER_NODE_FILTER = 'Trigger';
export const ALL_NODE_FILTER = 'All';
export const UNCATEGORIZED_CATEGORY = 'Miscellaneous';
export const UNCATEGORIZED_SUBCATEGORY = 'Helpers';
export const PERSONALIZED_CATEGORY = 'Suggested Nodes';
export const PERSONALIZED_CATEGORY = 'Suggested Nodes';
export const HIDDEN_NODES = [START_NODE_TYPE];

export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
Expand Down
18 changes: 9 additions & 9 deletions packages/editor-ui/src/plugins/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,13 @@
"continue": "Continue",
"eCommerce": "eCommerce",
"errorWhileSubmittingResults": "Error while submitting results",
"executiveTeam": "Executive Team",
"finance": "finance",
"executiveTeam": "Executive team",
"finance": "Finance",
"getStarted": "Get started",
"government": "Government",
"healthcare": "Healthcare",
"howAreYourCodingSkills": "How are your coding skills",
"howBigIsYourCompany": "How big is your company",
"howAreYourCodingSkills": "How are your coding skills?",
"howBigIsYourCompany": "How big is your company?",
"hr": "HR",
"iCanCodeSomeUsefulThingsBut": "2. I can code some useful things, but I spend a lot of time stuck",
"iCanDoAlmostAnythingIWant": "5. I can do almost anything I want, easily (pro coder)",
Expand All @@ -682,12 +682,12 @@
"iKnowEnoughToBeDangerousBut": "3. I know enough to be dangerous, but I'm no expert",
"imNotUsingN8nForWork": "I'm not using n8n for work",
"itEngineering": "IT / Engineering",
"legal": "legal",
"lessThan20people": "Less than 20 people",
"legal": "Legal",
"lessThan20People": "Less than 20 people",
"lookOutForThingsMarked": "Look out for things marked with a ✨. They are personalized to make n8n more relevant to you.",
"marketing": "Marketing",
"neverCoded": "0 (Never coded)",
"operations": "operations",
"operations": "Operations",
"otherPleaseSpecify": "Other (please specify)",
"people": "people",
"proCoder": "Pro coder",
Expand All @@ -704,7 +704,7 @@
"thanks": "Thanks!",
"theseQuestionsHelpUs": "These questions help us tailor n8n to you",
"whichIndustriesIsYourCompanyIn": "Which industries is your company in?",
"whichOfTheseAreasDoYouMainlyWorkIn": "Which of these areas do you mainly work in?"
"whichAreasDoYouMainlyWorkIn": "Which areas do you mainly work in?"
},
"pushConnection": {
"showMessage": {
Expand Down Expand Up @@ -1040,4 +1040,4 @@
"timeoutWorkflow": "Timeout Workflow",
"timezone": "Timezone"
}
}
}

0 comments on commit 6a2db6d

Please sign in to comment.