03-Mar-2026 — cover image and focal point overrides for index entries #174
build 509 — commit 1ec3133
New Features
Cover Image Overrides
When editing an album index page, a new collapsible Cover Image Overrides accordion appears below the content path settings. Expanding it reveals a list of all entries in the index, each showing a thumbnail, title, path, and status badge. Clicking Edit cover image on any entry expands an image grid showing all available images from the album catalogue. For nested index pages (an index containing other indexes), images from all child albums are aggregated into a single grid. The album's default cover image is marked with a gold star. Clicking any image selects it as the cover — a blue circle confirms the selection, and the index card preview updates immediately.
Focal Point Control
Below the image grid, a focal point picker allows precise control over where the image is cropped on the index card. Click and drag the crosshair to reposition, and use the zoom slider to zoom in on the focal area. The index card preview updates in real time as you drag — no save required. This works for both direct album entries and nested index entries that inherit images from child albums.
Smart Defaults
Index entries now automatically inherit the cover image and focal point from the first child album, respecting the index sort configuration. For example, if the index is sorted by title ascending, the cover comes from the alphabetically first child album's configured cover image and focal point settings. No manual configuration is needed for sensible defaults.
Index-of-Indexes Support
For nested index pages where an entry is itself an index that aggregates child albums, the system follows the albumIndex content paths to discover child pages, find their carousel configurations, and fetch all associated image metadata. This applies both to the default cover image resolution and to the override editor's image grid, which shows the full catalogue from all child albums.
Inline Reset
Each customised entry displays a blue Customised badge with a Reset to default button directly on the collapsed row — one click to revert without expanding. A reset button is also available inside the expanded view. Resetting removes the override and restores the album's own cover image and focal point.
How to Use
- Navigate to any page with an album index and enter edit mode
- Below the content path settings and item count, expand the Cover Image Overrides accordion
- Click Edit cover image on any entry to see the image grid
- Click any image to select it as the cover for that entry
- Drag the focal point crosshair and zoom slider to control cropping — the preview updates live
- To reset a customised entry, click the Reset to default button next to the blue Customised badge
- Changes are saved when you save the page — override data is stored on the index configuration, not on individual albums
Visual Indicators
- Album Default (grey outline badge) — using the album's own cover image and focal point
- Customised (blue badge) — a custom cover image or focal point has been set
- Gold star on image thumbnail — the album's default cover image
- Blue circle on image thumbnail — the selected override image
- Accordion header shows count of customised entries (e.g. "2 customised")
Bug Fixes
- Fix Mongoose CastError when numeric Meetup IDs (e.g. from legacy Meetup imports) are used in walk queries, by filtering non-ObjectId values from the _id.$in clause before querying MongoDB