// __APP_VERSION__ is injected by Vite at build time from package.json.
// Do not hardcode a version string here — update package.json instead.
declare const __APP_VERSION__: string;

export const APP_VERSION = __APP_VERSION__;
export const APP_NAME    = 'BillTracker';

export interface ReleaseHighlight {
  icon: string;
  title: string;
  desc: string;
}

export interface ReleaseNotes {
  version: string;
  date: string;
  highlights: ReleaseHighlight[];
  image: { src: string; alt: string };
}

export const RELEASE_NOTES: ReleaseNotes = {
  version: APP_VERSION,
  date: '2026-05-31',
  highlights: [
    {
      icon: '🚀',
      title: 'v0.35.0',
      desc: 'Version bump and container rebuild.',
    },
    {
      icon: '🧠',
      title: 'Advisory non-bill transaction filters',
      desc: '5,000+ advisory patterns with 83 bill-like override terms. High-confidence unmatched transactions show "Probably not a bill" instead of "Create Bill". Medium confidence mutes the button. Lazy in-memory cache, seeded on first startup.',
    },
    {
      icon: '🔄',
      title: 'SimpleFIN transaction table fix',
      desc: 'Transaction table now uses fixed column sizing so long text can\'t push action buttons off-screen. Action buttons are compact icon-only with accessible labels.',
    },
    {
      icon: '🔄',
      title: 'SimpleFIN payment backfill',
      desc: 'Subscription bills with merchant rules now have a Sync Payments button in the edit modal. It scans unmatched SimpleFIN transactions and auto-creates payment records for missing history.',
    },
    {
      icon: '🛡️',
      title: 'Safer financial history',
      desc: 'Bill, category, and payment deletes now use confirmations, recovery windows, and undo actions so accidental clicks do not immediately destroy important records.',
    },
    {
      icon: '🔐',
      title: 'Security checks tightened',
      desc: 'Logout-all now uses the normal CSRF header, password length rules match the backend, and CSRF SPA documentation now matches the actual cookie/header flow.',
    },
    {
      icon: '🔑',
      title: 'Private login details',
      desc: 'Your Profile now shows recent login date, IP, browser, OS, device type, and a short device ID. These details are shown only to you in the app UI.',
    },
  ],
  image: {
    src: '/img/doingmypart.jpg',
    alt: 'Doing my part',
  },
};
