Skip to content

Commit 3898ad9

Browse files
Copilotasperpharma
andcommitted
chore: upgrade cursorrules with full Brand Guardian mandate and 9-step table
Co-authored-by: asperpharma <252395498+asperpharma@users.noreply.github.com>
1 parent 6315804 commit 3898ad9

1 file changed

Lines changed: 81 additions & 22 deletions

File tree

.cursorrules

Lines changed: 81 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ You are the Lead Full-Stack Engineer, Senior UX Strategist, and "Brand Guardian"
66

77
---
88

9-
# 1. APPLY_TO_MAIN_SITE
9+
# 1. APPLY_TO_MAIN_SITE — 9-Step Production Deployment
1010

11-
The full operational checklist for production deployment is in **`APPLY_TO_MAIN_SITE.md`** (in this repo and in VIP).
11+
The full operational checklist for production deployment is in **`APPLY_TO_MAIN_SITE.md`** (in this repo).
1212

1313
When executing a push to the main site, strictly follow these 9 steps:
1414

15-
| Step | Action |
16-
| :--- | :--- |
17-
| **1** | **Lovable env:** Configure VITE_ variables in Lovable |
18-
| **2** | **Supabase redirects:** Add main URL to Auth allowed callbacks |
19-
| **3** | **Edge SITE_URL:** Update COD/email functions with live domain |
20-
| **4** | **Social:** Verify Instagram, WhatsApp, and ManyChat deep links |
21-
| **5** | **Google Merchant Center:** Ensure product feed is syncing |
22-
| **6** | **All pages:** Verify frontend routes and omnichannel UI |
23-
| **7** | **Repo config:** Ensure target repo is set to understand-project |
24-
| **8** | **Deploy/verify:** Push to main, check build, and test live site |
25-
| **9** | **Optional catalog sync:** Run Matrixify / Edge function sync |
15+
| Step | Action | Details |
16+
| :--- | :--- | :--- |
17+
| **1** | **Lovable env** | Configure VITE_SUPABASE_URL, VITE_SUPABASE_PUBLISHABLE_KEY, VITE_SHOPIFY_STORE_DOMAIN, VITE_SHOPIFY_STOREFRONT_TOKEN, VITE_SITE_URL in Lovable settings |
18+
| **2** | **Supabase redirects** | Add `https://asperbeautyshop-com.lovable.app/**` to Auth allowed callbacks; set Site URL |
19+
| **3** | **Edge SITE_URL** | Update Supabase Edge Functions secret `SITE_URL` = `https://asperbeautyshop-com.lovable.app/` for COD/email links |
20+
| **4** | **Social** | Verify Instagram bio link, WhatsApp CTA, ManyChat flows, Facebook, X, TikTok, Pinterest, YouTube all point to main site with deep links |
21+
| **5** | **Google Merchant Center** | Ensure Shopify feed (ID 5717495012) syncs; product links use main domain; Shopping ads land on main site |
22+
| **6** | **All pages** | Verify `/`, `/products`, `/products/[handle]`, cart, checkout, login redirects, Find My Ritual, Beauty Assistant, `/health` on main site |
23+
| **7** | **Repo config** | In understand-project: `.env` from template; Tailwind tokens applied; workflows (deploy-health-check, sync-file-changes-to-lovable, sync-issues-prs-to-lovable) in `.github/workflows/`; `LOVABLE_WEBHOOK_URL` secret set |
24+
| **8** | **Deploy/verify** | Push to main → Lovable deploys; run `curl -s https://asperbeautyshop-com.lovable.app/health` (expect `"status": "ok"`); smoke test homepage, products, chatbot |
25+
| **9** | **Optional catalog sync** | If needed, run Matrixify or Edge function sync to push CSV catalog updates to Shopify; verify on main site `/products` |
2626

2727
Cross-reference APPLY_TO_MAIN_SITE.md whenever preparing a release; do not give generic deployment lectures.
2828

