export type SeedHelpCategory = {
  id: string;
  key: string;
  title: string;
};

export type SeedHelpArticle = {
  id: string;
  slug: string;
  title: string;
  summary: string;
  categoryKey: string;
  category: string;
  role: 'ALL' | 'company' | 'jobSeeker' | 'professional' | 'customer' | 'platform';
  tags: string[];
  updatedAt: string;
  content: string;
};

export const HELP_CENTER_SEED_CATEGORIES: SeedHelpCategory[] = [
  { id: 'seed-cat-getting-started', key: 'getting-started', title: 'Getting Started' },
  { id: 'seed-cat-account-login', key: 'account-login', title: 'Account & Login' },
  { id: 'seed-cat-profile-verification', key: 'profile-verification', title: 'Profile & Verification' },
  { id: 'seed-cat-platform-basics', key: 'platform-basics', title: 'Platform Basics' },
  { id: 'seed-cat-jobs-applications', key: 'jobs-applications', title: 'Jobs & Applications' },
  { id: 'seed-cat-leads-requests', key: 'leads-requests', title: 'Leads & Requests' },
  { id: 'seed-cat-tracecoins-billing', key: 'tracecoins-billing', title: 'TraceCoins & Billing' },
  { id: 'seed-cat-privacy-safety', key: 'privacy-safety', title: 'Privacy & Safety' },
  { id: 'seed-cat-troubleshooting', key: 'troubleshooting', title: 'Troubleshooting' },
];

const updatedAt = '2026-04-06T00:00:00.000Z';

