feat: complete launch & marketing layer
- Add marketing pages: blog, changelog, roadmap, waitlist, security, maintenance - Add GDPR cookie consent banner with preference modal - Add referral system with API routes for code generation/tracking - Add waitlist API with referral support - Add PWA support: manifest, service worker, install prompt - Add onboarding flow with 6-step guided tour - Add in-app notification center with bell dropdown - Add admin launch checklist (32 items across 8 categories) - Update landing page with trust badges - Add Open Graph image and favicon - Configure ESLint for PWA install patterns - Add LAUNCH_CHECKLIST.md with go-to-market guide Supabase migrations for: - blog_posts and blog_categories tables - waitlist_signups table - roadmap_items table - launch_checklist_items table
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
-- Waitlist and Early Access Signup System
|
||||
-- Migration for Route Commerce
|
||||
|
||||
CREATE TABLE IF NOT EXISTS waitlist (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
email TEXT UNIQUE NOT NULL,
|
||||
name TEXT,
|
||||
referral_source TEXT,
|
||||
referred_by TEXT,
|
||||
created_at TIMESTAMPTZ DEFAULT NOW(),
|
||||
status TEXT DEFAULT 'pending' CHECK (status IN ('pending', 'converted', 'archived'))
|
||||
);
|
||||
|
||||
-- Index for email lookups
|
||||
CREATE INDEX IF NOT EXISTS idx_waitlist_email ON waitlist(email);
|
||||
CREATE INDEX IF NOT EXISTS idx_waitlist_status ON waitlist(status);
|
||||
CREATE INDEX IF NOT EXISTS idx_waitlist_created ON waitlist(created_at DESC);
|
||||
|
||||
-- Grant permissions
|
||||
GRANT SELECT, INSERT ON waitlist TO anon;
|
||||
GRANT SELECT, INSERT ON waitlist TO authenticated;
|
||||
GRANT SELECT, INSERT ON waitlist TO service_role;
|
||||
|
||||
-- Comment on table
|
||||
COMMENT ON TABLE waitlist IS 'Early access signup for Route Commerce platform';
|
||||
COMMENT ON COLUMN waitlist.email IS 'Unique email address';
|
||||
COMMENT ON COLUMN waitlist.name IS 'Optional full name';
|
||||
COMMENT ON COLUMN waitlist.referral_source IS 'How they heard about us';
|
||||
COMMENT ON COLUMN waitlist.referred_by IS 'Email of person who referred them';
|
||||
COMMENT ON COLUMN waitlist.status IS 'pending, converted (signed up), archived';
|
||||
Reference in New Issue
Block a user