import type { Experience } from '@lib/schema';

/*
  Experience timeline, newest first. Facts from CANONICAL_CONTENT.md.
  The council role is featured with apprentice→developer progression; side roles
  are compact and marked `alongside` (they overlapped the council job).
*/
export const experience: Experience = {
  items: [
    {
      id: 'norway-now',
      employer: 'Tønsberg, Norway',
      location: 'Tønsberg',
      period: { from: 2023, to: null },
      emphasis: 'compact',
      alongside: false,
      role: {
        en: 'Self-directed development & Norskkurs',
        no: 'Egen produktutvikling og norskkurs',
      },
    },
    {
      id: 'warwickshire',
      employer: 'Warwickshire County Council, UK',
      location: 'UK',
      period: { from: 2015, to: 2023 },
      emphasis: 'featured',
      alongside: false,
      progression: [
        { from: 2015, to: 2017, label: { en: 'Apprentice', no: 'Lærling' } },
        { from: 2017, to: 2023, label: { en: 'System Developer', no: 'Systemutvikler' } },
      ],
      role: { en: 'System Developer', no: 'Systemutvikler' },
      summary: {
        en: 'Public-sector systems — from apprentice to full developer over eight years.',
        no: 'Fagsystemer i offentlig sektor — fra lærling til utvikler over åtte år.',
      },
      highlights: {
        en: [
          'Worked on the county-wide highways and streetlight fault-reporting system used across Warwickshire.',
          'Built and maintained full-stack applications in C#, Python, Ruby on Rails, SQL and JavaScript.',
          'Delivered reliable, well-tested software and resolved stability issues on live systems.',
          'Owned deployments and production troubleshooting; guided colleagues on code and process.',
        ],
        no: [
          'Jobbet på det fylkesdekkende systemet for feilmelding av veilys og veier, brukt i hele Warwickshire.',
          'Bygde og vedlikeholdt fullstack-applikasjoner i C#, Python, Ruby on Rails, SQL og JavaScript.',
          'Leverte pålitelig, godt testet programvare og løste stabilitetsproblemer i produksjon.',
          'Hadde ansvar for utrulling og feilsøking i drift, og veiledet kollegaer på kode og prosess.',
        ],
      },
    },
    {
      id: 'royal-vapes',
      employer: 'Royal Vapes, UK',
      location: 'UK',
      period: { from: 2017, to: 2021 },
      emphasis: 'compact',
      alongside: true,
      role: { en: 'Sales Representative', no: 'Salgsrepresentant' },
    },
    {
      id: 'hodcarrier',
      employer: 'The Hodcarrier, UK',
      location: 'UK',
      period: { from: 2016, to: 2018 },
      emphasis: 'compact',
      alongside: true,
      role: { en: 'Bartender', no: 'Bartender' },
    },
    {
      id: 'nuffield',
      employer: 'Nuffield Health, UK',
      location: 'UK',
      period: { from: 2014, to: 2015 },
      emphasis: 'compact',
      alongside: false,
      role: { en: 'Receptionist', no: 'Resepsjonist' },
    },
    {
      id: 'education',
      employer: 'Warwickshire College, UK',
      location: 'UK',
      period: { from: 2012, to: 2015 },
      emphasis: 'compact',
      alongside: false,
      role: {
        en: 'Extended Diploma — NVQ Level 3 in ICT',
        no: 'Extended Diploma — NVQ nivå 3 i IKT',
      },
    },
  ],
};