export const HELP_CENTER_SEED_ARTICLES: SeedHelpArticle[] = [
  {
    id: 'seed-1',
    slug: 'create-account-3-steps',
    title: 'Create your Nxtgauge account in 3 steps',
    summary: 'Quick steps to sign up, verify, and get ready for your role journey.',
    categoryKey: 'getting-started',
    category: 'Getting Started',
    role: 'ALL',
    tags: ['account', 'signup', 'getting started'],
    updatedAt,
    content: 'Step 1: Sign up with your email or mobile number.\n\nStep 2: Verify OTP and complete basic account details.\n\nStep 3: Continue to role setup and complete your profile.',
  },
  {
    id: 'seed-2',
    slug: 'choose-role-after-signup',
    title: 'Choose your role after signup',
    summary: 'You can create one account first and activate the role path later.',
    categoryKey: 'getting-started',
    category: 'Getting Started',
    role: 'ALL',
    tags: ['role', 'signup'],
    updatedAt,
    content: 'Nxtgauge supports one account with role-based journeys.\n\nAfter signup, choose the role flow you need: company, professional, job seeker, or customer.',
  },
  {
    id: 'seed-3',
    slug: 'understand-account-statuses',
    title: 'Understand account statuses: Draft, Review, Approved',
    summary: 'Learn what each status means and what to do next.',
    categoryKey: 'getting-started',
    category: 'Getting Started',
    role: 'ALL',
    tags: ['status', 'approval'],
    updatedAt,
    content: 'Draft means incomplete.\n\nReview means your submission is being checked.\n\nApproved means your profile or listing is visible in discovery.',
  },
  {
    id: 'seed-4',
    slug: 'how-nxtgauge-platform-works',
    title: 'How the Nxtgauge platform works',
    summary: 'A trust-led submission, review, approval, and discovery workflow.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'platform',
    tags: ['workflow', 'trust'],
    updatedAt,
    content: 'Users submit profiles, requirements, or jobs.\n\nNxtgauge verifies submissions.\n\nApproved records become visible for discovery and matching.',
  },
  {
    id: 'seed-5',
    slug: 'one-account-multiple-journeys',
    title: 'One account, multiple journeys explained',
    summary: 'Use one account and activate the journey you need.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'platform',
    tags: ['account', 'roles'],
    updatedAt,
    content: 'You do not need separate accounts for each role.\n\nKeep each role profile complete for better matching quality.',
  },
  {
    id: 'seed-6',
    slug: 'review-approval-improve-trust',
    title: 'How review and approval improve trust',
    summary: 'Approval checkpoints reduce noise and increase confidence.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'platform',
    tags: ['review', 'approval', 'trust'],
    updatedAt,
    content: 'Review and approval reduce low-quality submissions.\n\nThis creates cleaner discovery and better first-contact confidence.',
  },
  {
    id: 'seed-7',
    slug: 'track-progress-without-confusion',
    title: 'How to track progress without confusion',
    summary: 'Use clear status labels and next actions from your dashboard.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'ALL',
    tags: ['tracking', 'status'],
    updatedAt,
    content: 'Check status labels daily.\n\nRespond quickly to changes.\n\nFollow the next action shown in your panel.',
  },
  {
    id: 'seed-8',
    slug: 'platform-terms-simple-words',
    title: 'Common platform terms in simple words',
    summary: 'A quick glossary for Draft, Review, Approved, Requirement, and Lead.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'ALL',
    tags: ['glossary', 'terms'],
    updatedAt,
    content: 'Draft: incomplete.\n\nReview: in verification.\n\nApproved: visible in platform.\n\nRequirement: customer need.\n\nLead: potential opportunity.',
  },
  {
    id: 'seed-9',
    slug: 'get-better-platform-visibility',
    title: 'How to get better platform visibility',
    summary: 'Practical profile improvements that increase discovery quality.',
    categoryKey: 'platform-basics',
    category: 'Platform Basics',
    role: 'ALL',
    tags: ['visibility', 'profile'],
    updatedAt,
    content: 'Complete profile fields, clarify scope, and keep proof updated.\n\nClear profiles usually perform better in discovery.',
  },
  {
    id: 'seed-10',
    slug: 'reset-password',
    title: 'How to reset your password',
    summary: 'Use the forgot password flow and verify securely with OTP.',
    categoryKey: 'account-login',
    category: 'Account & Login',
    role: 'ALL',
    tags: ['password', 'login'],
    updatedAt,
    content: 'Use Forgot Password on the login screen.\n\nVerify OTP and set a new secure password.',
  },
  {
    id: 'seed-11',
    slug: 'otp-failure-reasons',
    title: 'Why your login OTP might fail',
    summary: 'Common OTP failures and quick retry guidance.',
    categoryKey: 'account-login',
    category: 'Account & Login',
    role: 'ALL',
    tags: ['otp', 'login'],
    updatedAt,
    content: 'OTP can fail due to expiry, wrong input, or network delays.\n\nRequest a fresh OTP and retry.',
  },
  {
    id: 'seed-12',
    slug: 'update-email-phone',
    title: 'Update email or phone on your account',
    summary: 'How to request secure account contact updates.',
    categoryKey: 'account-login',
    category: 'Account & Login',
    role: 'ALL',
    tags: ['account', 'security'],
    updatedAt,
    content: 'Go to account settings and submit an update request.\n\nSome changes may require re-verification.',
  },
  {
    id: 'seed-13',
    slug: 'high-conversion-profile',
    title: 'How to complete a high-conversion profile',
    summary: 'Role clarity, scope, portfolio proof, and pricing structure tips.',
    categoryKey: 'profile-verification',
    category: 'Profile & Verification',
    role: 'professional',
    tags: ['profile', 'conversion'],
    updatedAt,
    content: 'Add clear role scope, location, portfolio proof, and service details.\n\nClear profiles get better-fit responses.',
  },
  {
    id: 'seed-14',
    slug: 'verification-checklist-before-submit',
    title: 'Verification checklist before submission',
    summary: 'Use this checklist to reduce correction loops.',
    categoryKey: 'profile-verification',
    category: 'Profile & Verification',
    role: 'ALL',
    tags: ['verification', 'checklist'],
    updatedAt,
    content: 'Check identity fields, category fit, proof quality, and profile completeness before submission.',
  },
  {
    id: 'seed-15',
    slug: 'verification-timeline-24-48-hours',
    title: 'Expected verification timeline (24-48 hours)',
    summary: 'What is normal and what can delay review outcomes.',
    categoryKey: 'profile-verification',
    category: 'Profile & Verification',
    role: 'ALL',
    tags: ['verification', 'timeline'],
    updatedAt,
    content: 'Most profile reviews complete within 24-48 hours.\n\nComplex or incomplete submissions can take longer.',
  },
  {
    id: 'seed-16',
    slug: 'verification-sent-back-correction',
    title: 'Why verification was sent back for correction',
    summary: 'Top reasons for correction requests and how to fix quickly.',
    categoryKey: 'profile-verification',
    category: 'Profile & Verification',
    role: 'ALL',
    tags: ['verification', 'correction'],
    updatedAt,
    content: 'Corrections happen when data is missing, unclear, mismatched, or unsupported.\n\nUpdate details and resubmit.',
  },
  {
    id: 'seed-17',
    slug: 'companies-post-jobs-correctly',
    title: 'How companies can post jobs correctly',
    summary: 'Improve candidate quality with clear role details.',
    categoryKey: 'jobs-applications',
    category: 'Jobs & Applications',
    role: 'company',
    tags: ['jobs', 'company'],
    updatedAt,
    content: 'Use clear job titles, responsibilities, compensation, location, and timeline.\n\nGood clarity improves candidate relevance.',
  },
  {
    id: 'seed-18',
    slug: 'track-application-status',
    title: 'How job seekers can track application status',
    summary: 'Understand submitted, viewed, shortlisted, and closed states.',
    categoryKey: 'jobs-applications',
    category: 'Jobs & Applications',
    role: 'jobSeeker',
    tags: ['application', 'job seeker'],
    updatedAt,
    content: 'Check your applications panel for status changes.\n\nKeep your profile updated to support faster responses.',
  },
  {
    id: 'seed-19',
    slug: 'improve-application-quality',
    title: 'How to improve job application quality',
    summary: 'Simple ways to increase first-pass quality.',
    categoryKey: 'jobs-applications',
    category: 'Jobs & Applications',
    role: 'jobSeeker',
    tags: ['application', 'quality'],
    updatedAt,
    content: 'Tailor profile details to each role and add relevant work proof where possible.',
  },
  {
    id: 'seed-20',
    slug: 'handle-duplicate-irrelevant-leads',
    title: 'Handling duplicate or irrelevant leads',
    summary: 'Reduce noise with better targeting and filters.',
    categoryKey: 'leads-requests',
    category: 'Leads & Requests',
    role: 'professional',
    tags: ['leads', 'filters'],
    updatedAt,
    content: 'Use lead filters and quick decline flows for low-fit requests.\n\nImprove profile targeting to reduce irrelevant leads.',
  },
  {
    id: 'seed-21',
    slug: 'best-response-window-lead-conversion',
    title: 'Best response window for higher lead conversion',
    summary: 'Speed and clarity can improve first-contact outcomes.',
    categoryKey: 'leads-requests',
    category: 'Leads & Requests',
    role: 'professional',
    tags: ['conversion', 'response'],
    updatedAt,
    content: 'Respond early with clear scope and timeline.\n\nStructured replies usually perform better.',
  },
  {
    id: 'seed-22',
    slug: 'organize-customer-requests',
    title: 'How to organize incoming customer requests',
    summary: 'Prioritization methods for faster handling.',
    categoryKey: 'leads-requests',
    category: 'Leads & Requests',
    role: 'professional',
    tags: ['requests', 'workflow'],
    updatedAt,
    content: 'Tag requests by urgency, scope, and budget.\n\nPrioritize high-fit requests first.',
  },
  {
    id: 'seed-23',
    slug: 'what-are-tracecoins',
    title: 'What are TraceCoins and where they are used',
    summary: 'TraceCoins are platform credits used in selected flows.',
    categoryKey: 'tracecoins-billing',
    category: 'TraceCoins & Billing',
    role: 'ALL',
    tags: ['tracecoins', 'billing'],
    updatedAt,
    content: 'TraceCoins are credits for selected premium interactions and utilities inside the platform.',
  },
  {
    id: 'seed-24',
    slug: 'view-invoices-payment-history',
    title: 'How to view invoices and payment history',
    summary: 'Where to find transaction records and billing references.',
    categoryKey: 'tracecoins-billing',
    category: 'TraceCoins & Billing',
    role: 'ALL',
    tags: ['invoice', 'payments'],
    updatedAt,
    content: 'Open billing settings to view purchase records and invoice history.',
  },
  {
    id: 'seed-25',
    slug: 'refund-failed-payment-guidance',
    title: 'Refund and failed payment guidance',
    summary: 'What to do first when transactions fail or remain pending.',
    categoryKey: 'tracecoins-billing',
    category: 'TraceCoins & Billing',
    role: 'ALL',
    tags: ['refund', 'payment'],
    updatedAt,
    content: 'Check payment status first, then raise support with transaction reference if needed.',
  },
  {
    id: 'seed-26',
    slug: 'report-suspicious-activity',
    title: 'How to report suspicious activity',
    summary: 'Raise reports quickly and include useful evidence.',
    categoryKey: 'privacy-safety',
    category: 'Privacy & Safety',
    role: 'ALL',
    tags: ['safety', 'report'],
    updatedAt,
    content: 'Use report actions on profiles or listings and include evidence to help faster review.',
  },
  {
    id: 'seed-27',
    slug: 'manage-privacy-settings',
    title: 'Managing privacy settings for your account',
    summary: 'Control profile visibility and communication preferences.',
    categoryKey: 'privacy-safety',
    category: 'Privacy & Safety',
    role: 'ALL',
    tags: ['privacy', 'settings'],
    updatedAt,
    content: 'Adjust profile visibility and notification preferences from account settings.',
  },
  {
    id: 'seed-28',
    slug: 'account-safety-best-practices',
    title: 'Account safety best practices',
    summary: 'Simple security habits to protect your account.',
    categoryKey: 'privacy-safety',
    category: 'Privacy & Safety',
    role: 'ALL',
    tags: ['security', 'account'],
    updatedAt,
    content: 'Use strong passwords, rotate credentials, and never share OTP codes.',
  },
  {
    id: 'seed-29',
    slug: 'fix-profile-image-upload-issues',
    title: 'Fix profile image or upload issues',
    summary: 'Common upload fixes and file readiness checks.',
    categoryKey: 'troubleshooting',
    category: 'Troubleshooting',
    role: 'ALL',
    tags: ['upload', 'profile image'],
    updatedAt,
    content: 'Try supported formats, smaller file sizes, and stable network before retrying upload.',
  },
  {
    id: 'seed-30',
    slug: 'dashboard-data-not-refreshing',
    title: 'What to do if dashboard data does not refresh',
    summary: 'Quick checks for stale status or delayed updates.',
    categoryKey: 'troubleshooting',
    category: 'Troubleshooting',
    role: 'ALL',
    tags: ['dashboard', 'refresh'],
    updatedAt,
    content: 'Refresh session, confirm active role context, and retry.\n\nIf issue persists, contact support with exact status details.',
  },
];
