From 006fcb03251058d301fafcff5d811ecaaff2988e Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Tue, 18 Feb 2025 19:53:06 -0600 Subject: [PATCH] Refine insight highlighted text --- src/admin/insights/AdminAppInsightsClient.tsx | 9 ++++----- src/components/Container.tsx | 2 +- src/platforms/github.ts | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/admin/insights/AdminAppInsightsClient.tsx b/src/admin/insights/AdminAppInsightsClient.tsx index d8aa91d4..c66ae318 100644 --- a/src/admin/insights/AdminAppInsightsClient.tsx +++ b/src/admin/insights/AdminAppInsightsClient.tsx @@ -66,14 +66,13 @@ const renderHighlightText = ( truncate = true, ) => {text} ; diff --git a/src/components/Container.tsx b/src/components/Container.tsx index 3c35c85e..50a05bb4 100644 --- a/src/components/Container.tsx +++ b/src/components/Container.tsx @@ -31,7 +31,7 @@ export default function Container({ case 'blue': return [ 'text-blue-900 dark:text-blue-300', 'bg-blue-50/50 dark:bg-blue-950/30', - 'border-blue-200 dark:border-blue-600/30', + 'border-blue-200 dark:border-blue-600/20', ]; case 'red': return [ 'text-red-600 dark:text-red-500/90', diff --git a/src/platforms/github.ts b/src/platforms/github.ts index a7a69b83..afb14efb 100644 --- a/src/platforms/github.ts +++ b/src/platforms/github.ts @@ -2,10 +2,10 @@ import { TEMPLATE_REPO_OWNER, TEMPLATE_REPO_NAME, TEMPLATE_REPO_BRANCH, + IS_DEVELOPMENT, } from '@/app/config'; const DEFAULT_BRANCH = 'main'; -const CACHE_GITHUB_REQUESTS = false; const GITHUB_API_ERROR = 'API rate limit exceeded'; interface RepoParams { @@ -17,7 +17,7 @@ interface RepoParams { const fetchGitHub = async ( url: string, - cacheRequest = CACHE_GITHUB_REQUESTS, + cacheRequest = IS_DEVELOPMENT, ) => { const data = await fetch( url,