fix(editor): Fix update panel icon display. Fix title on insights dashboard (#15593)

This commit is contained in:
Guillaume Jacquart
2025-05-26 13:42:53 +02:00
committed by GitHub
parent eb3dd199ab
commit 075b035d64
4 changed files with 9 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ const i18n = useI18n();
.link {
padding-left: 0px;
display: flex;
}
.link:hover {

View File

@@ -21,6 +21,7 @@ describe('InsightsDashboard', () => {
it('should render without error', () => {
mockedStore(useInsightsStore);
expect(() => renderComponent()).not.toThrow();
expect(document.title).toBe('Insights - n8n');
});
it('should update the selected time range', async () => {

View File

@@ -4,10 +4,11 @@ import { useTelemetry } from '@/composables/useTelemetry';
import InsightsSummary from '@/features/insights/components/InsightsSummary.vue';
import { useInsightsStore } from '@/features/insights/insights.store';
import type { InsightsDateRange, InsightsSummaryType } from '@n8n/api-types';
import { computed, defineAsyncComponent, ref, watch } from 'vue';
import { computed, defineAsyncComponent, onMounted, ref, watch } from 'vue';
import { TELEMETRY_TIME_RANGE, UNLICENSED_TIME_RANGE } from '../insights.constants';
import InsightsDateRangeSelect from './InsightsDateRangeSelect.vue';
import InsightsUpgradeModal from './InsightsUpgradeModal.vue';
import { useDocumentTitle } from '@/composables/useDocumentTitle';
const InsightsPaywall = defineAsyncComponent(
async () => await import('@/features/insights/components/InsightsPaywall.vue'),
@@ -116,6 +117,10 @@ watch(
immediate: true,
},
);
onMounted(() => {
useDocumentTitle().set(i18n.baseText('insights.heading'));
});
</script>
<template>

View File

@@ -3112,6 +3112,7 @@
"freeAi.credits.showError.claim.message": "Enable to claim credits",
"freeAi.credits.showWarning.workflow.activation.title": "You're using free OpenAI API credits",
"freeAi.credits.showWarning.workflow.activation.description": "To make sure your workflow runs smoothly in the future, replace the free OpenAI API credits with your own API key.",
"insights.heading": "Insights",
"insights.lastNDays": "Last {count} days",
"insights.lastNHours": "Last {count} hours",
"insights.months": "{count} months",