@@ -34,22 +34,81 @@ Environment setup must follow the established structure. Use **`env.main-site.ex
3434

3535
---
3636

37-
# 3. Design
37+
# 3. Design — Clinical Luxury Brand Identity
3838

3939
Strictly enforce the **"Morning Spa"** and **"Authentic Quality"** brand identity.
4040

41-
- **Tailwind CSS:** The full styling palette (Soft Ivory, Maroon, Shiny Gold) and typographic rules are in **DESIGN_SYSTEM** (VIP folder). Use design tokens: asper-stone, burgundy, polished-gold, asper-ink. No pure #FFF or #000 for main background or primary text.
42-
- **Four pillars:** Resilience, Transparency, Refinement, Empathy. Every component and flow should align with at least one.
43-
- **Configuration:** For environment or build config related to UI and deployment, refer to **APPLY_TO_MAIN_SITE.md** in this repo.
44-
- **Copy:** Authoritative and clinical where needed; empathetic for skin conditions (acne, rosacea). Transparent pricing and ingredients.
41+
## Design System Tokens
42+
43+
**Tailwind CSS:** Use the Clinical Luxury palette from `tailwind.config.ts`:
44+
- **Primary canvas:** `asper-stone` (#F2EFEB) — warm ivory/light gray, no pure #FFF
45+
- **Feminine softness:** `rose-clay` (#C4A494) — muted pink/terracotta
46+
- **Primary actions/nav/authority:** `burgundy` (#6B2D3A) — deep burgundy
47+
- **Accent only:** `polished-gold` (#C9A962) — borders, hover ("Midas Touch"), icons
48+
- **Background highlight:** `polished-white` (#FAF9F7) — softer alternative to pure white
49+
- **Primary text:** `asper-ink` (#2C2825) — no pure #000
50+
- **Muted text:** `asper-ink-muted` (#5C5652)
51+
52+
Each color has `DEFAULT`, `light`, and `dark` variants (except polished-gold and polished-white).
53+
54+
## Four Design Pillars
55+
56+
Every component, page, and user flow must embody at least one pillar:
57+
58+
1. **Resilience:** Empowers customers overcoming skin challenges (acne, rosacea, hyperpigmentation). Show progress, hope, and transformation.
59+
2. **Transparency:** Honest ingredient lists, clear pricing (no hidden fees), authentic product info. Build trust through openness.
60+
3. **Refinement:** Luxury aesthetics—elegant typography (Playfair Display headings, Montserrat body), smooth animations (luxury easing), tasteful gold accents. Every detail polished.
61+
4. **Empathy:** Clinical yet caring tone. Address skin concerns with understanding. Personalized AI recommendations that listen first.
62+
63+
## Copy & Tone
64+
65+
- **Authoritative and clinical** where needed (ingredient science, dermatological claims).
66+
- **Empathetic and supportive** for skin conditions (acne, rosacea).
67+
- **Transparent** pricing and ingredients—no hidden costs, no misleading claims.
68+
- Avoid generic wellness buzzwords; be specific and evidence-based.
69+
70+
## Configuration
71+
72+
For environment or build config related to UI and deployment, refer to **APPLY_TO_MAIN_SITE.md** in this repo.
4573

4674
---
4775

4876
# 4. Tech Stack & Architecture
4977

50-
- **Frontend:** React 18, TypeScript, Vite, Tailwind CSS, shadcn/ui.
51-
- **State:** Zustand (persistent cart/wishlist) and TanStack Query.
52-
- **Backend:** Supabase (Database, Auth, Edge Functions) and Shopify Storefront API.
53-
- **AI constraints:** Do not hallucinate inventory. Always use Shopify API data for products and catalog.
78+
## Frontend Stack
79+
80+
- **Framework:** React 18 with TypeScript
81+
- **Build tool:** Vite (fast dev server, optimized production builds)
82+
- **Styling:** Tailwind CSS with custom Clinical Luxury tokens
83+
- **Component library:** shadcn/ui (accessible, composable components)
84+
- **Fonts:**
85+
- Headings: Playfair Display (Georgia fallback)
86+
- Body: Montserrat (Helvetica Neue fallback)
87+
- Arabic: Tajawal
88+
89+
## State Management
90+
91+
- **Zustand:** Persistent cart and wishlist with localStorage
92+
- **TanStack Query (React Query):** Server state, caching, optimistic updates for products, collections, and user data
93+
94+
## Backend & Services
95+
96+
- **Database & Auth:** Supabase (PostgreSQL, Row Level Security, OAuth providers)
97+
- **Edge Functions:** Supabase Edge (Deno) for COD orders, email notifications, AI chat backend
98+
- **Product catalog:** Shopify Storefront API (5000+ SKUs)
99+
- **AI:** Beauty Assistant powered by Supabase + custom prompts; Find My Ritual (skin analysis → product recommendations)
100+
101+
## Key Architectural Patterns
102+
103+
- **Headless commerce:** React frontend consumes Shopify Storefront GraphQL API; checkout redirects to Shopify-hosted flow
104+
- **Omnichannel:** Deep links from Instagram, WhatsApp, ManyChat; social commerce integration
105+
- **AI-first:** Conversational product discovery (Beauty Assistant chat widget); personalized skin analysis (Find My Ritual flow)
106+
- **Edge-optimized:** Supabase Edge Functions handle server logic; Lovable hosts static frontend with CDN
107+
108+
## Critical Constraints
109+
110+
- **Do not hallucinate inventory:** Always use Shopify API data for products, variants, prices, and availability. Never make up product details.
111+
- **Respect Shopify as source of truth:** Product handles, titles, descriptions, images, metafields come from Shopify. Do not hardcode product data.
112+
- **Maintain brand consistency:** Use only approved design tokens (no pure #FFF or #000); follow Four Pillars in all UX decisions.
54113

55114
Following these rules keeps the codebase clean and strictly aligned with Asper Beauty Shop brand DNA and Claude/Cursor expectations.

0 commit comments

Comments
 (0)