// data.jsx — mock data for the Ground Truth UI kit prototype.
// Account names + signal language pulled from the v2 docs/codebase.

const ACCOUNTS = [
  { id: "acme",    name: "Acme Corp",       industry: "Logistics",     health: "at_risk",   value: 84000,  signals: 3, lastActivity: "2h ago" },
  { id: "gamma",   name: "Gamma LLC",       industry: "SaaS",          health: "growing",   value: 148000, signals: 1, lastActivity: "just now" },
  { id: "beta",    name: "Beta Inc",        industry: "Manufacturing", health: "declining", value: 32500,  signals: 2, lastActivity: "14d ago" },
  { id: "delta",   name: "Delta Logistics", industry: "Logistics",     health: "stable",    value: 9200,   signals: 0, lastActivity: "1mo ago" },
  { id: "epsilon", name: "Epsilon Health",  industry: "Healthcare",    health: "growing",   value: 62000,  signals: 2, lastActivity: "5h ago" },
  { id: "zeta",    name: "Zeta Industries", industry: "Manufacturing", health: "at_risk",   value: 28000,  signals: 1, lastActivity: "3d ago" },
  { id: "theta",   name: "Theta & Co.",     industry: "Professional",  health: "stable",    value: 14500,  signals: 0, lastActivity: "8d ago" },
  { id: "kappa",   name: "Kappa Foods",     industry: "Consumer",      health: "declining", value: 21000,  signals: 1, lastActivity: "2d ago" },
];

const SIGNALS = [
  {
    id: "s1", severity: "critical", category: "risk",
    headline: "Champion Gone Silent", accountId: "acme",
    contact: "Maria Soto", contactRole: "VP Operations",
    due: "Renewal in 14d", amount: 84000, updated: "2h ago",
    why: "Maria Soto has been Acme's primary contact for the past 9 months and the source of 78% of inbound emails. Her last reply was 14 days ago. The renewal contract is in 47 days and no other contact has acknowledged it.",
    recommended: "Send a brief check-in to Maria copied to her manager. Reference the open RFP from Q3 to invite a response without escalating.",
    evidence: [
      { ic: "mail",     t: "14 days since Maria's last reply (was averaging 1.2/day)" },
      { ic: "calendar", t: "Renewal contract dated 2026-06-28 — 47 days out" },
      { ic: "users",    t: "No other active contact has touched this account in 30 days" },
      { ic: "fileText", t: "RFP from Q3 still open — never closed in CRM" },
    ],
    verbLabel: "Draft email",
    verbIcon: "mail",
  },
  {
    id: "s2", severity: "high", category: "upsell",
    headline: "Expansion Signal Detected", accountId: "gamma",
    contact: "Priya Kumar", contactRole: "Director of Sales",
    due: "Window: 21d", amount: 45000, updated: "5h ago",
    why: "Priya's reply yesterday mentioned 'rolling this out in London' and 'a second team next quarter'. Last quarter's growth conversation paired with this language matches our upsell pattern.",
    recommended: "Propose a London expansion meeting next week. Loop in your AE for Western Europe.",
    evidence: [
      { ic: "mail",     t: "Reply yesterday: \"...rolling this out in London...\"" },
      { ic: "users",    t: "Two new contacts added to thread last week" },
      { ic: "trending", t: "Account usage up 34% in past 30d" },
    ],
    verbLabel: "Schedule call",
    verbIcon: "calendar",
  },
  {
    id: "s3", severity: "high", category: "action",
    headline: "Deal Stalled in Proposal", accountId: "beta",
    contact: "Sarah Lin", contactRole: "CFO",
    due: "42d in stage", amount: 32500, updated: "14d ago",
    why: "Beta's $32K deal has been in Proposal for 42 days. The CFO (Sarah Lin) hasn't replied since a pricing pushback on day 7. No other stakeholder is on the thread.",
    recommended: "Schedule a manager-level check-in. This is single-threaded — find a second stakeholder.",
    evidence: [
      { ic: "clock",  t: "42 days in Proposal stage" },
      { ic: "mail",   t: "Last reply 14 days ago — pricing pushback unaddressed" },
      { ic: "users",  t: "Single-threaded: only Sarah Lin engaging" },
    ],
    verbLabel: "Send check-in",
    verbIcon: "send",
  },
  {
    id: "s4", severity: "medium", category: "crosssell",
    headline: "New Department Mentioned", accountId: "epsilon",
    contact: "Daniel Reyes", contactRole: "Head of Ops",
    due: null, amount: 18000, updated: "1d ago",
    why: "Daniel's reply on Monday mentioned 'our Marketing team is looking at this too'. Marketing is a department where we typically see a $15–25K secondary deal.",
    recommended: "Offer a 30-min intro with Marketing's lead. Provide a one-pager scoped for their persona.",
    evidence: [
      { ic: "mail",  t: "Reply Mon: \"our Marketing team is looking at this too\"" },
      { ic: "users", t: "No Marketing contact in account yet" },
    ],
    verbLabel: "Send intro",
    verbIcon: "mail",
  },
  {
    id: "s5", severity: "medium", category: "risk",
    headline: "Single-Threaded", accountId: "zeta",
    contact: "Tomás Vega", contactRole: "Procurement",
    due: null, amount: 28000, updated: "3d ago",
    why: "Tomás is the only active contact at Zeta Industries. He's mentioned approval delays in 3 of his last 5 replies.",
    recommended: "Identify a second stakeholder — try the Operations director who was CC'd on the original RFP.",
    evidence: [
      { ic: "users", t: "Only 1 active contact (last 60d)" },
      { ic: "mail",  t: "3 of 5 recent replies mention approval delays" },
    ],
    verbLabel: "Find contact",
    verbIcon: "user",
  },
  {
    id: "s6", severity: "low", category: "action",
    headline: "Renewal Approaching", accountId: "kappa",
    contact: "Aisha Khan", contactRole: "Director of Finance",
    due: "84d", amount: 21000, updated: "1w ago",
    why: "Kappa's contract is up in 84 days. Engagement is steady and there are no risk signals — this is a routine renewal prep.",
    recommended: "Send the standard 90-day renewal note in 6 days. No action today.",
    evidence: [
      { ic: "calendar", t: "Renewal date 2026-08-15" },
      { ic: "mail",     t: "12 emails in past 30d — healthy cadence" },
    ],
    verbLabel: "Snooze 6d",
    verbIcon: "clock",
  },
];

