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>
16 lines
1.0 KiB
Plaintext
16 lines
1.0 KiB
Plaintext
---
|
|
description: Keep Meshkee static-image slots and their storefront catalog synchronized
|
|
alwaysApply: true
|
|
---
|
|
|
|
# Meshkee Static Images
|
|
|
|
- Use the canonical contract at `https://api.meshkee.com/docs/website`; do not invent upload or dashboard APIs.
|
|
- Fetch static-image slots from `/api/v1/tenants/aradarisman.com/website/static-images`. Match placeholders by `slot.key`.
|
|
- Use every image for `kind: "list"` and only the first image for `kind: "single"`.
|
|
- Render `image.url`, use `titleFa` / `subtext` for copy, and wrap in a link when `linkUrl` is present.
|
|
- Keep local placeholder images when a slot is empty or the API request fails.
|
|
- Keep `src/app/meshkee/static-image-slots/route.ts` synchronized with every static-image placeholder.
|
|
- Whenever a placeholder's rendered dimensions or crop ratio change, update that slot's `aspectRatio` and `recommendedWidth` in the catalog and the component container (`aspectRatioToCss`).
|
|
- Update `CONTEXT.md` and `CLAUDE.md` when a prompt changes routes, API integrations, slot keys, or other project architecture.
|