From 1f4816199d3a17e0e7c4911b4d558378e1b7489a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Mon, 2 Mar 2026 23:25:35 +0300 Subject: [PATCH] refactor(widgets): update shouldInject logic for skills and tastes pages --- src/lib/plugins/widgets/book.tsx | 4 ++-- src/lib/plugins/widgets/coderabbit.ts | 4 ++-- src/lib/plugins/widgets/textream.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/plugins/widgets/book.tsx b/src/lib/plugins/widgets/book.tsx index 9ee21ac0..45772106 100644 --- a/src/lib/plugins/widgets/book.tsx +++ b/src/lib/plugins/widgets/book.tsx @@ -161,8 +161,8 @@ export const bookWidget: WidgetPlugin = { maxCount: 4, }, shouldInject: (context) => { - // Don't inject on the skills page - if (context.filters?.type === "SKILL") { + // Don't inject on the skills or tastes pages + if (context.filters?.type === "SKILL" || context.filters?.type === "TASTE") { return false; } return true; diff --git a/src/lib/plugins/widgets/coderabbit.ts b/src/lib/plugins/widgets/coderabbit.ts index ec7beb9f..b3df800d 100644 --- a/src/lib/plugins/widgets/coderabbit.ts +++ b/src/lib/plugins/widgets/coderabbit.ts @@ -57,8 +57,8 @@ Provide your review in a clear, actionable format with specific line references shouldInject: (context) => { const { filters } = context; - // Don't inject on the skills page - if (filters?.type === "SKILL") { + // Don't inject on the skills or tastes pages + if (filters?.type === "SKILL" || filters?.type === "TASTE") { return false; } diff --git a/src/lib/plugins/widgets/textream.tsx b/src/lib/plugins/widgets/textream.tsx index d7e306c1..a87ee137 100644 --- a/src/lib/plugins/widgets/textream.tsx +++ b/src/lib/plugins/widgets/textream.tsx @@ -122,8 +122,8 @@ export const textreamWidget: WidgetPlugin = { shouldInject: (context) => { const { filters } = context; - // Don't inject on the skills page - if (filters?.type === "SKILL") { + // Don't inject on the skills or tastes pages + if (filters?.type === "SKILL" || filters?.type === "TASTE") { return false; }