wip: added a note about evaluation executions concurrency limit

This commit is contained in:
Eugene Molodkin 2025-01-08 13:10:44 +01:00
parent b5625a07e2
commit ac54d349e9
No known key found for this signature in database
2 changed files with 17 additions and 6 deletions

View file

@ -1,6 +1,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from 'vue'; import { computed } from 'vue';
import { useI18n } from '@/composables/useI18n'; import { useI18n } from '@/composables/useI18n';
import { WORKFLOW_EVALUATION_EXPERIMENT } from '@/constants';
import { usePostHog } from '@/stores/posthog.store';
const props = defineProps<{ const props = defineProps<{
runningExecutionsCount: number; runningExecutionsCount: number;
@ -14,14 +16,22 @@ const emit = defineEmits<{
const i18n = useI18n(); const i18n = useI18n();
const tooltipText = computed(() => const posthogStore = usePostHog();
i18n.baseText('executionsList.activeExecutions.tooltip', {
const tooltipText = computed(() => {
let text = i18n.baseText('executionsList.activeExecutions.tooltip', {
interpolate: { interpolate: {
running: props.runningExecutionsCount, running: props.runningExecutionsCount,
cap: props.concurrencyCap, cap: props.concurrencyCap,
}, },
}), });
);
if (posthogStore.isFeatureEnabled(WORKFLOW_EVALUATION_EXPERIMENT)) {
text += '\n' + i18n.baseText('executionsList.activeExecutions.evaluationNote');
}
return text;
});
const headerText = computed(() => { const headerText = computed(() => {
if (props.runningExecutionsCount === 0) { if (props.runningExecutionsCount === 0) {
@ -38,6 +48,7 @@ const headerText = computed(() => {
<template> <template>
<div data-test-id="concurrent-executions-header"> <div data-test-id="concurrent-executions-header">
<n8n-text>{{ headerText }}</n8n-text>
<n8n-tooltip> <n8n-tooltip>
<template #content> <template #content>
<div :class="$style.tooltip"> <div :class="$style.tooltip">
@ -60,9 +71,8 @@ const headerText = computed(() => {
> >
</div> </div>
</template> </template>
<font-awesome-icon icon="info-circle" class="mr-2xs" /> <font-awesome-icon icon="info-circle" class="ml-2xs" />
</n8n-tooltip> </n8n-tooltip>
<n8n-text>{{ headerText }}</n8n-text>
</div> </div>
</template> </template>

View file

@ -712,6 +712,7 @@
"executionsList.activeExecutions.none": "No active executions", "executionsList.activeExecutions.none": "No active executions",
"executionsList.activeExecutions.header": "{running}/{cap} active executions", "executionsList.activeExecutions.header": "{running}/{cap} active executions",
"executionsList.activeExecutions.tooltip": "Current active executions: {running} out of {cap}. This instance is limited to {cap} concurrent production executions.", "executionsList.activeExecutions.tooltip": "Current active executions: {running} out of {cap}. This instance is limited to {cap} concurrent production executions.",
"executionsList.activeExecutions.evaluationNote": "Evaluation runs appear in the list of executions but do not count towards your execution concurrency.",
"executionsList.allWorkflows": "All Workflows", "executionsList.allWorkflows": "All Workflows",
"executionsList.anyStatus": "Any Status", "executionsList.anyStatus": "Any Status",
"executionsList.autoRefresh": "Auto refresh", "executionsList.autoRefresh": "Auto refresh",