From 9c834fa8e06de34972818e957983f78f2bd6484b Mon Sep 17 00:00:00 2001 From: MatteoGabriele Date: Fri, 15 May 2026 18:17:54 +0200 Subject: [PATCH 1/5] feat(card): add third-party warning integration --- app/components/Analysis/Card.vue | 64 ++++++++++++++++++++++- app/composables/useIntegrations.ts | 7 +++ server/api/integration/unsafe-labs.get.ts | 41 +++++++++++++++ shared/types/integrations.ts | 6 +++ 4 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 app/composables/useIntegrations.ts create mode 100644 server/api/integration/unsafe-labs.get.ts create mode 100644 shared/types/integrations.ts diff --git a/app/components/Analysis/Card.vue b/app/components/Analysis/Card.vue index e776199..b6367c6 100644 --- a/app/components/Analysis/Card.vue +++ b/app/components/Analysis/Card.vue @@ -25,7 +25,7 @@ const { data, status, error } = useFetch( const { data: verifiedAutomations } = useVerifiedAutomations(); -const verifiedAutomation = computed(() => { +const verifiedAutomation = computed(() => { return verifiedAutomations.value?.find((account) => { return ( account.username.toLowerCase() === username.value?.toLowerCase() || @@ -34,6 +34,13 @@ const verifiedAutomation = computed(() => { }); }); +const { data: integrations } = useIntegrations(); +const matchedIntegration = computed(() => { + return integrations.value?.find((item) => { + return item.username.toLowerCase() === username.value?.toLowerCase(); + }); +}); + const hasCommunityFlag = computed(() => !!verifiedAutomation.value); const flagCreatedAt = computed(() => { @@ -120,12 +127,67 @@ const identifyAnalysis = computed(() => { useSeoAnalysis(identifyAnalysis, { hasCommunityFlag, }); + +const isActivityDisclosureOpen = ref(false);