/* data.jsx — shared data for both screens (window globals) */

const MANAGER = 'Riley Morgan';
const CATS = ['All', 'System', 'Corporate', 'Group'];

const BADGES = [
  {
    id:'fellow-helper', name:'Fellow Helper', cat:'System',
    img: BADGE_FELLOW_URI,
    desc:'Recognizes teammates who consistently lend a hand, share what they know, and make the people around them better.',
    criteria:"Awarded to individuals who consistently demonstrate generosity with their time and knowledge — stepping in to support teammates, answering questions in team channels, and mentoring newer colleagues without being asked. Managers typically give this after a sustained pattern of helpfulness.",
    earnedCount:24, earnedBy:['Maya Chen','James Rivera','Aisha Patel','Sofia Russo','Tom Becker'],
  },
  {
    id:'above-beyond', name:'Above & Beyond', cat:'Corporate',
    img: BADGE_ABOVE_URI,
    desc:'For going the extra mile on a project or deadline that genuinely mattered to the team.',
    criteria:"Given when someone delivers well beyond what their role required — staying late to ship a launch, rescuing an at-risk project, or solving a problem nobody asked them to take on.",
    earnedCount:12, earnedBy:['Grace Liu','Daniel Kim','Aisha Patel'],
  },
  {
    id:'quick-study', name:'Quick Study', cat:'System',
    img: BADGE_QUICK_URI,
    desc:'Mastered a new skill or completed a learning path in record time.',
    criteria:"Awarded to learners who complete a course or skill path faster than expected while still scoring well — a signal of focus, curiosity, and drive.",
    earnedCount:31, earnedBy:['Tom Becker','Maya Chen','Marcus Webb','Sofia Russo'],
  },
  {
    id:'team-player', name:'Team Player', cat:'Group',
    img: BADGE_TEAM_URI,
    desc:'Puts the team first and reliably lifts everyone around them.',
    criteria:"For people who put shared goals ahead of personal credit — covering shifts, welcoming new hires, and keeping morale high when things get busy.",
    earnedCount:18, earnedBy:['James Rivera','Grace Liu','Daniel Kim'],
  },
  {
    id:'customer-champion', name:'Customer Champion', cat:'Corporate',
    img: BADGE_CUSTOMER_URI,
    desc:'Delivered an experience that earned direct praise from a customer.',
    criteria:"Recognizes a standout customer moment — a thoughtful resolution, a memorable interaction, or feedback that specifically named this teammate.",
    earnedCount:7, earnedBy:['Aisha Patel','Maya Chen'],
  },
];

const MEMBERS = [
  { id:'aisha', name:'Aisha Patel', role:'Store Manager' },
  { id:'andre', name:'Andre Costa', role:'Cashier' },
  { id:'carmen', name:'Carmen Diaz', role:'Trainer', awarded:true },
  { id:'daniel', name:'Daniel Kim', role:'Sales Associate' },
  { id:'diego', name:'Diego Morales', role:'Stockroom' },
  { id:'elena', name:'Elena Petrova', role:'Shift Lead' },
  { id:'grace', name:'Grace Liu', role:'Team Lead' },
  { id:'james', name:'James Rivera', role:'Shift Lead' },
  { id:'jordan', name:'Jordan Blake', role:'Cashier' },
  { id:'leah', name:'Leah Goldberg', role:'Barista', awarded:true },
  { id:'liam', name:'Liam O’Brien', role:'Sales Associate' },
  { id:'marcus-t', name:'Marcus Tran', role:'Sales Associate' },
  { id:'maya', name:'Maya Chen', role:'Sales Associate' },
  { id:'marcus-w', name:'Marcus Webb', role:'Stockroom' },
  { id:'noah', name:'Noah Bennett', role:'Barista' },
  { id:'priya', name:'Priya Kapoor', role:'Trainer' },
  { id:'samuel', name:'Samuel Okafor', role:'Cashier' },
  { id:'sofia', name:'Sofia Russo', role:'Trainer', awarded:true },
  { id:'tom', name:'Tom Becker', role:'Barista' },
  { id:'zoe', name:'Zoe Nakamura', role:'Team Lead' },
];

const GROUPS = [
  { id:'morning', name:'Morning Shift', count:8 },
  { id:'onboarding', name:'Onboarding Cohort', count:5 },
  { id:'sales-floor', name:'Sales Floor', count:12 },
  { id:'leadership', name:'Leadership', count:4 },
  { id:'new-hires', name:'New Hires Q2', count:6 },
];

Object.assign(window, { MANAGER, CATS, BADGES, MEMBERS, GROUPS });

