mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
chore(editor): Drop rag starter callout experiment flag (no-changelog) (#18039)
This commit is contained in:
@@ -2,9 +2,8 @@ import { computed } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { usePostHog } from '@/stores/posthog.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { RAG_STARTER_WORKFLOW_EXPERIMENT, VIEWS } from '@/constants';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { getRagStarterWorkflowJson } from '@/utils/easyAiWorkflowUtils';
|
||||
import { updateCurrentUserSettings } from '@/api/users';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
@@ -13,12 +12,11 @@ export function useCalloutHelpers() {
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const telemetry = useTelemetry();
|
||||
const posthogStore = usePostHog();
|
||||
const rootStore = useRootStore();
|
||||
const workflowsStore = useWorkflowsStore();
|
||||
const usersStore = useUsersStore();
|
||||
|
||||
const openRagStarterTemplate = async (nodeType?: string) => {
|
||||
const openRagStarterTemplate = (nodeType?: string) => {
|
||||
telemetry.track('User clicked on RAG callout', {
|
||||
node_type: nodeType ?? null,
|
||||
});
|
||||
@@ -34,13 +32,6 @@ export function useCalloutHelpers() {
|
||||
window.open(href, '_blank');
|
||||
};
|
||||
|
||||
const isRagStarterWorkflowExperimentEnabled = computed(() => {
|
||||
return (
|
||||
posthogStore.getVariant(RAG_STARTER_WORKFLOW_EXPERIMENT.name) ===
|
||||
RAG_STARTER_WORKFLOW_EXPERIMENT.variant
|
||||
);
|
||||
});
|
||||
|
||||
const isRagStarterCalloutVisible = computed(() => {
|
||||
const template = getRagStarterWorkflowJson();
|
||||
|
||||
@@ -53,7 +44,7 @@ export function useCalloutHelpers() {
|
||||
return false;
|
||||
}
|
||||
|
||||
return isRagStarterWorkflowExperimentEnabled.value;
|
||||
return true;
|
||||
});
|
||||
|
||||
const isCalloutDismissed = (callout: string) => {
|
||||
@@ -73,7 +64,6 @@ export function useCalloutHelpers() {
|
||||
|
||||
return {
|
||||
openRagStarterTemplate,
|
||||
isRagStarterWorkflowExperimentEnabled,
|
||||
isRagStarterCalloutVisible,
|
||||
isCalloutDismissed,
|
||||
dismissCallout,
|
||||
|
||||
Reference in New Issue
Block a user