@wix/agent-skills 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -9
- package/package.json +1 -1
- package/skills/wix-app/SKILL.md +51 -42
- package/skills/wix-app/references/BACKEND_EVENT.md +10 -65
- package/skills/wix-app/references/CUSTOM_ELEMENT_WIDGET.md +101 -406
- package/skills/wix-app/references/DASHBOARD_MENU_PLUGIN.md +14 -111
- package/skills/wix-app/references/DASHBOARD_MODAL.md +56 -205
- package/skills/wix-app/references/DASHBOARD_PAGE.md +19 -98
- package/skills/wix-app/references/DASHBOARD_PLUGIN.md +6 -108
- package/skills/wix-app/references/DATA_COLLECTION.md +113 -198
- package/skills/wix-app/references/EMBEDDED_SCRIPT.md +41 -268
- package/skills/wix-app/references/EXTENSION_REGISTRATION.md +27 -76
- package/skills/wix-app/references/SERVICE_PLUGIN.md +35 -188
- package/skills/wix-app/references/SITE_PLUGIN.md +8 -92
- package/skills/wix-app/references/STORES_VERSIONING.md +1 -0
- package/skills/wix-app/references/backend-event/COMMON-EVENTS.md +0 -44
- package/skills/wix-app/references/custom-element-widget/SETTINGS_PANEL.md +19 -330
- package/skills/wix-app/references/dashboard-menu-plugin/bookings-slots.md +0 -12
- package/skills/wix-app/references/dashboard-menu-plugin/ecommerce-slots.md +7 -0
- package/skills/wix-app/references/dashboard-menu-plugin/restaurants-slots.md +0 -12
- package/skills/wix-app/references/dashboard-plugin/SLOTS.md +3 -15
- package/skills/wix-app/references/service-plugin/ADDITIONAL-FEES.md +2 -18
- package/skills/wix-app/references/service-plugin/BOOKINGS-STAFF-SORTING.md +2 -42
- package/skills/wix-app/references/service-plugin/DISCOUNT-TRIGGERS.md +1 -11
- package/skills/wix-app/references/service-plugin/GIFT-CARDS.md +1 -11
- package/skills/wix-app/references/service-plugin/PAYMENT-SETTINGS.md +2 -40
- package/skills/wix-app/references/service-plugin/SHIPPING-RATES.md +2 -19
- package/skills/wix-app/references/service-plugin/VALIDATIONS.md +2 -18
- package/skills/wix-app/references/site-plugin/SLOTS.md +17 -68
- package/skills/wix-design-system/SKILL.md +4 -0
- package/skills/wix-headless/SKILL.md +131 -386
- package/skills/wix-headless/references/BUILD-astro.md +246 -0
- package/skills/wix-headless/references/BUILD-own-build.md +167 -0
- package/skills/wix-headless/references/BUILD.md +105 -0
- package/skills/wix-headless/references/DESIGN_SYSTEM.md +175 -0
- package/skills/wix-headless/references/DISCOVERY-connect.md +55 -0
- package/skills/wix-headless/references/DISCOVERY-create.md +238 -0
- package/skills/wix-headless/references/DISCOVERY.md +50 -306
- package/skills/wix-headless/references/PLAN-connect.md +19 -0
- package/skills/wix-headless/references/PLAN-create.md +17 -0
- package/skills/wix-headless/references/PLAN.md +92 -0
- package/skills/wix-headless/references/SEED.md +214 -0
- package/skills/wix-headless/references/SETUP.md +73 -248
- package/skills/wix-headless/references/{blog → astro/blog}/BLOG_PAGES.md +6 -5
- package/skills/wix-headless/references/{blog → astro/blog}/BLOG_SETUP.md +2 -2
- package/skills/wix-headless/references/astro/bookings/COMPONENTS.md +337 -0
- package/skills/wix-headless/references/astro/bookings/SERVICES_PAGES.md +428 -0
- package/skills/wix-headless/references/astro/cms/CMS_FOUNDATIONS.md +214 -0
- package/skills/wix-headless/references/{cms → astro/cms}/FAQ_KNOWLEDGE_BASE.md +14 -12
- package/skills/wix-headless/references/{cms → astro/cms}/PORTFOLIO.md +15 -16
- package/skills/wix-headless/references/{cms → astro/cms}/RESOURCE_LIBRARY.md +13 -15
- package/skills/wix-headless/references/{cms → astro/cms}/TEAM_DIRECTORY.md +11 -11
- package/skills/wix-headless/references/astro/designer/INSTRUCTIONS.md +354 -0
- package/skills/wix-headless/references/{ecom → astro/ecom}/CART_PAGES.md +8 -9
- package/skills/wix-headless/references/{ecom → astro/ecom}/CART_WIRING.md +6 -6
- package/skills/wix-headless/references/{ecom → astro/ecom}/COMPONENTS_CSS.md +6 -6
- package/skills/wix-headless/references/{forms → astro/forms}/CONTACT_FORM.md +18 -32
- package/skills/wix-headless/references/{gift-cards → astro/gift-cards}/COMPONENTS.md +3 -3
- package/skills/wix-headless/references/{gift-cards → astro/gift-cards}/PAGES.md +2 -2
- package/skills/wix-headless/references/{stores → astro/stores}/BACK_IN_STOCK.md +7 -7
- package/skills/wix-headless/references/{stores → astro/stores}/CATEGORY_PAGES.md +12 -13
- package/skills/wix-headless/references/{stores → astro/stores}/COMPONENTS_CSS.md +7 -7
- package/skills/wix-headless/references/{stores → astro/stores}/HOME_AND_NAV.md +11 -9
- package/skills/wix-headless/references/{stores → astro/stores}/PRODUCT_PAGES.md +11 -9
- package/skills/wix-headless/references/{stores → astro/stores}/SHARED_WIRING.md +8 -7
- package/skills/wix-headless/references/astro/templates/Footer.astro +27 -0
- package/skills/wix-headless/references/astro/templates/Layout.astro +132 -0
- package/skills/wix-headless/references/astro/templates/Navigation.astro +38 -0
- package/skills/wix-headless/references/astro/templates/astro.config.mjs +41 -0
- package/skills/wix-headless/references/astro/templates/bookings/AvailabilityCalendar.tsx +218 -0
- package/skills/wix-headless/references/astro/templates/bookings/BookingForm.tsx +194 -0
- package/skills/wix-headless/references/astro/templates/bookings/ManageBooking.tsx +84 -0
- package/skills/wix-headless/references/astro/templates/bookings/SeoTags.astro +25 -0
- package/skills/wix-headless/references/astro/templates/bookings/ServiceBookingFlow.tsx +50 -0
- package/skills/wix-headless/references/astro/templates/bookings/ServiceCard.astro +45 -0
- package/skills/wix-headless/references/astro/templates/bookings/api/confirm-booking.ts +34 -0
- package/skills/wix-headless/references/astro/templates/bookings/api/waitlist.ts +74 -0
- package/skills/wix-headless/references/astro/templates/bookings/booking-confirmation.astro +111 -0
- package/skills/wix-headless/references/astro/templates/bookings/components-bookings.css +413 -0
- package/skills/wix-headless/references/astro/templates/bookings/manage-booking.astro +76 -0
- package/skills/wix-headless/references/astro/templates/bookings/services/[slug].astro +81 -0
- package/skills/wix-headless/references/astro/templates/bookings/services/index.astro +65 -0
- package/skills/wix-headless/references/astro/templates/ecom/components-ecom.css +302 -0
- package/skills/wix-headless/references/astro/templates/global.css +286 -0
- package/skills/wix-headless/references/astro/templates/index.astro +56 -0
- package/skills/wix-headless/{templates → references/astro/templates}/stores/back-in-stock.ts +1 -1
- package/skills/wix-headless/{templates → references/astro/templates}/stores/components-stores.css +138 -33
- package/skills/wix-headless/references/blog/BLOG_CONTENT.md +28 -19
- package/skills/wix-headless/references/blog/INSTRUCTIONS.md +6 -6
- package/skills/wix-headless/references/bookings/INSTRUCTIONS.md +106 -0
- package/skills/wix-headless/references/bookings/SERVICES_DATA.md +295 -0
- package/skills/wix-headless/references/cms/CMS_FOUNDATIONS.md +35 -232
- package/skills/wix-headless/references/cms/INSTRUCTIONS.md +39 -8
- package/skills/wix-headless/references/commands/known-apps.json +2 -1
- package/skills/wix-headless/references/custom/CONNECTION_PLAN.md +142 -0
- package/skills/wix-headless/references/custom/INSTRUCTIONS.md +88 -0
- package/skills/wix-headless/references/custom/blog/WIRING.md +52 -0
- package/skills/wix-headless/references/custom/bookings/WIRING.md +88 -0
- package/skills/wix-headless/references/custom/cms/WIRING.md +97 -0
- package/skills/wix-headless/references/custom/ecom/WIRING.md +67 -0
- package/skills/wix-headless/references/custom/forms/WIRING.md +101 -0
- package/skills/wix-headless/references/custom/stores/WIRING.md +80 -0
- package/skills/wix-headless/references/ecom/INSTRUCTIONS.md +12 -12
- package/skills/wix-headless/references/forms/INSTRUCTIONS.md +6 -6
- package/skills/wix-headless/references/gift-cards/INSTRUCTIONS.md +13 -13
- package/skills/wix-headless/references/images/INSTRUCTIONS.md +58 -60
- package/skills/wix-headless/references/seed-recipes.md +49 -0
- package/skills/wix-headless/references/shared/AGENTS_MD.md +47 -0
- package/skills/wix-headless/references/shared/AUTHENTICATION.md +108 -0
- package/skills/wix-headless/references/shared/BUILD_NOISE.md +2 -2
- package/skills/wix-headless/references/shared/DESIGN_MD.md +85 -0
- package/skills/wix-headless/references/shared/DOCS_SEARCH.md +41 -0
- package/skills/wix-headless/references/shared/IMAGE_GENERATION.md +40 -39
- package/skills/wix-headless/references/shared/IMPLEMENTER.md +92 -41
- package/skills/wix-headless/references/shared/PRODUCTION_SHARP_EDGES.md +3 -3
- package/skills/wix-headless/references/shared/RETURN_CONTRACT.md +32 -312
- package/skills/wix-headless/references/shared/STYLING.md +48 -21
- package/skills/wix-headless/references/stores/INSTRUCTIONS.md +59 -29
- package/skills/wix-headless/references/stores/PRODUCT_CATALOG_DATA.md +31 -28
- package/skills/wix-headless/references/verticals/_schema.json +31 -117
- package/skills/wix-headless/references/verticals/_schema.md +60 -150
- package/skills/wix-headless/references/verticals/blog.md +5 -99
- package/skills/wix-headless/references/verticals/bookings.md +41 -0
- package/skills/wix-headless/references/verticals/cms.md +9 -100
- package/skills/wix-headless/references/verticals/ecom.md +6 -77
- package/skills/wix-headless/references/verticals/forms.md +5 -85
- package/skills/wix-headless/references/verticals/gift-cards.md +6 -103
- package/skills/wix-headless/references/verticals/stores.md +10 -144
- package/skills/wix-headless/scripts/check-manifest.mjs +148 -11
- package/skills/wix-headless/scripts/compose.mjs +540 -0
- package/skills/wix-headless/scripts/emit-design-tokens.mjs +136 -53
- package/skills/wix-headless/scripts/flatten.sh +61 -0
- package/skills/wix-headless/scripts/generate-images.mjs +242 -0
- package/skills/wix-headless/scripts/patch-decorative-slots.mjs +67 -43
- package/skills/wix-headless/scripts/plan-entity-image-waves.mjs +3 -3
- package/skills/wix-headless/scripts/scaffold.sh +113 -27
- package/skills/wix-headless/scripts/seed-utilities.sh +50 -12
- package/skills/wix-headless/scripts/write-decorative-json.mjs +62 -0
- package/skills/wix-manage/SKILL.md +4 -8
- package/skills/wix-manage/references/blog/how-to-create-blog-posts.md +2 -0
- package/skills/wix-manage/references/cms/cms-data-items-crud.md +4 -0
- package/skills/wix-manage/references/cms/cms-references-and-relationships.md +2 -0
- package/skills/wix-manage/references/cms/cms-schema-management.md +4 -0
- package/skills/wix-manage/references/domains/domain-search-and-purchase.md +10 -7
- package/skills/wix-manage/references/ecommerce/api-shipping.md +443 -0
- package/skills/wix-manage/references/ecommerce/flow-add-free-shipping.md +5 -6
- package/skills/wix-manage/references/ecommerce/flow-fix-coverage-gaps.md +4 -5
- package/skills/wix-manage/references/ecommerce/flow-optimize-shipping-rates.md +4 -5
- package/skills/wix-manage/references/ecommerce/goal-increase-aov.md +1 -1
- package/skills/wix-manage/references/ecommerce/goal-reduce-cart-abandonment.md +1 -2
- package/skills/wix-manage/references/ecommerce/guardrail-shipping-health.md +2 -2
- package/skills/wix-manage/references/ecommerce/recipe-apply-shipping-recommendations.md +4 -5
- package/skills/wix-manage/references/ecommerce/recommend-ecommerce-strategy.md +7 -7
- package/skills/wix-manage/references/ecommerce/setup-discount-rules.md +209 -72
- package/skills/wix-manage/references/ecommerce/setup-store-pickup-location.md +9 -10
- package/skills/wix-manage/references/ecommerce/skill-graph.md +4 -4
- package/skills/wix-manage/references/forms/create-form.md +50 -0
- package/skills/wix-manage/references/stores/bulk-create-products-with-options.md +2 -0
- package/skills/wix-manage/references/stores/create-product-from-image.md +91 -38
- package/skills/wix-manage/references/stores/setup-online-store-catalog-v3.md +2 -0
- package/skills/wix-app/references/custom-element-widget/default-thumbnail.png +0 -0
- package/skills/wix-app/references/data-collection/extension-template.ts +0 -107
- package/skills/wix-headless/references/ORCHESTRATION.md +0 -269
- package/skills/wix-headless/references/commands/install-app.md +0 -42
- package/skills/wix-headless/references/commands/mcp-bootstrap.md +0 -28
- package/skills/wix-headless/references/designer/INSTRUCTIONS.md +0 -828
- package/skills/wix-headless/references/shared/MCP_PREFIX.md +0 -105
- package/skills/wix-headless/scripts/copy-utility-templates.mjs +0 -153
- package/skills/wix-headless/scripts/finalize-run-json.mjs +0 -141
- package/skills/wix-headless/scripts/init-site-json.mjs +0 -63
- package/skills/wix-headless/scripts/preview.sh +0 -45
- package/skills/wix-headless/scripts/release.sh +0 -73
- package/skills/wix-headless/templates/ecom/components-ecom.css +0 -215
- package/skills/wix-manage/references/events/list-events.md +0 -203
- /package/skills/wix-headless/{templates → references/astro/templates}/ecom/CartBadge.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/ecom/CartView.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/ecom/cart.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/ecom/discounts.ts +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/ecom/thank-you.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/GiftCardPurchase.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/_home-teaser-snippet.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/_nav-snippet.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/components-gift-cards.css +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/gift-cards.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/gift-cards/gift-cards.ts +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/AddToCartButton.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/BackInStockForm.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/CategoryRail.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/ProductCard.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/ProductPurchase.tsx +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/SeoTags.astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/categories.ts +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/category/[slug].astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/products/[slug].astro +0 -0
- /package/skills/wix-headless/{templates → references/astro/templates}/stores/products/index.astro +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Build a FAQ page using `@wix/data` — Q&A pairs organized by category with accordion UI and client-side search. Use for frequently asked questions, help centers, or knowledge bases.
|
|
4
4
|
|
|
5
|
-
> Read `CMS_FOUNDATIONS.md`
|
|
5
|
+
> Read `CMS_FOUNDATIONS.md` (this folder — service module, query patterns, image resolution, elevation) for page-rendering patterns, and `../../cms/CMS_FOUNDATIONS.md` for REST-based seeding.
|
|
6
6
|
|
|
7
7
|
## Collection Schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The schema the `seed` scope creates via REST (see `../../cms/CMS_FOUNDATIONS.md`) — fields:
|
|
10
10
|
|
|
11
11
|
| Field | Type | Purpose |
|
|
12
12
|
|-------|------|---------|
|
|
@@ -32,7 +32,7 @@ Create a collection in the Wix dashboard → CMS with these fields:
|
|
|
32
32
|
### 1. FAQ Service Module (`src/lib/faq.ts`)
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
import
|
|
35
|
+
import { items } from "@wix/data";
|
|
36
36
|
import { auth } from "@wix/essentials";
|
|
37
37
|
|
|
38
38
|
const COLLECTION_ID = "FAQ";
|
|
@@ -169,7 +169,7 @@ export default function FaqSection({ categories }: Props) {
|
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
> **Styling note:** Uses `.faq-search`, `.faq-section`, `.faq-category`, `.faq-item`, `.faq-question`, `.faq-toggle`, `.faq-answer` from the designed component's `<style is:global>` block. See `
|
|
172
|
+
> **Styling note:** Uses `.faq-search`, `.faq-section`, `.faq-category`, `.faq-item`, `.faq-question`, `.faq-toggle`, `.faq-answer` from the designed component's `<style is:global>` block. See `references/shared/STYLING.md` (FAQ Accordion).
|
|
173
173
|
|
|
174
174
|
Key details:
|
|
175
175
|
- `<details>/<summary>` for native accordion behavior — no JavaScript needed for open/close
|
|
@@ -180,6 +180,8 @@ Key details:
|
|
|
180
180
|
|
|
181
181
|
### 3. FAQ Page (`src/pages/faq/index.astro`)
|
|
182
182
|
|
|
183
|
+
**Layout width:** Center the page column with `container-reading` (from designer `global.css`) or `max-w-6xl mx-auto px-lg` when `--container-6xl` exists in `@theme`. **Do not** use `max-w-3xl` unless `--container-3xl` is declared in `@theme` — with only a spacing scale, Tailwind maps `max-w-3xl` to ~5rem and the FAQ collapses to one word per line. See `references/shared/STYLING.md` § "Prose / reading width".
|
|
184
|
+
|
|
183
185
|
```astro
|
|
184
186
|
---
|
|
185
187
|
import Layout from "../../layouts/Layout.astro";
|
|
@@ -193,7 +195,7 @@ const categories = [...grouped.entries()].map(([name, items]) => ({ name, items
|
|
|
193
195
|
|
|
194
196
|
<Layout title="FAQ">
|
|
195
197
|
<main>
|
|
196
|
-
<div>
|
|
198
|
+
<div class="container-reading px-lg">
|
|
197
199
|
<h1>Frequently Asked Questions</h1>
|
|
198
200
|
<p>Find answers to common questions below, or use the search to find what you need.</p>
|
|
199
201
|
|
|
@@ -220,10 +222,10 @@ Key details:
|
|
|
220
222
|
|
|
221
223
|
## Testing
|
|
222
224
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
Assumes the `seed` scope has already created the "FAQ" collection and inserted items via REST (see `../../cms/CMS_FOUNDATIONS.md`) — with 6+ FAQ items across 2+ categories, all `published: true`.
|
|
226
|
+
|
|
227
|
+
1. Run `npx @wix/cli@latest dev`
|
|
228
|
+
2. `/faq` — shows all questions grouped by category
|
|
229
|
+
3. Click a question — accordion opens with the answer
|
|
230
|
+
4. Type in search — filters questions in real-time
|
|
231
|
+
5. Click a category jump link — scrolls to that section
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Build a visual portfolio using `@wix/data` — project grid with category filtering, image galleries, and project detail pages. Use for work samples, case studies, creative projects, or any visual showcase.
|
|
4
4
|
|
|
5
|
-
> Read `CMS_FOUNDATIONS.md`
|
|
5
|
+
> Read `CMS_FOUNDATIONS.md` (this folder — service module, query patterns, image resolution, elevation) for page-rendering patterns, and `../../cms/CMS_FOUNDATIONS.md` for REST-based seeding.
|
|
6
6
|
|
|
7
7
|
## Collection Schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The schema the `seed` scope creates via REST (see `../../cms/CMS_FOUNDATIONS.md`) — fields:
|
|
10
10
|
|
|
11
11
|
| Field | Type | Purpose |
|
|
12
12
|
|-------|------|---------|
|
|
@@ -38,7 +38,7 @@ Create a collection in the Wix dashboard → CMS with these fields:
|
|
|
38
38
|
### 1. Portfolio Service Module (`src/lib/portfolio.ts`)
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
|
-
import
|
|
41
|
+
import { items } from "@wix/data";
|
|
42
42
|
import { auth } from "@wix/essentials";
|
|
43
43
|
import { media } from "@wix/sdk";
|
|
44
44
|
|
|
@@ -150,7 +150,7 @@ const { categories, activeCategory, basePath } = Astro.props;
|
|
|
150
150
|
</nav>
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
> **Styling note:** CategoryFilter styling is created by the design skill. See `
|
|
153
|
+
> **Styling note:** CategoryFilter styling is created by the design skill. See `references/shared/STYLING.md` (Category Filter).
|
|
154
154
|
|
|
155
155
|
> Server-rendered, no JavaScript. Category is read from `Astro.url.searchParams` in the page.
|
|
156
156
|
|
|
@@ -189,7 +189,7 @@ const { project } = Astro.props;
|
|
|
189
189
|
</a>
|
|
190
190
|
```
|
|
191
191
|
|
|
192
|
-
> **Styling note:** ProjectCard styling is created by the design skill. See `
|
|
192
|
+
> **Styling note:** ProjectCard styling is created by the design skill. See `references/shared/STYLING.md` (Project Card).
|
|
193
193
|
|
|
194
194
|
### 4. Project Grid Page (`src/pages/work/index.astro`)
|
|
195
195
|
|
|
@@ -376,7 +376,7 @@ export default function ImageGallery({ images, alt }: Props) {
|
|
|
376
376
|
}
|
|
377
377
|
```
|
|
378
378
|
|
|
379
|
-
> **Styling note:** Uses `.gallery-grid`, `.gallery-item`, `.lightbox-overlay`, `.lightbox-image`, `.lightbox-nav`, `.lightbox-close` from the designed component's `<style is:global>` block. See `
|
|
379
|
+
> **Styling note:** Uses `.gallery-grid`, `.gallery-item`, `.lightbox-overlay`, `.lightbox-image`, `.lightbox-nav`, `.lightbox-close` from the designed component's `<style is:global>` block. See `references/shared/STYLING.md` (Image Gallery / Lightbox).
|
|
380
380
|
|
|
381
381
|
Key details:
|
|
382
382
|
- Renders as a grid; clicking opens a lightbox overlay
|
|
@@ -410,7 +410,7 @@ const featured = await queryFeaturedProjects(3);
|
|
|
410
410
|
|
|
411
411
|
## Seed with Images
|
|
412
412
|
|
|
413
|
-
After seeding projects via
|
|
413
|
+
After seeding projects via REST, generate cover images (and optionally gallery images) following `../../shared/IMAGE_GENERATION.md` and `../../cms/CMS_FOUNDATIONS.md` → "Seeding with Images".
|
|
414
414
|
|
|
415
415
|
**Cover image prompt template:**
|
|
416
416
|
|
|
@@ -426,12 +426,12 @@ Project showcase image for [TITLE]. [BRAND AESTHETIC]. Color palette: [BRAND COL
|
|
|
426
426
|
Gallery image [N] for [TITLE]: [describe a specific aspect/angle of the project]. [BRAND AESTHETIC]. [BRAND COLORS]. No text, no watermarks
|
|
427
427
|
```
|
|
428
428
|
|
|
429
|
-
**Patch
|
|
429
|
+
**Patch field:** `galleryImages` (as an array of wixstatic URLs)
|
|
430
430
|
|
|
431
431
|
Example patch:
|
|
432
432
|
|
|
433
433
|
```
|
|
434
|
-
|
|
434
|
+
REST: PATCH https://www.wixapis.com/wix-data/v2/items/{projectId}
|
|
435
435
|
body: {
|
|
436
436
|
"dataCollectionId": "Projects",
|
|
437
437
|
"dataItem": {
|
|
@@ -445,10 +445,9 @@ body: {
|
|
|
445
445
|
|
|
446
446
|
## Testing
|
|
447
447
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
7. Click a project — detail page with gallery lightbox
|
|
448
|
+
Assumes the `seed` scope has already created the "Projects" collection and inserted items via REST (see `../../cms/CMS_FOUNDATIONS.md`) — 3+ projects with categories (and, after the image pass, cover/gallery images), 1–2 marked `featured: true`.
|
|
449
|
+
|
|
450
|
+
1. Run `npx @wix/cli@latest dev`
|
|
451
|
+
2. `/work` — grid with category filter tabs
|
|
452
|
+
3. Click a category — filters projects
|
|
453
|
+
4. Click a project — detail page with gallery lightbox
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Build a downloadable resource library using `@wix/data` — file listings with category filtering, file type badges, and detail pages with download buttons. Use for documents, guides, templates, whitepapers, or any downloadable assets.
|
|
4
4
|
|
|
5
|
-
> Read `CMS_FOUNDATIONS.md`
|
|
5
|
+
> Read `CMS_FOUNDATIONS.md` (this folder — service module, query patterns, image resolution, elevation) for page-rendering patterns, and `../../cms/CMS_FOUNDATIONS.md` for REST-based seeding.
|
|
6
6
|
|
|
7
7
|
## Collection Schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The schema the `seed` scope creates via REST (see `../../cms/CMS_FOUNDATIONS.md`) — fields:
|
|
10
10
|
|
|
11
11
|
| Field | Type | Purpose |
|
|
12
12
|
|-------|------|---------|
|
|
@@ -36,7 +36,7 @@ Create a collection in the Wix dashboard → CMS with these fields:
|
|
|
36
36
|
### 1. Resources Service Module (`src/lib/resources.ts`)
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import
|
|
39
|
+
import { items } from "@wix/data";
|
|
40
40
|
import { auth } from "@wix/essentials";
|
|
41
41
|
import { media } from "@wix/sdk";
|
|
42
42
|
|
|
@@ -146,8 +146,7 @@ const fileType = type.toUpperCase();
|
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
Key details:
|
|
149
|
-
-
|
|
150
|
-
- Falls back to neutral gray for unknown types
|
|
149
|
+
- The SVG uses `stroke="currentColor"` — any per-file-type coloring is purely CSS-driven (e.g. a `.file-type-pdf` class on the wrapper), not set here
|
|
151
150
|
- File type label rendered inside the document icon SVG
|
|
152
151
|
|
|
153
152
|
### 3. Resource Card (`src/components/ResourceCard.astro`)
|
|
@@ -187,7 +186,7 @@ const { resource } = Astro.props;
|
|
|
187
186
|
</a>
|
|
188
187
|
```
|
|
189
188
|
|
|
190
|
-
> **Styling note:** ResourceCard styling is created by the design skill. See `
|
|
189
|
+
> **Styling note:** ResourceCard styling is created by the design skill. See `references/shared/STYLING.md` (Resource Card).
|
|
191
190
|
|
|
192
191
|
### 4. Resource Listing Page (`src/pages/resources/index.astro`)
|
|
193
192
|
|
|
@@ -321,7 +320,7 @@ Key details:
|
|
|
321
320
|
|
|
322
321
|
## Seed with Images
|
|
323
322
|
|
|
324
|
-
After seeding resources via
|
|
323
|
+
After seeding resources via REST, generate cover images following `../../shared/IMAGE_GENERATION.md` and `../../cms/CMS_FOUNDATIONS.md` → "Seeding with Images".
|
|
325
324
|
|
|
326
325
|
**Prompt template:**
|
|
327
326
|
|
|
@@ -334,7 +333,7 @@ Cover image for [TITLE], a [FILE TYPE]. Abstract [BRAND AESTHETIC]. Color tones:
|
|
|
334
333
|
Example patch:
|
|
335
334
|
|
|
336
335
|
```
|
|
337
|
-
|
|
336
|
+
REST: PATCH https://www.wixapis.com/wix-data/v2/items/{resourceId}
|
|
338
337
|
body: {
|
|
339
338
|
"dataCollectionId": "Resources",
|
|
340
339
|
"dataItem": {
|
|
@@ -347,10 +346,9 @@ body: {
|
|
|
347
346
|
|
|
348
347
|
## Testing
|
|
349
348
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
7. Click a resource — detail page with download button and related resources
|
|
349
|
+
Assumes the `seed` scope has already created the "Resources" collection and inserted items via REST (see `../../cms/CMS_FOUNDATIONS.md`) — 4+ resources across 2+ categories with different file types (PDF, DOC, ZIP) and `fileUrl` links (any downloadable URL for testing).
|
|
350
|
+
|
|
351
|
+
1. Run `npx @wix/cli@latest dev`
|
|
352
|
+
2. `/resources` — shows all resources with category filters and file type badges
|
|
353
|
+
3. Click a category — filters resources
|
|
354
|
+
4. Click a resource — detail page with download button and related resources
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Build a team directory using `@wix/data` — staff cards grouped by department with individual profile pages. Use for about us, our team, meet the staff, or any people directory.
|
|
4
4
|
|
|
5
|
-
> Read `CMS_FOUNDATIONS.md`
|
|
5
|
+
> Read `CMS_FOUNDATIONS.md` (this folder — service module, query patterns, image resolution, elevation) for page-rendering patterns, and `../../cms/CMS_FOUNDATIONS.md` for REST-based seeding.
|
|
6
6
|
|
|
7
7
|
## Collection Schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The schema the `seed` scope creates via REST (see `../../cms/CMS_FOUNDATIONS.md`) — fields:
|
|
10
10
|
|
|
11
11
|
| Field | Type | Purpose |
|
|
12
12
|
|-------|------|---------|
|
|
@@ -35,7 +35,7 @@ Create a collection in the Wix dashboard → CMS with these fields:
|
|
|
35
35
|
### 1. Team Service Module (`src/lib/team.ts`)
|
|
36
36
|
|
|
37
37
|
```typescript
|
|
38
|
-
import
|
|
38
|
+
import { items } from "@wix/data";
|
|
39
39
|
import { auth } from "@wix/essentials";
|
|
40
40
|
import { media } from "@wix/sdk";
|
|
41
41
|
|
|
@@ -156,7 +156,7 @@ const { member } = Astro.props;
|
|
|
156
156
|
</a>
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
> **Styling note:** TeamMemberCard styling is created by the design skill. See `
|
|
159
|
+
> **Styling note:** TeamMemberCard styling is created by the design skill. See `references/shared/STYLING.md` (Team Member Card).
|
|
160
160
|
|
|
161
161
|
Key details:
|
|
162
162
|
- Inline SVG icons — no icon library dependency
|
|
@@ -266,7 +266,7 @@ if (!member) return Astro.redirect("/404");
|
|
|
266
266
|
> **Do not skip:** Team members without photos appear as initial-letter placeholders.
|
|
267
267
|
> Always ask the user if they want to generate headshot images before moving on.
|
|
268
268
|
|
|
269
|
-
After seeding team members via
|
|
269
|
+
After seeding team members via REST, generate headshot images following `../../shared/IMAGE_GENERATION.md` and `../../cms/CMS_FOUNDATIONS.md` → "Seeding with Images".
|
|
270
270
|
|
|
271
271
|
**Prompt template:**
|
|
272
272
|
|
|
@@ -279,7 +279,7 @@ Professional headshot portrait of [NAME], [ROLE] at [BUSINESS NAME]. [BRAND AEST
|
|
|
279
279
|
Example: after generating and importing the image, patch the team member item:
|
|
280
280
|
|
|
281
281
|
```
|
|
282
|
-
|
|
282
|
+
REST: PATCH https://www.wixapis.com/wix-data/v2/items/{memberId}
|
|
283
283
|
body: {
|
|
284
284
|
"dataCollectionId": "Team",
|
|
285
285
|
"dataItem": {
|
|
@@ -292,8 +292,8 @@ body: {
|
|
|
292
292
|
|
|
293
293
|
## Testing
|
|
294
294
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
295
|
+
Assumes the `seed` scope has already created the "Team" collection and inserted items via REST (see `../../cms/CMS_FOUNDATIONS.md`) — 4+ members across 2+ departments, with social links (and headshots after the image pass).
|
|
296
|
+
|
|
297
|
+
1. Run `npx @wix/cli@latest dev`
|
|
298
|
+
2. `/team` — shows members grouped by department
|
|
299
|
+
3. Click a member — profile page with photo, bio, and social links
|