From 94af65c0453c24552374a1f4437a658fa56081f4 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 10 Jul 2025 21:19:14 -0500 Subject: [PATCH] Remove tag order admin insight --- src/admin/insights/AdminAppInsights.tsx | 1 - src/admin/insights/AdminAppInsightsClient.tsx | 19 ------------------- src/admin/insights/index.ts | 9 --------- 3 files changed, 29 deletions(-) diff --git a/src/admin/insights/AdminAppInsights.tsx b/src/admin/insights/AdminAppInsights.tsx index 64421b2f..b88b4fb9 100644 --- a/src/admin/insights/AdminAppInsights.tsx +++ b/src/admin/insights/AdminAppInsights.tsx @@ -46,7 +46,6 @@ export default async function AdminAppInsights() { photosCount, photosCountNeedSync, photosCountPortrait, - tagsCount: tags.length, })} photoStats={{ photosCount, diff --git a/src/admin/insights/AdminAppInsightsClient.tsx b/src/admin/insights/AdminAppInsightsClient.tsx index c4118ae0..c1db3885 100644 --- a/src/admin/insights/AdminAppInsightsClient.tsx +++ b/src/admin/insights/AdminAppInsightsClient.tsx @@ -4,7 +4,6 @@ import ScoreCard from '@/components/ScoreCard'; import ScoreCardRow from '@/components/ScoreCardRow'; import { dateRangeForPhotos } from '@/photo'; import { FaCircleInfo, FaRegCalendar } from 'react-icons/fa6'; -import { HiMiniArrowsUpDown } from 'react-icons/hi2'; import { MdAspectRatio } from 'react-icons/md'; import { PiWarningBold } from 'react-icons/pi'; import { TbSparkles } from 'react-icons/tb'; @@ -117,7 +116,6 @@ export default function AdminAppInsightsClient({ noConfiguredMeta, photosNeedSync, photoMatting, - camerasFirst, gridFirst, noStaticOptimization, } = insights; @@ -385,23 +383,6 @@ export default function AdminAppInsightsClient({ /> } />} - {(camerasFirst || debug) && } - content="Move cameras above tags in sidebar" - expandContent={<> - Now that you have more than a few tags, consider - showing cameras first in the sidebar by setting - {' '} - - } - />} {(gridFirst || debug) && } content="Grid homepage" diff --git a/src/admin/insights/index.ts b/src/admin/insights/index.ts index 59aab3d9..4267d40e 100644 --- a/src/admin/insights/index.ts +++ b/src/admin/insights/index.ts @@ -9,7 +9,6 @@ import { MATTE_PHOTOS, IS_META_DESCRIPTION_CONFIGURED, IS_META_TITLE_CONFIGURED, - CATEGORY_VISIBILITY, HAS_STATIC_OPTIMIZATION, GRID_HOMEPAGE_ENABLED, AI_TEXT_GENERATION_ENABLED, @@ -18,7 +17,6 @@ import { PhotoDateRange } from '@/photo'; import { getGitHubMeta } from '@/platforms/github'; const BASIC_PHOTO_INSTALLATION_COUNT = 32; -const TAG_COUNT_THRESHOLD = 12; const AdminAppInsightCode = [ 'noFork', @@ -32,7 +30,6 @@ const _INSIGHTS_TEMPLATE = [ 'noConfiguredDomain', 'noConfiguredMeta', 'photoMatting', - 'camerasFirst', 'gridFirst', 'noStaticOptimization', ] as const; @@ -129,11 +126,9 @@ export const getAllInsights = ({ photosCountNeedSync, photosCount, photosCountPortrait, - tagsCount, }: Parameters[0] & { photosCount: number photosCountPortrait: number - tagsCount: number }) => ({ ...getSignificantInsights({ codeMeta, photosCountNeedSync }), noFork: !codeMeta?.isForkedFromBase && !codeMeta?.isBaseRepo, @@ -142,10 +137,6 @@ export const getAllInsights = ({ !IS_META_TITLE_CONFIGURED || !IS_META_DESCRIPTION_CONFIGURED, photoMatting: photosCountPortrait > 0 && !MATTE_PHOTOS, - camerasFirst: ( - tagsCount > TAG_COUNT_THRESHOLD && - CATEGORY_VISIBILITY[0] !== 'cameras' - ), gridFirst: ( photosCount >= BASIC_PHOTO_INSTALLATION_COUNT && !GRID_HOMEPAGE_ENABLED