feat(editor): Insights summary banner (#13424)

Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com>
This commit is contained in:
Csaba Tuncsik
2025-03-21 20:22:28 +01:00
committed by GitHub
parent 6992c36ebb
commit df474f3ccb
22 changed files with 559 additions and 34 deletions

View File

@@ -32,6 +32,9 @@ import { N8nCheckbox } from '@n8n/design-system';
import { pickBy } from 'lodash-es';
import { CREDENTIAL_EMPTY_VALUE } from 'n8n-workflow';
import { isCredentialsResource } from '@/utils/typeGuards';
import { useInsightsStore } from '@/features/insights/insights.store';
import InsightsSummary from '@/features/insights/components/InsightsSummary.vue';
import { useOverview } from '@/composables/useOverview';
const props = defineProps<{
credentialId?: string;
@@ -44,12 +47,14 @@ const sourceControlStore = useSourceControlStore();
const externalSecretsStore = useExternalSecretsStore();
const projectsStore = useProjectsStore();
const usersStore = useUsersStore();
const insightsStore = useInsightsStore();
const documentTitle = useDocumentTitle();
const route = useRoute();
const router = useRouter();
const telemetry = useTelemetry();
const i18n = useI18n();
const overview = useOverview();
type Filters = BaseFilters & { type?: string[]; setupNeeded?: boolean };
const updateFilter = (state: Filters) => {
@@ -235,7 +240,13 @@ onMounted(() => {
@update:search="onSearchUpdated"
>
<template #header>
<ProjectHeader />
<ProjectHeader>
<InsightsSummary
v-if="overview.isOverviewSubPage"
:loading="insightsStore.summary.isLoading"
:summary="insightsStore.summary.state"
/>
</ProjectHeader>
</template>
<template #default="{ data }">
<CredentialCard