From d77ad59eb2cb6603dcd64495ad06d158b0f39f1d Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 11 Jul 2025 20:16:24 -0500 Subject: [PATCH] Make recents category default --- README.md | 2 +- src/category/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c5b02c6..d67d9b47 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ Application behavior can be changed by configuring the following environment var - `NEXT_PUBLIC_CATEGORY_VISIBILITY` - Comma-separated value controlling which photo sets appear in grid sidebar and CMD-K menu, and in what order. For example, you could move cameras above tags, and hide film simulations, by updating to `cameras,tags,lenses,recipes`. - Accepted values: - - `recents` + - `recents` (default) - `years` - `tags` (default) - `cameras` (default) diff --git a/src/category/index.ts b/src/category/index.ts index d0fa8bd4..9dac10a9 100644 --- a/src/category/index.ts +++ b/src/category/index.ts @@ -24,6 +24,7 @@ export type CategoryKey = (typeof CATEGORY_KEYS)[number]; export type CategoryKeys = CategoryKey[]; export const DEFAULT_CATEGORY_KEYS: CategoryKeys = [ + 'recents', 'tags', 'cameras', 'lenses',