🎯 Mission Control

Enter passcode to continue

🎯 MISSION CONTROL
Overview
00:00:00
async function createNewSprint() { try { const startDate = new Date().toISOString().slice(0, 10); const endDate = new Date(); endDate.setDate(endDate.getDate() + 84); const res = await fetch('/api/sprint', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ name: '12-Week Sprint', mission: 'Scale Maqam ventures, build strategic leadership, and protect health/family while preserving sustainable energy.', start_date: startDate, end_date: endDate.toISOString().slice(0, 10), domains: [ { name: 'Business', icon: '🏒', color: '#7c6cf5', priority: 1, goal_12week: 'Scale recurring revenue and launch new AI offer', baseline: 'Current baseline', target: 'Aggressive growth', current: 'Tracking', connections: ['Career', 'Energy'] }, { name: 'Career', icon: '🎯', color: '#60a5fa', priority: 2, goal_12week: 'Build strategic CEO operating rhythm', baseline: 'Operator-heavy', target: 'Strategy-first', current: 'Improving', connections: ['Business', 'Energy'] }, { name: 'Health', icon: 'πŸ’ͺ', color: '#34d399', priority: 3, goal_12week: 'Increase workout frequency and nightly recovery consistency', baseline: 'Irregular', target: 'Consistent', current: 'On path', connections: ['Energy', 'Business'] }, { name: 'Family', icon: '❀️', color: '#f472b6', priority: 4, goal_12week: 'Protect daily time with kids and Aysha with clear rituals', baseline: 'Intermittent quality time', target: 'Ritualized', current: 'Improving', connections: ['Energy', 'Home'] }, { name: 'Home', icon: '🏠', color: '#fbbf24', priority: 5, goal_12week: 'Build a calmer, organized living/working environment', baseline: 'Needs structure', target: 'Systemized', current: 'Starting', connections: ['Business', 'Family'] }, { name: 'Energy', icon: '⚑', color: '#2dd4bf', priority: 6, goal_12week: 'Protect sustainable performance and avoid burnout', baseline: 'Burnout risk 6/10', target: 'Burnout risk 3/10', current: 'Monitoring', connections: ['Health', 'Business', 'Family'] }, ], }) }); const result = await res.json(); if (!res.ok || result.error) { toast('❌ ' + (result.error || 'Failed to create sprint')); return; } toast('βœ… 12-Week Sprint started'); await loadData(); switchPanel('sprint'); } catch (err) { toast('❌ ' + err.message); } }