Improve 3D gallery UX, placeholders, and image accuracy.
Add multi-row dynamic halls, eye-level camera, canvas covers for missing works, preserved view when returning from detail, and corrected image overrides for Kauffman and Raphael. Update documentation and add fetched painting assets. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
08f99d7a29
commit
792a0b1a77
@@ -63,6 +63,7 @@ When no image is available:
|
||||
|
||||
- `/placeholder-portrait.svg` — timeline / movement band portraits
|
||||
- `/placeholder-art.svg` — paintings in lists and detail view
|
||||
- **3D gallery** — draped **canvas cover** inside the frame (`CanvasCover` in `VirtualGallery.tsx`); shown when there is no local file, the fetch failed, or the texture has not loaded yet
|
||||
|
||||
These live in `client/public/` (and `client/dist/` after build).
|
||||
|
||||
@@ -75,4 +76,16 @@ These live in `client/public/` (and `client/dist/` after build).
|
||||
|
||||
## Image fetcher overrides
|
||||
|
||||
`scripts/image-fetcher.js` includes hand-maintained overrides for ambiguous Wikipedia titles and direct URLs (e.g. works whose Commons name does not match the article title). Extend `PAINTING_WIKI_OVERRIDES` and `DIRECT_IMAGE_OVERRIDES` when automated resolution fails.
|
||||
`scripts/image-fetcher.js` includes hand-maintained overrides for ambiguous Wikipedia titles and direct URLs (e.g. works whose Commons name does not match the article title, or when museum search returns the wrong work). Extend these maps when automated resolution fails:
|
||||
|
||||
| Map | Use when |
|
||||
|-----|----------|
|
||||
| `PAINTING_WIKI_OVERRIDES` | DB / seed title should resolve to a different Wikipedia or Wikidata label |
|
||||
| `DIRECT_IMAGE_OVERRIDES` | You know the exact Commons URL (bypasses Met / Art Institute false matches) |
|
||||
|
||||
Examples already in the repo:
|
||||
|
||||
- `Self-Portrait Hesitating` → Kauffman, Wikimedia Commons (National Trust)
|
||||
- `Cherubs of the Sistine Madonna` → Raphael’s putti detail, Wikimedia Commons
|
||||
|
||||
After adding an override, delete any wrong cached file under `data/images/paintings/` and re-run fetch or call the on-demand image endpoint for that painting.
|
||||
|
||||
Reference in New Issue
Block a user