const SUGGESTIONS = [
  { id: "g1", title: "Create deal — Acme Corp, ~$50K, Proposal stage?", desc: "Detected from a quote thread on Mar 12 — three replies discussing terms.", actions: ["Create", "Not a deal"] },
  { id: "g2", title: "Mark Maria Soto as Decision-Maker?", desc: "She's signed the last 3 emails as VP Operations and approved Acme's pricing tier.", actions: ["Confirm", "Edit"] },
  { id: "g3", title: "Beta Inc moved to Negotiation?", desc: "Sarah Lin replied with revised numbers — stage transition detected.", actions: ["Confirm", "Dismiss"] },
];

const ACTIVITY = [
  { id: "a1", when: "9:42 AM", icon: "mail",     account: "Acme Corp",   text: "Maria Soto replied — \"Let me check internally.\"" },
  { id: "a2", when: "9:18 AM", icon: "sparkles", account: "Gamma LLC",   text: "Expansion Signal Detected — London expansion language." },
  { id: "a3", when: "8:55 AM", icon: "trending", account: "Beta Inc",    text: "Deal stage changed: Discovery → Proposal." },
  { id: "a4", when: "Yesterday", icon: "users",  account: "Epsilon Health", text: "New contact discovered — Daniel Reyes, Head of Ops." },
  { id: "a5", when: "Yesterday", icon: "fileText", account: "Acme Corp", text: "Attachment processed — Acme_Renewal_Terms_v2.pdf" },
];

window.GT_DATA = { ACCOUNTS, SIGNALS, SUGGESTIONS, ACTIVITY };
