// Grape Elevate — mock data store // Lightweight in-memory store: automations, conversations, activity log. const seedAutomations = () => [ { id: 'a1', name: 'Comentou "PROMO" → DM com link', trigger: 'comment', triggerKey: 'PROMO', runs: 1284, conv: 41.2, status: 'live', updated: 'há 2h' }, { id: 'a2', name: 'Resposta a story → captura lead', trigger: 'story', triggerKey: 'qualquer', runs: 832, conv: 28.7, status: 'live', updated: 'há 6h' }, { id: 'a3', name: 'Boas-vindas para novos seguidores', trigger: 'follow', triggerKey: '—', runs: 412, conv: 19.5, status: 'live', updated: 'ontem' }, { id: 'a4', name: 'Lançamento curso Maio — DM frio', trigger: 'dm', triggerKey: 'oi', runs: 207, conv: 12.1, status: 'paused', updated: '2 dias' }, { id: 'a5', name: 'Black Friday — comentário "QUERO"', trigger: 'comment', triggerKey: 'QUERO', runs: 0, conv: 0, status: 'draft', updated: '5 dias' }, { id: 'a6', name: 'Carrossel sobre IA — agradecer comentário', trigger: 'comment', triggerKey: 'IA', runs: 96, conv: 8.4, status: 'paused', updated: '1 semana' }, ]; const seedConversations = () => [ { id: 'c1', name: 'Marina Lopes', handle: '@marinalopes', avatarHue: 285, last: 'Quero o link do curso 🙏', unread: 2, bot: true, time: '14:02', tags: ['lead', 'curso-maio'], source: 'post: "Lançamento"', msgs: [ { from: 'them', text: 'Oi! Vi seu post sobre o curso, ainda dá pra entrar?', t: '13:58' }, { from: 'bot', text: 'Oi Marina! Aqui está o link com o desconto da semana 👇', t: '13:58' }, { from: 'bot', text: 'grape.app/curso-maio', t: '13:58' }, { from: 'them', text: 'Perfeito, obrigada!', t: '14:01' }, { from: 'them', text: 'Quero o link do curso 🙏', t: '14:02' }, ] }, { id: 'c2', name: 'Diego Sato', handle: '@diegosato', avatarHue: 200, last: 'Comentou "PROMO" no Reel', unread: 0, bot: true, time: '13:47', tags: ['promo'], source: 'reel: "3 dicas"', msgs: [ { from: 'them', text: 'PROMO', t: '13:46' }, { from: 'bot', text: 'Aqui está seu cupom: GRAPE10 — 10% off até domingo 🍇', t: '13:47' }, ] }, { id: 'c3', name: 'Lia Andrade', handle: '@lia.creates', avatarHue: 340, last: 'Posso pagar em 2x?', unread: 1, bot: false, time: '12:30', tags: ['lead', 'vip'], source: 'DM direta', msgs: [ { from: 'them', text: 'Posso pagar em 2x?', t: '12:30' }, ] }, { id: 'c4', name: 'Rafa Tomaz', handle: '@rafatomaz', avatarHue: 30, last: 'Obrigado pelas dicas!', unread: 0, bot: true, time: 'ontem', tags: ['engajado'], source: 'story', msgs: [ { from: 'them', text: 'Adorei o story de hoje 🔥', t: 'ontem' }, { from: 'bot', text: 'Obrigado, Rafa! Se quiser saber mais, é só me pedir aqui 💜', t: 'ontem' }, { from: 'them', text: 'Obrigado pelas dicas!', t: 'ontem' }, ] }, { id: 'c5', name: 'Camila Reis', handle: '@cami.reis', avatarHue: 160, last: 'IA', unread: 0, bot: true, time: 'ontem', tags: ['IA'], source: 'post: "IA no marketing"', msgs: [ { from: 'them', text: 'IA', t: 'ontem' }, { from: 'bot', text: 'Aqui está o e-book sobre IA no marketing 📘 grape.app/ia-ebook', t: 'ontem' }, ] }, { id: 'c6', name: 'João Pires', handle: '@jpires', avatarHue: 240, last: 'Faz parcelado?', unread: 1, bot: false, time: '2 dias', tags: ['lead'], source: 'DM direta', msgs: [ { from: 'them', text: 'Oi, faz parcelado?', t: '2 dias atrás' }, ] }, ]; // Activity sparkline data — 7 daily points per series. const seedActivity = () => ({ followers: [22, 31, 26, 44, 38, 52, 61], dms: [120, 142, 138, 156, 174, 198, 210], replies: [38, 41, 52, 49, 60, 71, 82], leads: [12, 9, 14, 18, 16, 23, 27], }); const seedRecent = () => [ { kind: 'dm', who: 'Marina Lopes', what: 'recebeu o link do curso', when: '14:02', auto: 'Lançamento curso Maio' }, { kind: 'lead', who: 'Lia Andrade', what: 'virou lead via story', when: '12:30', auto: 'Resposta a story' }, { kind: 'reply', who: 'Diego Sato', what: 'comentou "PROMO" no reel', when: '13:46', auto: 'Comentou PROMO' }, { kind: 'follow', who: 'Rafa Tomaz', what: 'começou a seguir', when: '11:08', auto: 'Boas-vindas' }, { kind: 'dm', who: 'Camila Reis', what: 'recebeu o e-book sobre IA', when: 'ontem', auto: 'IA carrossel' }, ]; window.seedAutomations = seedAutomations; window.seedConversations = seedConversations; window.seedActivity = seedActivity; window.seedRecent = seedRecent;