You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2afc92b
Browse filesBrowse the repository at this point in the historyBrowse files
Multiple issues prevented the photo from updating after clicking "Set as Primary":
1. getPhotoPath() only checked provider-suffixed photos, not the primary photo
- Now checks {personId}.jpg first, then falls back to provider photos
2. Photo priority was backwards - showed provider photos before primary
- PersonDetail header now shows primary photo first
- SparseTree row always shows primary photo (source of truth)
3. Browser caching "exists" endpoint responses (304 Not Modified)
- Added Cache-Control: no-cache headers to all photo exists endpoints
4. No FamilySearch-specific photo endpoint
- Added GET /augment/:personId/familysearch-photo endpoint
- Added getFsPhotoUrl() and hasFsPhotoProvider() client API methods
5. No cache busting for photo URLs after changes
- Added photoVersion state that increments on photo change
- Photo URLs now include ?v={version} parameter
Files changed:
- client/src/components/person/PersonDetail.tsx
- client/src/components/person/ProviderDataTable.tsx
- client/src/services/api.ts
- server/src/routes/augmentation.routes.ts
- server/src/routes/browser.routes.ts
- server/src/services/scraper.service.ts
0 commit comments