/* HaloScape Feedback Hub — seed data */
/* global window */

const seedPosts = [
  // --- FEATURE REQUESTS ---
  {
    id: 'p1', boardId: 'features',
    title: 'Biological age vs calendar age on the Today screen',
    details: "It would be great to see biological age alongside calendar age in the Today view. There are studies basing this on RHR and HRV — would love to have HaloScape's take on it, pulled from the data it already collects.",
    author: 'Matias Q.', votes: 3842,
    moderation: 'approved', status: 'progress',
    createdAt: '2026-03-02T09:12:00Z',
    comments: [
      { id: 'c1', author: 'Nora P.', body: 'Yes please — would love to see this trend over months, not just a single number.', createdAt: '2026-03-03T14:02:00Z' },
      { id: 'c2', author: 'HaloScape Team', body: 'Hey! We are actively working on the biological age model. Expect a beta in the Insights tab in the next cycle.', createdAt: '2026-03-12T10:20:00Z' },
      { id: 'c3', author: 'Kai M.', body: 'Would you expose the contributing factors (HRV, VO2 max, RHR, sleep) or just the final number?', createdAt: '2026-03-20T18:44:00Z' },
    ]
  },
  {
    id: 'p2', boardId: 'features',
    title: 'Full Apple Health two-way sync',
    details: "Read and write access for every applicable entry — workouts, mindful minutes, nutrition, cycle data. Right now it's read-only and I lose context in other apps.",
    author: 'Priya S.', votes: 2107,
    moderation: 'approved', status: 'planned',
    createdAt: '2026-03-14T11:30:00Z',
    comments: [
      { id: 'c4', author: 'Jules R.', body: 'Writing nutrition and workouts back would be huge.', createdAt: '2026-03-15T09:00:00Z' },
    ]
  },
  {
    id: 'p3', boardId: 'features',
    title: 'Recovery time estimation after hard workouts',
    details: 'A time estimate of how long it will take to recover after a high-strain session — based on HRV drop, sleep debt, and training load. Something like Whoop but with HaloScape clinical depth.',
    author: 'Ezra L.', votes: 1248,
    moderation: 'approved', status: 'planned',
    createdAt: '2026-03-18T07:45:00Z',
    comments: []
  },
  {
    id: 'p4', boardId: 'features',
    title: 'Web / desktop version of the dashboard',
    details: 'Would love to review my trends on a bigger screen during my Sunday review. Mobile is great for daily, but weekly/monthly reflection deserves a desktop view.',
    author: 'Dana O.', votes: 864,
    moderation: 'approved', status: 'progress',
    createdAt: '2026-02-20T16:10:00Z',
    comments: [
      { id: 'c5', author: 'Ben K.', body: 'Exporting to CSV from a web view would be ideal for sharing with my doctor.', createdAt: '2026-02-21T10:00:00Z' },
      { id: 'c6', author: 'Amy T.', body: '+1 — multi-month comparison is hard on mobile.', createdAt: '2026-02-22T18:33:00Z' },
    ]
  },
  {
    id: 'p5', boardId: 'features',
    title: 'Energy forecast with stage indicators',
    details: 'Predict peak, low, and recovery windows for the day based on circadian data and sleep. Show it on the lock-screen widget.',
    author: 'Sienna W.', votes: 572,
    moderation: 'approved', status: null,
    createdAt: '2026-04-01T08:00:00Z',
    comments: []
  },
  {
    id: 'p6', boardId: 'features',
    title: 'Habit / protocol tracking with streaks',
    details: 'Let me log and gamify consistency for protocols I care about — cold plunge, 10k steps, Zone 2 cardio. Quiet streaks, not loud ones.',
    author: 'Tomas H.', votes: 412,
    moderation: 'approved', status: null,
    createdAt: '2026-04-05T13:20:00Z',
    comments: []
  },
  {
    id: 'p7', boardId: 'features',
    title: 'Mental health & mood tracking',
    details: 'A lightweight daily check-in — mood, anxiety, energy on a 1–5 scale. Correlate with sleep, HRV, and cycle. Not a journal replacement, just a pulse.',
    author: 'Leila B.', votes: 389,
    moderation: 'approved', status: null,
    createdAt: '2026-04-08T09:12:00Z',
    comments: []
  },
  {
    id: 'p8', boardId: 'features',
    title: 'Apple Watch complications for Halo Score',
    details: 'Let me put my Halo Score and one biomarker (glucose or HRV) as a complication on my watch face.',
    author: 'Rami F.', votes: 231,
    moderation: 'approved', status: null,
    createdAt: '2026-04-10T16:42:00Z',
    comments: []
  },
  {
    id: 'p9', boardId: 'features',
    title: 'Shipped already: Dark mode across all surfaces',
    details: 'All four surfaces — Daylight, Pulse, Detail, Ambient — now have a native dark treatment.',
    author: 'HaloScape Team', votes: 1604,
    moderation: 'approved', status: 'shipped',
    createdAt: '2026-01-12T10:00:00Z',
    comments: []
  },

  // --- FEEDBACK (general) ---
  {
    id: 'p10', boardId: 'feedback',
    title: 'Onboarding feels a little long on first launch',
    details: "I love the quality of the questions, but 12 screens before my first Today view was a lot. Maybe split it — essentials first, the rest as I use the app?",
    author: 'Olivia C.', votes: 418,
    moderation: 'approved', status: null,
    createdAt: '2026-04-02T12:30:00Z',
    comments: [
      { id: 'c7', author: 'Noah J.', body: 'Agreed. I got through it but my partner gave up halfway.', createdAt: '2026-04-03T09:00:00Z' },
    ]
  },
  {
    id: 'p11', boardId: 'feedback',
    title: 'HaloCoach responses are sometimes too cautious',
    details: "When I ask about supplements or lifestyle changes, the coach often deflects with 'consult a professional'. I get the liability, but it feels evasive. A toggle for 'show me the data and let me decide' would help.",
    author: 'Marcus D.', votes: 312,
    moderation: 'approved', status: 'progress',
    createdAt: '2026-03-28T18:45:00Z',
    comments: []
  },
  {
    id: 'p12', boardId: 'feedback',
    title: 'Love the orb animation but battery drains faster',
    details: "The rotating orb is beautiful but my phone gets noticeably warmer on the Home screen. Could it pause when the screen is idle for 30s?",
    author: 'Ines V.', votes: 189,
    moderation: 'approved', status: null,
    createdAt: '2026-04-11T07:15:00Z',
    comments: []
  },
  {
    id: 'p13', boardId: 'feedback',
    title: 'Glucose card is gorgeous, would love the same for cholesterol',
    details: 'The smoky gradient for glucose makes the data feel human. LDL and HDL deserve the same treatment.',
    author: 'Aria P.', votes: 156,
    moderation: 'approved', status: null,
    createdAt: '2026-04-14T14:00:00Z',
    comments: []
  },
  {
    id: 'p14', boardId: 'feedback',
    title: 'Notifications at 6am feel too early on weekends',
    details: 'Weekend recovery mode: later, quieter notifications. Please.',
    author: 'Kai M.', votes: 98,
    moderation: 'approved', status: null,
    createdAt: '2026-04-15T06:20:00Z',
    comments: []
  },
  // --- BUG REPORTS ---
  {
    id: 'b1', boardId: 'bugs',
    title: 'Halo Score disappears after overnight charge',
    details: 'When I wake up and open the app after a full night charge, the Halo Score shows "—" for about 20-30 seconds before the data loads. Happens every morning.',
    author: 'Lena T.', votes: 287,
    moderation: 'approved', status: 'progress',
    createdAt: '2026-04-10T08:15:00Z',
    comments: [
      { id: 'bc1', author: 'HaloScape Team', body: 'Thanks for reporting. We identified a race condition in the morning sync — a fix is in the next build.', createdAt: '2026-04-11T10:00:00Z' },
    ]
  },
  {
    id: 'b2', boardId: 'bugs',
    title: 'HRV chart shows wrong baseline after timezone change',
    details: 'Traveled from Istanbul to London. My HRV chart baseline shifted dramatically but my actual readings were the same. The x-axis timestamps also look wrong.',
    author: 'Dmitri V.', votes: 142,
    moderation: 'approved', status: 'planned',
    createdAt: '2026-04-08T14:22:00Z',
    comments: []
  },
  {
    id: 'b3', boardId: 'bugs',
    title: 'Sleep start time always off by ~15 minutes',
    details: 'The app consistently says I fell asleep 10-15 minutes earlier than I actually did. I checked against my Apple Watch bedtime and the gap is always there.',
    author: 'Chloe M.', votes: 98,
    moderation: 'approved', status: null,
    createdAt: '2026-04-14T07:30:00Z',
    comments: []
  },
  {
    id: 'b4', boardId: 'bugs',
    title: 'Widget on lock screen shows stale data until I open the app',
    details: "The lock screen widget shows yesterday's Halo Score until I manually open the app. Background refresh seems to not work on iOS 18.4.",
    author: 'Yusuf A.', votes: 64,
    moderation: 'approved', status: null,
    createdAt: '2026-04-16T09:45:00Z',
    comments: []
  },
  {
    id: 'b5', boardId: 'bugs',
    title: 'Glucose integration stops syncing after 3 days',
    details: 'I use a Dexcom G7 and the CGM data stops appearing in HaloScape after exactly 72 hours. I have to disconnect and reconnect to fix it.',
    author: 'Sofia R.', votes: 53,
    moderation: 'approved', status: 'progress',
    createdAt: '2026-04-13T11:00:00Z',
    comments: [
      { id: 'bc2', author: 'Kai P.', body: 'Same issue with Libre 3. The sync dies after a few days consistently.', createdAt: '2026-04-14T08:30:00Z' },
    ]
  },

  // --- LAUNCH EXAMPLES (feedback) ---
  {
    id: 'p20', boardId: 'feedback',
    title: 'Would be great to see which sub-score pulled my HaloScore down',
    details: 'Some mornings I open the app and my score is lower than expected but it takes a few taps to figure out what changed. Showing the biggest mover right under the score, without having to dig, would make the morning check-in much quicker.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:00:00Z',
    comments: []
  },
  {
    id: 'p21', boardId: 'feedback',
    title: 'Would be useful to see how today\'s HaloScore compares to my personal average',
    details: 'Right now I see the number but I don\'t have an immediate sense of whether 71 is good or bad for me specifically. A small indicator showing where it sits relative to my last 30 day average would give it a lot more context.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:05:00Z',
    comments: []
  },
  {
    id: 'p22', boardId: 'feedback',
    title: 'Would love a way to add notes to specific days',
    details: 'Some days I want to flag that I was travelling, sick, or had an unusually stressful event so I can make sense of the data later. A simple free-text note tied to a date, visible on the timeline, would make looking back at trends much more useful.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:10:00Z',
    comments: []
  },
  // --- LAUNCH EXAMPLES (feature requests) ---
  {
    id: 'p23', boardId: 'features',
    title: 'Polar device support',
    details: 'A lot of people in the endurance and strength communities use Polar, especially the chest strap for HRV accuracy. Would make HaloScape a viable option for a whole segment of users who currently can\'t get full value from it.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:15:00Z',
    comments: []
  },
  {
    id: 'p24', boardId: 'features',
    title: 'Meal planning based on weekly training load',
    details: 'Nutrition logging is already in the app and works well. If workout logging were added alongside it, the two could work together — on a heavy training day the app could suggest higher carb intake, on a rest day pull it back. Even a simple daily dietary indicator based on planned activity would make the nutrition side of HaloScape much more actionable.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:20:00Z',
    comments: []
  },
  {
    id: 'p25', boardId: 'features',
    title: 'Streak tracking for personal protocols',
    details: 'I track a few habits manually alongside HaloScape — daily step target, weekly Zone 2 sessions, sleep consistency. Having a simple streak view built into the app for these would mean one less tool to juggle.',
    author: 'Anon', votes: 1,
    moderation: 'approved', status: null,
    createdAt: '2026-05-01T08:25:00Z',
    comments: []
  },

  // PENDING (admin-only, not yet approved)
  {
    id: 'p15', boardId: 'features',
    title: 'Export all my data as a single PDF for my GP',
    details: 'I want to share a 3-month summary with my general practitioner. A branded PDF with trends, ranges, and a narrative summary from HaloCoach.',
    author: 'Jordan F.', votes: 42,
    moderation: 'pending', status: null,
    createdAt: '2026-04-19T10:30:00Z',
    comments: []
  },
  {
    id: 'p16', boardId: 'features',
    title: 'Please add gym machines to workout picker',
    details: 'Treadmill, rower, stair mill, cable stack. I log each manually right now which defeats the point of HaloScape being the hub.',
    author: 'Sam K.', votes: 7,
    moderation: 'pending', status: null,
    createdAt: '2026-04-21T17:55:00Z',
    comments: []
  },
  {
    id: 'p17', boardId: 'feedback',
    title: 'The Halo Score should be explained more clearly',
    details: "I've seen it go up and down but I don't know why. Tapping it only gives me sub-scores — I want a short paragraph explaining the delta.",
    author: 'Yuki T.', votes: 23,
    moderation: 'pending', status: null,
    createdAt: '2026-04-20T20:00:00Z',
    comments: []
  },
  // DECLINED
  {
    id: 'p18', boardId: 'features',
    title: 'Add a social leaderboard with friends',
    details: 'I want to compete with my friends on daily steps and sleep score.',
    author: 'Deniz A.', votes: 12,
    moderation: 'declined', status: null,
    createdAt: '2026-04-09T15:00:00Z',
    comments: []
  },
  {
    id: 'p19', boardId: 'feedback',
    title: 'Rename "Ambient" to something less clinical',
    details: 'Ambient sounds like a hospital mode. Rename it to something warmer like "Reflect".',
    author: 'Anon', votes: 3,
    moderation: 'declined', status: null,
    createdAt: '2026-04-17T22:10:00Z',
    comments: []
  },
];

const seedBoards = [
  { id: 'feedback', name: 'Feedback',         color: '#6810DD' },
  { id: 'features', name: 'Feature Requests', color: '#E43D41' },
  { id: 'bugs',     name: 'Bug Reports',      color: '#0D4638' },
];

window.SEED_POSTS = seedPosts;
window.SEED_BOARDS = seedBoards;
