mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
feat(editor): Implement suggested workflows experiment (no-changelog) (#17499)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -41,6 +41,28 @@ export const useCloudPlanStore = defineStore(STORES.CLOUD_PLAN, () => {
|
||||
|
||||
const currentUsageData = computed(() => state.usage);
|
||||
|
||||
const selectedApps = computed(
|
||||
() => currentUserCloudInfo.value?.selectedApps?.split(',').filter(Boolean) ?? [],
|
||||
);
|
||||
const codingSkill = computed(() => {
|
||||
const information = currentUserCloudInfo.value?.information;
|
||||
if (!information) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (
|
||||
!(
|
||||
'which_of_these_do_you_feel_comfortable_doing' in information &&
|
||||
information.which_of_these_do_you_feel_comfortable_doing &&
|
||||
Array.isArray(information.which_of_these_do_you_feel_comfortable_doing)
|
||||
)
|
||||
) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return information.which_of_these_do_you_feel_comfortable_doing.length;
|
||||
});
|
||||
|
||||
const trialExpired = computed(
|
||||
() =>
|
||||
state.data?.metadata?.group === 'trial' &&
|
||||
@@ -195,5 +217,7 @@ export const useCloudPlanStore = defineStore(STORES.CLOUD_PLAN, () => {
|
||||
checkForCloudPlanData,
|
||||
fetchUserCloudAccount,
|
||||
getAutoLoginCode,
|
||||
selectedApps,
|
||||
codingSkill,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user