Commit Graph

662 Commits

Author SHA1 Message Date
Strtus
b9bef5e264 Load gallery images directly from R2 CDN, bypassing Next image proxy.
Use unoptimized next/image with pre-sized R2 URLs (-sm/-md/-lg) when a public R2 domain is configured. Falls back to the original file if a sized variant is missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 20:03:47 +08:00
Strtus
8e6df1e70c Simplify About page to title, subhead, and description only.
Remove avatar/hero photos and gallery stats from the public About view and admin editor, and add env-backed defaults for ABOUT_TITLE and ABOUT_SUBHEAD.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 17:16:31 +08:00
Strtus
6a01efce18 Add static generation throttles for constrained build environments
Allow disabling static generation and tuning static params limits via env vars to reduce build output size on low-disk CI providers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-19 00:58:05 +08:00
Sam Becker
645110fc36 Refactor redis config 2026-05-09 15:57:27 -05:00
João Pedro Sconetto
175970252c
fix(app): add normalize func for redis url (#391)
- solves issue when providers use rediss:// instead of https://
2026-05-09 15:48:28 -05:00
John
86d4f3dfca
Add masonry layout for photo grids (#390)
* add masonry layout for photo grids

- NEXT_PUBLIC_MASONRY_GRID env variable to turn masonry layout on and
off
- added PhotoGridMasonry.tsx to handle masonry layout

* fixed albums showing all photos when masonry grid is enabled

* only render infinite photo scroll for masonry grid when total photo count is greater than loaded photos

* fixed masonry grid lcp warnings

* add NEXT_PUBLIC_MASONRY_GRID description to README

* Use custom icon for masonry layout

* Add masonry to in-app config

* Simplify masonry architecture

---------

Co-authored-by: Sam Becker <sam@sambecker.com>
2026-05-02 16:01:08 -05:00
Sam Becker
f3b3b82c6c Improve rate limit config compatibility 2026-04-10 19:12:36 -05:00
Sam Becker
4ab56b603f Stop displaying 0ev exposure compensation by default 2026-03-08 13:03:56 -05:00
Sam Becker
4f5461e327 Refine default about description 2026-03-01 23:19:26 -06:00
Sam Becker
5970bfb850
About Page (#378)
* Highlight /about in nav

* Refine full frame icon

* Add timestamp to /about

* Add /about to cmdk menu

* Enrich /about content

* Make /about categories responsive

* Enlarge app nav buttons

* Add /about richer categories

* Widen main nav buttons

* Add more /about category content

* Catch db errors in /about

* Update key /about image

* Add /about avatar

* Add jest TextEncoder polyfill

* Refactor sidebar text configuration

* Show /about hero photo meta

* Hoist about content to server page

* Hide admin email on small screens

* Add basic about page form

* Finalize basic /about upsert functionality

* Make /about/edit safe for blank templates
* Add configuration to hide /about page

* Add default /about title text

* Add interactive photos to /about edit form

* Apply final /about i18n

* Ensure /about static optimization

* Add CTA for admins to add /about descriptions

* Add convenience for accepting full photo urls

* Add photo placeholder icon

* Show /about empty state when there are no photos

* Hide sort control when in app empty state
2026-02-26 09:32:17 -06:00
Sam Becker
51be78e597 Redirect to photo detail after editing 2026-02-21 18:16:17 -06:00
Sam Becker
3607d51c06
Select All Photos (2 of 2) (#375)
* Enable select all toggle

* Extend category path test coverage

* Preview queries when selecting all

* Hoist select all query count to app state

* Refine select photo behavior/presentation

* Refactor batch edit actions

* Refactor limit handling in path-based photo queries

* Show all tags in admin views

* Fix select all z-order
2026-02-16 09:23:28 -06:00
Sam Becker
a63f2c3fe3
Select All Photos (1 of 2) (#372)
* Add 'select all photos' to app state

* Create general purpose bulk photo action

* Fix infinite scroll pagination, temporarily hide "select all"

* Refine batch edit behavior

* Add admin endpoints to check storage

* Add missing storage count

* Refine missing file presentation

* Finalize storage status page

* Store image-dependent photo fields when reuploading

* Move storage checks behind flag
2026-02-12 22:28:37 -06:00
Sam Becker
3e3f163aa9 Refine reupload input behavior 2026-02-10 22:46:44 -06:00
Sam Becker
0b47d9d618 Remove leading v from Node.js debug version 2026-01-31 15:15:45 -06:00
Sam Becker
6b4c4970a3 Add react version to debugging 2026-01-30 21:13:34 -06:00
Sam Becker
545a360068 Debug node version 2026-01-30 20:58:32 -06:00
Sam Becker
3edc64d5cf Allow AI model override 2026-01-30 20:42:47 -06:00
Sam Becker
bcb37d93e6 Loosen Redis config check 2026-01-30 20:21:37 -06:00
Sam Becker
0e97d292a1 Refine Nikon implementation 2025-12-30 15:29:27 -05:00
Sam Becker
32d39f7e67 Add Next.js version to config export 2025-11-14 12:06:39 -08:00
Sam Becker
667328b166 Conditionally add build identifier to <head /> 2025-11-08 15:22:33 -06:00
Sam Becker
c8ea51cdd1
Next.js 16 (#351)
* Upgrade to next.js 16

* Allow static generation on preview

* Add note for disabled ref rule

* Report Next.js version in App Insights

* Link Next.js version
2025-11-02 11:23:52 -06:00
Sam Becker
dbf55badf6
Optimize Next.js 16 behavior (#349)
* Remove unused desktop redirect component

* Tweak useEffect/setState interactions

* Address more next.js 16 linting

* Tweak secret loading

* Finish linting setstate/useeffect interactions

* Disable ref lint warnings
2025-10-27 09:49:16 -05:00
Sam Becker
70abf8178d Remove synchronous setstate call in hover check 2025-10-26 11:00:09 -05:00
Sam Becker
e114343d1f Remove unused pathname hook 2025-10-26 10:32:09 -05:00
Sam Becker
b9c31153f2 Remove db optimization experiment 2025-10-26 10:24:47 -05:00
Sam Becker
5591635a1e
Next.js 16 (#347)
* Upgrade to Next.js 16, resolve/suppress linting errors

* Update usage of revalidateTag()

* Rename proxy.ts export

* Refactor infinite scroll data handling
2025-10-25 21:35:30 -05:00
Sam Becker
a00e38b395
Add Locations to Albums (#334) 2025-10-15 09:37:16 -05:00
Sam Becker
4a01ee4f9e Prevent incorrect magnifying glass animations 2025-10-04 14:55:11 -05:00
Sam Becker
3b6001602a
Mobile Sidebar (#330)
* Show top entities on mobile

* Add config

* Localize 'more'/'less' text
2025-10-02 21:46:58 -05:00
Sam Becker
47fe1cf383 Add next/script customization 2025-09-21 14:30:29 -05:00
Sam Becker
8482a76dd6 Fix social network key display 2025-09-21 11:04:56 -05:00
Sam Becker
7cad939694 Add link to footer admin email 2025-09-21 10:02:16 -05:00
Sam Becker
1a592aca26 Stop categorizing database as Vercel 2025-09-21 09:48:04 -05:00
Sam Becker
ee9f3f4dc2
Album upgrades (#326)
* Add tag-to-album upgrade, introduce tag/album ••• menus

* Refine entity ••• menus

* Add album tagging to "Select ..." mode

* Finalize batch select/upload add album

* Refine final tag/album interactions

* Refine upgradeTagToAlbum capitalization

* Fix batch album upload, z-index issues

* Refine readonly styles
2025-09-18 22:41:12 -05:00
Sam Becker
1e66815a3d
Albums (#315)
* Make /db top-level module

* Create Album type

* Pin pnpm version

* Generalize query modules

* Finalize album postgres data type

* Remove temp albums prop

* Create basic album primitives

* Fix temporary album bugs

* Add albums to sidebar

* Disambiguate string date utilities

* Localize album language

* Add album join option to core photo queries

* Tweak album icon placement

* Add album photo detail page

* Refine Album data model

* Display album subhead when available

* Generate album og images

* Finalize album share modal

* Add albums to sitemap

* Statically pre-render albums

* Display tags on albums

* Add albums to cmd-k menu

* Handle album tag overflow

* Stop truncating album subheads

* Create core admin album views

* Make albums editable

* Create/edit albums on photo save, add delete album
2025-09-16 21:47:22 -05:00
Sam Becker
38c085da59 Tweak prefixed redis creds 2025-09-12 22:13:18 -05:00
Sam Becker
f07f8e44b9 Make Redis connection resilient to more configurations 2025-09-12 21:45:11 -05:00
Sam Becker
0de8087fb4 Flag deprecated environment variables 2025-09-11 21:14:06 -05:00
Sam Becker
9e8242828c Add recommended keys for legacy env vars 2025-09-11 09:37:03 -05:00
Sam Becker
7c9ce0d26c
Expand social networks (#308)
* Create utility for managing env var-based key lists

* Add expanded social content

* Finalize content for social networks additions

* Add social network config to README
2025-09-10 23:22:26 -05:00
Sam Becker
1f499e697e Move batch editing to pure url-based state 2025-09-06 23:49:10 -05:00
Sam Becker
1a72a84497 Bump deps 2025-09-01 21:03:25 -05:00
Sam Becker
b9b3ddc79f Remove console statements 2025-08-28 09:23:49 -05:00
Sam Becker
200f73a5ca Warm redis store once per client session 2025-08-28 09:20:10 -05:00
Sam Becker
f7de56a7b9 Refine storage config 2025-08-27 20:46:57 -05:00
Christopher Jeffrey
363354d797
feat: add minio support (#297) 2025-08-27 19:20:56 -05:00
Simon
ba7af69592
Fix html lang (#291) 2025-08-14 16:50:40 +02:00
Sam Becker
0d02306ba0 Migrate to dedicated indent style line plugin 2025-08-08 23:29:00 -05:00