From e9966224ea555ce8f3a48872887a73ef879e47c3 Mon Sep 17 00:00:00 2001 From: OlegIvaniv Date: Mon, 10 Jul 2023 17:11:42 +0200 Subject: [PATCH] feat(editor): Load fixed template list as experiment (#6632) * feat(editor): Load fixed template list as experiment Signed-off-by: Oleg Ivaniv * Improve templates loading Signed-off-by: Oleg Ivaniv * get rid of endResult message Signed-off-by: Oleg Ivaniv * Do not lazy-load when fixedListExperiment Signed-off-by: Oleg Ivaniv --------- Signed-off-by: Oleg Ivaniv --- .../src/components/CollectionsCarousel.vue | 2 +- .../src/components/TemplateDetails.vue | 2 + .../editor-ui/src/components/TemplateList.vue | 6 +- packages/editor-ui/src/constants.ts | 7 +- .../src/plugins/i18n/locales/en.json | 1 - packages/editor-ui/src/router.ts | 9 +- .../editor-ui/src/stores/posthog.store.ts | 13 --- .../src/views/TemplatesSearchView.vue | 90 ++++++++++++------- 8 files changed, 71 insertions(+), 59 deletions(-) diff --git a/packages/editor-ui/src/components/CollectionsCarousel.vue b/packages/editor-ui/src/components/CollectionsCarousel.vue index f17197bebe..5d3ffab753 100644 --- a/packages/editor-ui/src/components/CollectionsCarousel.vue +++ b/packages/editor-ui/src/components/CollectionsCarousel.vue @@ -31,7 +31,7 @@ import type { PropType } from 'vue'; import type { ITemplatesCollection } from '@/Interface'; import Card from '@/components/CollectionWorkflowCard.vue'; import CollectionCard from '@/components/CollectionCard.vue'; -import VueAgile from 'vue-agile'; +import { VueAgile } from 'vue-agile'; import { genericHelpers } from '@/mixins/genericHelpers'; diff --git a/packages/editor-ui/src/components/TemplateDetails.vue b/packages/editor-ui/src/components/TemplateDetails.vue index 77c3881658..d13f6c1907 100644 --- a/packages/editor-ui/src/components/TemplateDetails.vue +++ b/packages/editor-ui/src/components/TemplateDetails.vue @@ -55,6 +55,7 @@ import { abbreviateNumber, filterTemplateNodes } from '@/utils'; import type { ITemplatesNode, ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface'; import { mapStores } from 'pinia'; import { useTemplatesStore } from '@/stores/templates.store'; +import TimeAgo from '@/components/TimeAgo.vue'; export default defineComponent({ name: 'TemplateDetails', @@ -72,6 +73,7 @@ export default defineComponent({ components: { NodeIcon, TemplateDetailsBlock, + TimeAgo, }, computed: { ...mapStores(useTemplatesStore), diff --git a/packages/editor-ui/src/components/TemplateList.vue b/packages/editor-ui/src/components/TemplateList.vue index c1aba56d91..ce055002f9 100644 --- a/packages/editor-ui/src/components/TemplateList.vue +++ b/packages/editor-ui/src/components/TemplateList.vue @@ -1,6 +1,6 @@