summaryrefslogtreecommitdiff
path: root/src/lib/config.sync.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-24 21:17:01 +0300
committerPaul Buetow <paul@buetow.org>2026-06-24 21:17:01 +0300
commitfe89919d47296844364323e5b1dd9ce25511f3dd (patch)
treecb8976ae64b6faf6edf32d6a06981558b0aa2d3b /src/lib/config.sync.source.sh
parent3b0ac59ded124ad8c8038ef6b1b6094a495a04c2 (diff)
Extract shared list_photos/pick_random_photo helper (br0)
Collapse the duplicated "find photos, error on empty, random_index by ctx, return one" pattern into a single photo-list.source.sh exposing list_photos <dir> and pick_random_photo <dir> <ctx>. Consumers in album-photo-select, album-render, image-pipeline and stats-render now call the shared helpers; _stats_load_background_photos keeps its caching via a cached list_photos call rather than re-listing per filter page. Per-call-site random_index ctx strings are preserved, so selection semantics are unchanged. Sourced before its consumers in LIB_SOURCES (Justfile + src/shuriken.sh); bin/shuriken regenerated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'src/lib/config.sync.source.sh')
0 files changed, 0 insertions, 0 deletions