|
| 1 | +import Head from 'next/head'; |
| 2 | +import Link from 'next/link'; |
| 3 | + |
| 4 | +const releases = [ |
| 5 | + { |
| 6 | + version: 'v1.4.0', |
| 7 | + date: 'March 22, 2026', |
| 8 | + tag: 'Latest', |
| 9 | + tagColor: '#dcfce7', |
| 10 | + tagText: '#16a34a', |
| 11 | + changes: [ |
| 12 | + { type: 'New', text: 'Platform admin dashboard at /admin — view MRR, users, usage, and webhook logs' }, |
| 13 | + { type: 'New', text: 'Manual AI processing per email — click "Process with AI" to control your usage' }, |
| 14 | + { type: 'New', text: 'Email body renders as HTML inside a sandboxed iframe (like Gmail)' }, |
| 15 | + { type: 'New', text: 'Cancel subscription button — cancels at end of billing period via Razorpay API' }, |
| 16 | + { type: 'Improved', text: 'Plan limit banner in inbox when free users reach 5/5 AI-processed emails' }, |
| 17 | + { type: 'Fixed', text: 'Auth form now correctly renders in light mode (white background)' }, |
| 18 | + { type: 'Fixed', text: 'All website pricing updated to INR: Pro ₹199/mo, Agency ₹1,499/mo' }, |
| 19 | + ], |
| 20 | + }, |
| 21 | + { |
| 22 | + version: 'v1.3.0', |
| 23 | + date: 'March 15, 2026', |
| 24 | + tag: 'Billing', |
| 25 | + tagColor: '#ede9fe', |
| 26 | + tagText: '#7c3aed', |
| 27 | + changes: [ |
| 28 | + { type: 'New', text: 'Razorpay integration — accept payments from India with subscription billing' }, |
| 29 | + { type: 'New', text: 'Billing page shows exact error messages when payment setup is misconfigured' }, |
| 30 | + { type: 'New', text: 'Webhook handlers for subscription.activated, subscription.charged, subscription.halted, invoice.paid, invoice.expired' }, |
| 31 | + { type: 'Improved', text: 'Email usage count now only counts AI-processed emails (not all emails)' }, |
| 32 | + { type: 'Fixed', text: 'CORS errors blocking API calls from mailair.company' }, |
| 33 | + ], |
| 34 | + }, |
| 35 | + { |
| 36 | + version: 'v1.2.0', |
| 37 | + date: 'March 5, 2026', |
| 38 | + tag: 'Security', |
| 39 | + tagColor: '#fef3c7', |
| 40 | + tagText: '#d97706', |
| 41 | + changes: [ |
| 42 | + { type: 'New', text: 'HMAC-SHA256 signed OAuth state parameter for CSRF protection on Gmail flow' }, |
| 43 | + { type: 'New', text: 'Fernet encryption for stored CRM credentials (HubSpot, Salesforce)' }, |
| 44 | + { type: 'Improved', text: 'Team features: org membership verified before accessing internal notes' }, |
| 45 | + { type: 'Improved', text: 'Auto-assign rules now verify assigned user is org member' }, |
| 46 | + { type: 'Fixed', text: 'Webhook URL validated as proper HTTP/HTTPS URL via Pydantic HttpUrl' }, |
| 47 | + ], |
| 48 | + }, |
| 49 | + { |
| 50 | + version: 'v1.1.0', |
| 51 | + date: 'February 20, 2026', |
| 52 | + tag: 'Auth', |
| 53 | + tagColor: '#dbeafe', |
| 54 | + tagText: '#1d4ed8', |
| 55 | + changes: [ |
| 56 | + { type: 'New', text: 'Supabase implicit OAuth flow with localStorage session storage' }, |
| 57 | + { type: 'New', text: 'Session-gated SWR hooks — no unauthenticated API fetches' }, |
| 58 | + { type: 'Fixed', text: 'Removed auto sign-out on 401 — prevented infinite redirect loop on load' }, |
| 59 | + { type: 'Fixed', text: 'Auth callback now uses useRef to prevent double navigation' }, |
| 60 | + { type: 'Fixed', text: 'Middleware stripped of auth logic — incompatible with localStorage sessions' }, |
| 61 | + ], |
| 62 | + }, |
| 63 | + { |
| 64 | + version: 'v1.0.0', |
| 65 | + date: 'February 1, 2026', |
| 66 | + tag: 'Launch', |
| 67 | + tagColor: '#fce7f3', |
| 68 | + tagText: '#be185d', |
| 69 | + changes: [ |
| 70 | + { type: 'New', text: 'AI email categorization (Urgent, Needs Response, Follow Up, FYI, Newsletter, Spam)' }, |
| 71 | + { type: 'New', text: 'Priority inbox with AI-scored priority levels' }, |
| 72 | + { type: 'New', text: 'Action item extraction from email content' }, |
| 73 | + { type: 'New', text: 'Smart reply drafts using Claude AI' }, |
| 74 | + { type: 'New', text: 'Gmail OAuth integration with multi-account support' }, |
| 75 | + { type: 'New', text: 'Slack notifications for urgent emails' }, |
| 76 | + { type: 'New', text: 'Team collaboration: internal notes, email assignment, org management' }, |
| 77 | + { type: 'New', text: 'CRM integrations: HubSpot and Salesforce' }, |
| 78 | + { type: 'New', text: 'Google Calendar integration for meeting detection' }, |
| 79 | + ], |
| 80 | + }, |
| 81 | +]; |
| 82 | + |
| 83 | +const typeColors: Record<string, { bg: string; text: string }> = { |
| 84 | + New: { bg: '#dcfce7', text: '#15803d' }, |
| 85 | + Improved: { bg: '#dbeafe', text: '#1d4ed8' }, |
| 86 | + Fixed: { bg: '#fef9c3', text: '#a16207' }, |
| 87 | +}; |
| 88 | + |
| 89 | +export default function ChangelogPage() { |
| 90 | + return ( |
| 91 | + <> |
| 92 | + <Head> |
| 93 | + <title>Changelog — Mailair</title> |
| 94 | + <meta name="description" content="See what's new in Mailair — new features, improvements, and bug fixes." /> |
| 95 | + </Head> |
| 96 | + |
| 97 | + <nav style={{ borderBottom: '1px solid #e5e7eb', padding: '0 24px', height: 64, display: 'flex', alignItems: 'center', justifyContent: 'space-between', background: '#fff' }}> |
| 98 | + <Link href="/"><img src="/logo.svg" alt="Mailair" style={{ height: 36 }} /></Link> |
| 99 | + <div style={{ display: 'flex', gap: 24, alignItems: 'center' }}> |
| 100 | + <Link href="/docs" style={{ color: '#6b7280', fontSize: 14, textDecoration: 'none' }}>Docs</Link> |
| 101 | + <Link href="/auth/signin" style={{ color: '#6b7280', fontSize: 14, textDecoration: 'none' }}>Sign In</Link> |
| 102 | + <Link href="/auth/signup" style={{ background: '#2563eb', color: '#fff', padding: '8px 18px', borderRadius: 8, fontSize: 14, fontWeight: 600, textDecoration: 'none' }}>Start Free</Link> |
| 103 | + </div> |
| 104 | + </nav> |
| 105 | + |
| 106 | + <div style={{ maxWidth: 720, margin: '0 auto', padding: '60px 24px' }}> |
| 107 | + <h1 style={{ fontSize: 40, fontWeight: 800, color: '#111827', margin: '0 0 8px' }}>Changelog</h1> |
| 108 | + <p style={{ color: '#6b7280', fontSize: 16, marginBottom: 56 }}>Every update to Mailair, documented.</p> |
| 109 | + |
| 110 | + <div style={{ position: 'relative' }}> |
| 111 | + {releases.map((release, idx) => ( |
| 112 | + <div key={release.version} style={{ display: 'flex', gap: 32, marginBottom: 56 }}> |
| 113 | + {/* Timeline */} |
| 114 | + <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', flexShrink: 0 }}> |
| 115 | + <div style={{ width: 12, height: 12, borderRadius: '50%', background: idx === 0 ? '#2563eb' : '#d1d5db', border: '2px solid', borderColor: idx === 0 ? '#2563eb' : '#d1d5db', marginTop: 6 }} /> |
| 116 | + {idx < releases.length - 1 && <div style={{ width: 2, flexGrow: 1, background: '#e5e7eb', marginTop: 8 }} />} |
| 117 | + </div> |
| 118 | + |
| 119 | + {/* Content */} |
| 120 | + <div style={{ flex: 1, paddingBottom: 16 }}> |
| 121 | + <div style={{ display: 'flex', alignItems: 'center', gap: 12, marginBottom: 4, flexWrap: 'wrap' }}> |
| 122 | + <span style={{ fontSize: 20, fontWeight: 800, color: '#111827' }}>{release.version}</span> |
| 123 | + <span style={{ fontSize: 11, fontWeight: 700, padding: '2px 10px', borderRadius: 99, background: release.tagColor, color: release.tagText, textTransform: 'uppercase', letterSpacing: '0.05em' }}> |
| 124 | + {release.tag} |
| 125 | + </span> |
| 126 | + <span style={{ fontSize: 13, color: '#9ca3af' }}>{release.date}</span> |
| 127 | + </div> |
| 128 | + |
| 129 | + <ul style={{ listStyle: 'none', padding: 0, margin: '16px 0 0' }}> |
| 130 | + {release.changes.map((change, i) => { |
| 131 | + const tc = typeColors[change.type] ?? typeColors.New; |
| 132 | + return ( |
| 133 | + <li key={i} style={{ display: 'flex', alignItems: 'flex-start', gap: 10, marginBottom: 10 }}> |
| 134 | + <span style={{ fontSize: 11, fontWeight: 700, padding: '2px 8px', borderRadius: 6, background: tc.bg, color: tc.text, flexShrink: 0, marginTop: 2 }}> |
| 135 | + {change.type} |
| 136 | + </span> |
| 137 | + <span style={{ fontSize: 14, color: '#374151', lineHeight: 1.6 }}>{change.text}</span> |
| 138 | + </li> |
| 139 | + ); |
| 140 | + })} |
| 141 | + </ul> |
| 142 | + </div> |
| 143 | + </div> |
| 144 | + ))} |
| 145 | + </div> |
| 146 | + </div> |
| 147 | + </> |
| 148 | + ); |
| 149 | +} |
0 commit comments