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:
Romeo Balta
2025-07-21 14:45:07 +01:00
committed by GitHub
parent 785b75d279
commit e0cb747f0d
11 changed files with 331 additions and 28 deletions

View File

@@ -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,
};
});