Swap lenses for focal lengths

This commit is contained in:
Sam Becker 2025-02-16 00:05:06 -06:00
parent 0e9109bb29
commit e4c1836862
3 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ import {
getPhotosMeta,
getUniqueCameras,
getUniqueFilmSimulations,
getUniqueLenses,
getUniqueFocalLengths,
getUniqueTags,
} from '@/photo/db/query';
import AdminAppInsightsClient from './AdminAppInsightsClient';
@ -38,7 +38,7 @@ export default async function AdminAppInsights() {
tags,
cameras,
filmSimulations,
lenses,
focalLengths,
codeMeta,
] = await Promise.all([
getPhotosMeta({ hidden: 'include' }),
@ -48,7 +48,7 @@ export default async function AdminAppInsights() {
getUniqueTags(),
getUniqueCameras(),
getUniqueFilmSimulations(),
getUniqueLenses(),
getUniqueFocalLengths(),
IS_VERCEL_GIT_PROVIDER_GITHUB || IS_DEVELOPMENT
? getGitHubMeta({
owner,
@ -87,7 +87,7 @@ export default async function AdminAppInsights() {
tagsCount: tags.length,
camerasCount: cameras.length,
filmSimulationsCount: filmSimulations.length,
lensesCount: lenses.length,
focalLengthsCount: focalLengths.length,
dateRange,
}}
debug={!IS_PRODUCTION}

View File

@ -62,7 +62,7 @@ export default function AdminAppInsightsClient({
tagsCount,
camerasCount,
filmSimulationsCount,
lensesCount,
focalLengthsCount,
dateRange,
},
debug,
@ -334,7 +334,7 @@ export default function AdminAppInsightsClient({
/>}
<ScoreCardRow
icon={<TbCone className="rotate-[270deg] translate-x-[-2px]" />}
content={pluralize(lensesCount, 'lens', 'lenses')}
content={pluralize(focalLengthsCount, 'focal length')}
/>
{descriptionWithSpaces && <ScoreCardRow
icon={<FaRegCalendar

View File

@ -30,7 +30,7 @@ export interface PhotoStats {
tagsCount: number
camerasCount: number
filmSimulationsCount: number
lensesCount: number
focalLengthsCount: number
dateRange?: PhotoDateRange
}