feat(hobbs-organizer): v1.2.0 photo frame (/photo) with Google Photos shared albums
- /photo full-screen slideshow (crossfade, blurred backdrop or fill, shuffle, date) - admin Photos tab: add shared-album links (check, sync now, status/stale warnings), slideshow options, browser-resized uploads - 6-hourly album sync scraping the share page (Library API no longer exposes user albums), caches 1920px + 64px copies in /data/photos - /api/health/photos -> 503 when an album has not synced for 48h - history/restore covers photo settings; min admin password length 6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E9NnVEico3WvFxLyjy1iW3
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { currentSlideshow, staleAlbums } from "../../../_lib/photos";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
/** 503 when any enabled album has not synced successfully for 48 hours. Probed by Prometheus. */
|
||||
export async function GET() {
|
||||
const stale = await staleAlbums();
|
||||
const { photos } = await currentSlideshow();
|
||||
return Response.json(
|
||||
{ status: stale.length ? "stale" : "ok", photos: photos.length, staleAlbums: stale.map(({ title, lastSuccessAt, lastError }) => ({ title, lastSuccessAt, lastError })) },
|
||||
{ status: stale.length ? 503 : 200, headers: { "Cache-Control": "no-store" } },
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user