From a76fa30331e47ad3acee0d9bf25edf6f5b51941a Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Thu, 9 May 2024 13:40:46 -0500 Subject: [PATCH] Document matte setting --- README.md | 1 + src/components/ChecklistRow.tsx | 2 +- src/site/SiteChecklistClient.tsx | 14 ++++++++++++++ src/site/config.ts | 7 +++++++ src/state/AppStateProvider.tsx | 3 ++- 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d22110fc..940cc140 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ Application behavior can be changed by configuring the following environment var - `NEXT_PUBLIC_PRO_MODE = 1` enables higher quality image storage (results in increased storage usage) - `NEXT_PUBLIC_STATICALLY_OPTIMIZE_PAGES = 1` enables static optimization for pages, i.e., renders pages at build time (results in increased project usage)—⚠️ _Experimental_ - `NEXT_PUBLIC_STATICALLY_OPTIMIZE_OG_IMAGES = 1` enables static optimization for OG images, i.e., renders images at build time (results in increased project usage)—⚠️ _Experimental_ +- `NEXT_PUBLIC_MATTE_SETTING = light` constrains the size of each photo, and enables a surrounding border (can be set to `light` or `dark`) - `NEXT_PUBLIC_BLUR_DISABLED = 1` prevents image blur data being stored and displayed (potentially useful for limiting Postgres usage) - `NEXT_PUBLIC_GEO_PRIVACY = 1` disables collection/display of location-based data - `NEXT_PUBLIC_IGNORE_PRIORITY_ORDER = 1` prevents `priority_order` field affecting photo order diff --git a/src/components/ChecklistRow.tsx b/src/components/ChecklistRow.tsx index efec5c21..4b4c68e4 100644 --- a/src/components/ChecklistRow.tsx +++ b/src/components/ChecklistRow.tsx @@ -29,7 +29,7 @@ export default function ChecklistRow({ />
{title} diff --git a/src/site/SiteChecklistClient.tsx b/src/site/SiteChecklistClient.tsx index 546ce113..e07129cb 100644 --- a/src/site/SiteChecklistClient.tsx +++ b/src/site/SiteChecklistClient.tsx @@ -44,6 +44,7 @@ export default function SiteChecklistClient({ isStaticallyOptimized, arePagesStaticallyOptimized, areOGImagesStaticallyOptimized, + matteSetting, isBlurEnabled, isGeoPrivacyEnabled, isPriorityOrderEnabled, @@ -377,6 +378,19 @@ export default function SiteChecklistClient({ 'translate-y-[4.5px]', )} + + Set environment variable to {'"light"'} or {'"dark"'} to + {' '} + constrain the size of each photo, and enable a surrounding border: + {renderEnvVars(['NEXT_PUBLIC_MATTE_SETTING'])} + (); + useState(MATTE_SETTING); const [swrTimestamp, setSwrTimestamp] = useState(Date.now()); const [userEmail, setUserEmail] =