Publish Meshkee static-image slot catalog so dashboard Refresh can import keys.

The storefront already consumed slots, but GET /meshkee/static-image-slots was missing, so Meshkee never registered slider, categories, four-icon-image, about-us, or brands for this domain.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 09:58:06 +03:30
co-authored by Cursor
parent 26b8b64bf3
commit 7a0de3c1f4
8 changed files with 169 additions and 19 deletions
+18 -6
View File
@@ -30,7 +30,7 @@ can fill with their own images from the Meshkee dashboard. Current mapping:
| Slot key | Kind | Component | Fallback when empty/unset |
|-------------------|--------|--------------------|----------------------------------------|
| `slider` | list | `HeroSlider` | 3 local photos in `hero-slider-*.jpg` with authored copy |
| `categories` | list | `CategoryShowcase` | icon-based cards derived from live product categories |
| `categories` | list | `CategoryShowcase` | photo cards derived from live product categories |
| `four-icon-image` | list(4)| `Features` | 4 local icons + authored copy, per-index override |
| `about-us` | single | `About` | local `hero-2.jpg` |
| `brands` | list | `Partners` | 6 local partner logos |
@@ -44,9 +44,21 @@ Each `StaticImageItem` carries `url`, optional `titleFa`/`subtext`/
(`"21:9"` etc, via `aspectRatioToCss`) for slot-driven image containers
instead of hardcoding a Tailwind aspect class — if you resize/recrop a
*local* fallback image during development, update the corresponding
component's fallback styling to match, since slot-driven and fallback
images render through the same container and must not look broken when
swapped.
component's fallback styling **and** the catalog entry in
`src/app/meshkee/static-image-slots/route.ts` to match, since slot-driven
and fallback images render through the same container and must not look
broken when swapped.
`aradarisman.com` currently has **zero** slots configured, so the site
renders through the fallback path everywhere — this is expected, not a bug.
### Dashboard catalog (required for Refresh)
The Meshkee dashboard **Refresh** button does not invent slots. It imports
keys from this site:
`GET https://aradarisman.com/meshkee/static-image-slots`
That route is `src/app/meshkee/static-image-slots/route.ts`. Until it is
deployed and the dashboard Refresh is clicked, `/tenants/aradarisman.com/website/static-images`
returns `{ items: [] }` and the storefront correctly shows fallbacks.
Do not invent upload/CMS APIs. Owners add images in the Meshkee dashboard
after Refresh has imported the catalog.