UX Design Setup

<aside>

Create design system in Storybook with:

Supabase-related Prompts

Supabase Env File Creation

<aside>

Create .env.local file with:

Add detailed comments explaining where to find each value in Supabase dashboard including:

  1. Exact navigation path (Settings > API)
  2. Security warnings about exposure
  3. Recommended permissions for each key </aside>

Supabase Table Creation

<aside>

Create products table with SQL:

Generate migration file named 20240527_create_products.sql Add RLS policies:

Real-time Query Setup

<aside>

Implement real-time product updates using:

Add channel configuration with:

Persistent Error Resolution

<aside>

Fix infinite migration loop for 'on_auth_user_created':

  1. Check for existing trigger
  2. Conditional DROP/CREATE
  3. Atomic transaction
  4. Idempotent SQL
  5. Verify in Supabase CLI
  6. Add migration test cases
  7. Document trigger lifecycle </aside>

Stripe-related Prompts

Stripe Integration

<aside>

Implement Stripe checkout with:

Stripe Integration (Detailed)