Просмотр исходного кода

Open the demo customer portal with one button, and use dummy workshop data in the seed

Bernt Christian Egeland 1 неделя назад
Родитель
Сommit
2be97efbd8

+ 3 - 1
messages/de/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Diese Werkstatt bietet derzeit keinen Online-Zugang an.",
     "noPassword": "Kein Passwort nötig. Wir senden Ihnen einen Link, mit dem Sie angemeldet werden.",
     "noPasswordSms": "Kein Passwort nötig. Wir schicken Ihnen per SMS einen Code, mit dem Sie angemeldet werden.",
-    "method": "Wie möchten Sie sich anmelden?"
+    "method": "Wie möchten Sie sich anmelden?",
+    "demoNotice": "Die Demo versendet keine E-Mails oder SMS, es kommt also kein Anmeldelink. Sehen Sie sich als {customer} um, ein Beispielkunde.",
+    "demoButton": "Demo-Portal öffnen"
   },
   "nav": {
     "label": "Hauptmenü",

+ 3 - 1
messages/en/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "This workshop does not offer online access right now.",
     "noPassword": "No password. We send you a link that signs you in.",
     "noPasswordSms": "No password. We text you a code that signs you in.",
-    "method": "How to sign in"
+    "method": "How to sign in",
+    "demoNotice": "The demo sends no email or texts, so there is no sign-in link to wait for. Look around as {customer}, a sample customer.",
+    "demoButton": "Open the demo portal"
   },
   "nav": {
     "label": "Main",

+ 3 - 1
messages/es/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Este taller no ofrece acceso en línea por ahora.",
     "noPassword": "Sin contraseña. Te enviamos un enlace que inicia tu sesión.",
     "noPasswordSms": "Sin contraseña. Te enviamos por SMS un código que inicia tu sesión.",
-    "method": "Cómo quieres entrar"
+    "method": "Cómo quieres entrar",
+    "demoNotice": "La demo no envía correos ni SMS, así que no llegará ningún enlace de acceso. Explore el portal como {customer}, un cliente de ejemplo.",
+    "demoButton": "Abrir el portal de demostración"
   },
   "nav": {
     "label": "Principal",

+ 3 - 1
messages/fr/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Cet atelier ne propose pas d'accès en ligne pour le moment.",
     "noPassword": "Pas de mot de passe. Nous vous envoyons un lien qui vous connecte.",
     "noPasswordSms": "Pas de mot de passe. Nous vous envoyons par SMS un code qui vous connecte.",
-    "method": "Comment vous connecter"
+    "method": "Comment vous connecter",
+    "demoNotice": "La démo n'envoie ni e-mail ni SMS, aucun lien de connexion ne sera donc envoyé. Découvrez le portail en tant que {customer}, un client d'exemple.",
+    "demoButton": "Ouvrir le portail de démonstration"
   },
   "nav": {
     "label": "Principal",

+ 3 - 1
messages/it/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Al momento questa officina non offre l'accesso online.",
     "noPassword": "Nessuna password. Ti inviamo un link per accedere.",
     "noPasswordSms": "Nessuna password. Ti inviamo un codice via SMS per accedere.",
-    "method": "Come vuoi accedere"
+    "method": "Come vuoi accedere",
+    "demoNotice": "La demo non invia email né SMS, quindi non arriverà alcun link di accesso. Esplora il portale come {customer}, un cliente di esempio.",
+    "demoButton": "Apri il portale demo"
   },
   "nav": {
     "label": "Principale",

+ 3 - 1
messages/lt/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Šios dirbtuvės šiuo metu nesiūlo prieigos internetu.",
     "noPassword": "Be slaptažodžio. Atsiųsime nuorodą, kuri jus prijungs.",
     "noPasswordSms": "Be slaptažodžio. SMS žinute atsiųsime kodą, kuris jus prijungs.",
-    "method": "Kaip prisijungti"
+    "method": "Kaip prisijungti",
+    "demoNotice": "Demonstracinė versija nesiunčia el. laiškų ir SMS, todėl prisijungimo nuorodos nebus. Apsižvalgykite kaip {customer}, pavyzdinis klientas.",
+    "demoButton": "Atidaryti demonstracinį portalą"
   },
   "nav": {
     "label": "Pagrindinis meniu",

+ 3 - 1
messages/nb/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Dette verkstedet tilbyr ikke innlogging på nett akkurat nå.",
     "noPassword": "Ingen passord. Vi sender deg en lenke som logger deg inn.",
     "noPasswordSms": "Ingen passord. Vi sender deg en kode på SMS som logger deg inn.",
-    "method": "Slik logger du inn"
+    "method": "Slik logger du inn",
+    "demoNotice": "Demoen sender ikke e-post eller SMS, så det kommer ingen påloggingslenke. Se deg rundt som {customer}, en eksempelkunde.",
+    "demoButton": "Åpne demoportalen"
   },
   "nav": {
     "label": "Hovedmeny",

+ 3 - 1
messages/nl/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Deze werkplaats biedt op dit moment geen online toegang.",
     "noPassword": "Geen wachtwoord. We sturen u een link waarmee u inlogt.",
     "noPasswordSms": "Geen wachtwoord. We sturen u een sms met een code waarmee u inlogt.",
-    "method": "Hoe wilt u inloggen?"
+    "method": "Hoe wilt u inloggen?",
+    "demoNotice": "De demo verstuurt geen e-mails of sms, dus er komt geen inloglink. Kijk rond als {customer}, een voorbeeldklant.",
+    "demoButton": "Demoportaal openen"
   },
   "nav": {
     "label": "Hoofdmenu",

+ 3 - 1
messages/pl/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Ten warsztat nie oferuje teraz dostępu online.",
     "noPassword": "Bez hasła. Wyślemy Ci link, który Cię zaloguje.",
     "noPasswordSms": "Bez hasła. Wyślemy Ci SMS-em kod, który Cię zaloguje.",
-    "method": "Jak się zalogować"
+    "method": "Jak się zalogować",
+    "demoNotice": "Wersja demo nie wysyła e-maili ani SMS-ów, więc link do logowania nie przyjdzie. Rozejrzyj się jako {customer}, przykładowy klient.",
+    "demoButton": "Otwórz portal demo"
   },
   "nav": {
     "label": "Główna nawigacja",

+ 3 - 1
messages/pt-BR/portal.json

@@ -67,7 +67,9 @@
       "used": "Esse link de acesso já foi usado. Peça um novo abaixo.",
       "expired": "Esse link de acesso expirou. Peça um novo abaixo.",
       "noAccount": "Não encontramos sua conta. Peça à oficina para conferir o e-mail que ela tem cadastrado para você."
-    }
+    },
+    "demoNotice": "A demonstração não envia e-mails nem SMS, então nenhum link de acesso será enviado. Explore o portal como {customer}, um cliente de exemplo.",
+    "demoButton": "Abrir o portal de demonstração"
   },
   "nav": {
     "invoices": "Faturas",

+ 3 - 1
messages/pt-PT/portal.json

@@ -67,7 +67,9 @@
       "used": "Este link de acesso já foi utilizado. Peça um novo abaixo.",
       "expired": "Este link de acesso expirou. Peça um novo abaixo.",
       "noAccount": "Não encontrámos a sua conta. Peça à oficina que confirme o e-mail que tem registado para si."
-    }
+    },
+    "demoNotice": "A demonstração não envia e-mails nem SMS, pelo que não será enviada nenhuma ligação de acesso. Explore o portal como {customer}, um cliente de exemplo.",
+    "demoButton": "Abrir o portal de demonstração"
   },
   "nav": {
     "invoices": "Faturas",

+ 3 - 1
messages/ru/portal.json

@@ -67,7 +67,9 @@
     "portalNotEnabled": "Эта мастерская сейчас не предоставляет доступ онлайн.",
     "noPassword": "Без пароля. Мы пришлём ссылку, по которой вы войдёте.",
     "noPasswordSms": "Без пароля. Мы пришлём по СМС код, по которому вы войдёте.",
-    "method": "Как войти"
+    "method": "Как войти",
+    "demoNotice": "Демоверсия не отправляет письма и SMS, поэтому ссылка для входа не придёт. Осмотритесь от имени {customer}, это клиент для примера.",
+    "demoButton": "Открыть демопортал"
   },
   "nav": {
     "label": "Главное меню",

+ 3 - 1
messages/tr/portal.json

@@ -67,7 +67,9 @@
       "used": "Bu giriş bağlantısı zaten kullanıldı. Aşağıdan yenisini isteyin.",
       "expired": "Bu giriş bağlantısının süresi doldu. Aşağıdan yenisini isteyin.",
       "noAccount": "Hesabınızı bulamadık. Servisten sizin için kayıtlı e-posta adresini kontrol etmesini isteyin."
-    }
+    },
+    "demoNotice": "Demo e-posta veya SMS göndermez, bu yüzden giriş bağlantısı gelmez. Portalı örnek müşteri {customer} olarak gezin.",
+    "demoButton": "Demo portalını aç"
   },
   "nav": {
     "invoices": "Faturalar",

+ 94 - 94
prisma/seed_dummy_data.ts

@@ -1069,7 +1069,7 @@ async function seed() {
   const settings: Record<string, string> = {
     "workshop.address": "1450 Foundry Road, Denver, CO 80216",
     "workshop.phone": "+1 (555) 555-0100",
-    "workshop.email": "service@egelandauto.example.com",
+    "workshop.email": "service@joesauto.example.com",
     "workshop.serviceType": "automotive",
     "workshop.unitSystem": "imperial",
     "workshop.defaultLaborRate": "110",
@@ -1094,7 +1094,7 @@ async function seed() {
     "invoice.bankAccount": "Front Range Bank · 1120 4455 8890",
     "invoice.showOrgNumber": "true",
     "invoice.showBankAccount": "true",
-    "email.fromName": "Egeland Auto",
+    "email.fromName": "Joe's Auto",
     // Settings -> Warranty (SETTING_KEYS.WARRANTY_* in settingsSchema.ts):
     // every new quote and work order starts with this statement. The seeded
     // invoices below carry the same terms, so old and new documents agree.
@@ -1147,7 +1147,7 @@ async function seed() {
     // conversations were only half visible.
     "telegram.enabled": "true",
     "telegram.botToken": "0000000000:DEMO-not-a-real-bot-token",
-    "telegram.botUsername": "EgelandAutoDemoBot",
+    "telegram.botUsername": "JoesAutoDemoBot",
     // WhatsApp reaches a workshop through whichever provider will sell it a
     // number, so credentials are namespaced per adapter rather than by field.
     // Meta is the one most visitors will recognise.
@@ -1312,7 +1312,7 @@ async function seed() {
     /* 19 */ prisma.customer.create({ data: { customerNumber: "1020", name: "Lisa Martinez", email: "lisa.martinez@example.com", phone: "+1 (555) 555-0120", address: "425 Ranch Road, San Antonio, TX 78201", notes: "Chevy Silverado and Toyota Tacoma. Ranch use.", userId: USER_ID, organizationId: ORG_ID } }),
     // The one address on a domain we own, for checking a send end to end
     // without it ever leaving Torqvoice. Everyone else sits on example.com.
-    /* 20 */ prisma.customer.create({ data: { customerNumber: "1021", name: "Jennifer Hayes", email: "jennifer@torqvoice.com", phone: "+1 (555) 555-0121", address: "88 Copper Lane, Boulder, CO 80301", notes: "Test account for message delivery checks.", userId: USER_ID, organizationId: ORG_ID } }),
+    /* 20 */ prisma.customer.create({ data: { customerNumber: "1021", name: "Jennifer Hayes", email: "jennifer.hayes@example.com", phone: "+1 (555) 555-0121", address: "88 Copper Lane, Boulder, CO 80301", notes: "New customer. No vehicles on file yet.", userId: USER_ID, organizationId: ORG_ID } }),
   ]);
   console.log(`  Created ${customers.length} customers`);
 
@@ -1413,95 +1413,95 @@ async function seed() {
   // -- Service Records (20) --
   console.log("\nCreating service records...");
   const svcData = [
-    { vehicleId: vehicles[0].id, title: "Oil Change & Tire Rotation", description: "Regular 10,000 mi service. Synthetic 0W-20 oil. Rotated tires front to back.", type: "maintenance", status: "completed", serviceDate: days(-114), mileage: 15000, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[0].id, title: "Oil Change & Tire Rotation", description: "Regular 10,000 mi service. Synthetic 0W-20 oil. Rotated tires front to back.", type: "maintenance", status: "completed", serviceDate: days(-114), mileage: 15000, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Synthetic Oil 0W-20 (5qt)", partNumber: "TOY-0W20-5Q", quantity: 1, unitPrice: 42, total: 42 }, { name: "Oil Filter", partNumber: "TOY-OF-2023", quantity: 1, unitPrice: 12, total: 12 }],
       laborItems: [{ description: "Oil change and filter replacement", hours: 0.5, rate: 95, total: 47.50 }, { description: "Tire rotation and pressure check", hours: 0.3, rate: 95, total: 28.50 }],
       subtotal: 130, taxRate: 8, taxAmount: 10.40, totalAmount: 140.40 },
-    { vehicleId: vehicles[4].id, title: "50,000 Mile Major Service", description: "Major service interval. Replaced brake pads, rotors, spark plugs. Full inspection.", type: "maintenance", status: "completed", serviceDate: days(-140), mileage: 50000, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[4].id, title: "50,000 Mile Major Service", description: "Major service interval. Replaced brake pads, rotors, spark plugs. Full inspection.", type: "maintenance", status: "completed", serviceDate: days(-140), mileage: 50000, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Front Brake Pad Set", partNumber: "BMW-BP-F34", quantity: 1, unitPrice: 185, total: 185 }, { name: "Front Brake Rotors (pair)", partNumber: "BMW-BR-F34", quantity: 1, unitPrice: 320, total: 320 }, { name: "Spark Plugs (set of 4)", partNumber: "BMW-SP-N20", quantity: 1, unitPrice: 68, total: 68 }, { name: "Engine Oil 5W-30 (7qt)", partNumber: "BMW-5W30-7Q", quantity: 1, unitPrice: 89, total: 89 }],
       laborItems: [{ description: "Front brake pad and rotor replacement", hours: 2.0, rate: 110, total: 220 }, { description: "Spark plug replacement", hours: 1.0, rate: 110, total: 110 }, { description: "Oil change and multi-point inspection", hours: 1.0, rate: 110, total: 110 }],
       subtotal: 1102, taxRate: 8, taxAmount: 88.16, totalAmount: 1190.16 },
-    { vehicleId: vehicles[6].id, title: "Tire Replacement - All Four", description: "Replaced all four tires. Michelin Pilot Sport 4S. Alignment check passed.", type: "repair", status: "completed", serviceDate: days(-60), mileage: 7800, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[6].id, title: "Tire Replacement - All Four", description: "Replaced all four tires. Michelin Pilot Sport 4S. Alignment check passed.", type: "repair", status: "completed", serviceDate: days(-60), mileage: 7800, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Michelin Pilot Sport 4S 235/40R19", partNumber: "MICH-PS4S-2354019", quantity: 4, unitPrice: 310, total: 1240 }],
       laborItems: [{ description: "Mount and balance 4 tires", hours: 1.5, rate: 95, total: 142.50 }, { description: "Wheel alignment check", hours: 0.5, rate: 95, total: 47.50 }],
       subtotal: 1430, taxRate: 8, taxAmount: 114.40, totalAmount: 1544.40 },
-    { vehicleId: vehicles[13].id, title: "Porsche 911 - Annual Service", description: "Annual service. Oil change, brake fluid flush, cabin filter. Full inspection.", type: "maintenance", status: "completed", serviceDate: days(-53), mileage: 12500, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[13].id, title: "Porsche 911 - Annual Service", description: "Annual service. Oil change, brake fluid flush, cabin filter. Full inspection.", type: "maintenance", status: "completed", serviceDate: days(-53), mileage: 12500, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Porsche Approved Oil 0W-40 (9qt)", partNumber: "POR-0W40-9Q", quantity: 1, unitPrice: 165, total: 165 }, { name: "Oil Filter", partNumber: "POR-OF-992", quantity: 1, unitPrice: 28, total: 28 }, { name: "Brake Fluid DOT4 (1L)", partNumber: "POR-BF-DOT4", quantity: 2, unitPrice: 35, total: 70 }],
       laborItems: [{ description: "Oil and filter change", hours: 1.0, rate: 145, total: 145 }, { description: "Brake fluid flush all 4 corners", hours: 1.5, rate: 145, total: 217.50 }, { description: "Multi-point inspection", hours: 1.0, rate: 145, total: 145 }],
       subtotal: 770.50, taxRate: 8, taxAmount: 61.64, totalAmount: 832.14 },
-    { vehicleId: vehicles[17].id, title: "150K Mile Engine Service - Kenworth", description: "Major engine service. Replaced fuel filters, air filters, coolant flush. DPF regen.", type: "maintenance", status: "completed", serviceDate: days(-94), mileage: 180000, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[17].id, title: "150K Mile Engine Service - Kenworth", description: "Major engine service. Replaced fuel filters, air filters, coolant flush. DPF regen.", type: "maintenance", status: "completed", serviceDate: days(-94), mileage: 180000, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "PACCAR MX-13 Fuel Filter Kit", partNumber: "PAC-FF-MX13", quantity: 1, unitPrice: 125, total: 125 }, { name: "Air Filter Element", partNumber: "PAC-AF-MX13", quantity: 1, unitPrice: 85, total: 85 }, { name: "Coolant (5gal)", partNumber: "PAC-COOL-5G", quantity: 2, unitPrice: 65, total: 130 }, { name: "Engine Oil 15W-40 (10gal)", partNumber: "PAC-15W40-10G", quantity: 1, unitPrice: 280, total: 280 }],
       laborItems: [{ description: "Engine oil and filter change", hours: 2.0, rate: 125, total: 250 }, { description: "Fuel filter replacement", hours: 1.0, rate: 125, total: 125 }, { description: "Coolant flush and refill", hours: 1.5, rate: 125, total: 187.50 }, { description: "DPF regeneration and diagnostic", hours: 1.5, rate: 125, total: 187.50 }],
       subtotal: 1370, taxRate: 8, taxAmount: 109.60, totalAmount: 1479.60 },
-    { vehicleId: vehicles[18].id, title: "Volvo FH 640 - DOT Inspection", description: "Full annual inspection per DOT regulations. Brake test, emissions, lights, safety.", type: "inspection", status: "in-progress", serviceDate: days(-19), mileage: 92000, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[18].id, title: "Volvo FH 640 - DOT Inspection", description: "Full annual inspection per DOT regulations. Brake test, emissions, lights, safety.", type: "inspection", status: "in-progress", serviceDate: days(-19), mileage: 92000, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "Marker Light Bulbs (pack of 10)", partNumber: "VOL-MLB-10", quantity: 1, unitPrice: 35, total: 35 }, { name: "Wiper Blades (pair)", partNumber: "VOL-WB-FH", quantity: 1, unitPrice: 52, total: 52 }],
       laborItems: [{ description: "Full DOT inspection and documentation", hours: 4.0, rate: 125, total: 500 }, { description: "Minor repairs and adjustments", hours: 2.0, rate: 125, total: 250 }],
       subtotal: 837, taxRate: 8, taxAmount: 66.96, totalAmount: 903.96 },
-    { vehicleId: vehicles[22].id, title: "John Deere 6R 250 - 500hr Service", description: "Scheduled 500-hour service. Engine oil, all filters, hydraulic fluid sample, PTO check.", type: "maintenance", status: "completed", serviceDate: days(-48), mileage: 2500, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[22].id, title: "John Deere 6R 250 - 500hr Service", description: "Scheduled 500-hour service. Engine oil, all filters, hydraulic fluid sample, PTO check.", type: "maintenance", status: "completed", serviceDate: days(-48), mileage: 2500, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "Engine Oil 15W-40 (5gal)", partNumber: "JD-15W40-5G", quantity: 1, unitPrice: 185, total: 185 }, { name: "Oil Filter", partNumber: "JD-OF-6R", quantity: 1, unitPrice: 32, total: 32 }, { name: "Fuel Filter Kit", partNumber: "JD-FFK-6R", quantity: 1, unitPrice: 68, total: 68 }, { name: "Hydraulic Filter", partNumber: "JD-HF-6R", quantity: 1, unitPrice: 55, total: 55 }, { name: "Air Filter Inner+Outer", partNumber: "JD-AF-6R", quantity: 1, unitPrice: 78, total: 78 }],
       laborItems: [{ description: "Engine oil and all filter replacement", hours: 2.0, rate: 140, total: 280 }, { description: "Hydraulic fluid sampling and analysis", hours: 0.5, rate: 140, total: 70 }, { description: "PTO and 3-point hitch inspection", hours: 1.0, rate: 140, total: 140 }, { description: "Grease all fittings (32 points)", hours: 1.5, rate: 140, total: 210 }],
       subtotal: 1118, taxRate: 8, taxAmount: 89.44, totalAmount: 1207.44 },
-    { vehicleId: vehicles[23].id, title: "Fendt 942 - CVT Transmission Service", description: "CVT transmission fluid and filter change. Vario calibration and function test.", type: "maintenance", status: "completed", serviceDate: days(-119), mileage: 1100, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[23].id, title: "Fendt 942 - CVT Transmission Service", description: "CVT transmission fluid and filter change. Vario calibration and function test.", type: "maintenance", status: "completed", serviceDate: days(-119), mileage: 1100, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Vario CVT Fluid (10gal)", partNumber: "FENDT-CVT-10G", quantity: 1, unitPrice: 420, total: 420 }, { name: "CVT Filter Kit", partNumber: "FENDT-CVTF-942", quantity: 1, unitPrice: 165, total: 165 }],
       laborItems: [{ description: "CVT transmission fluid drain and refill", hours: 3.0, rate: 150, total: 450 }, { description: "CVT filter replacement", hours: 1.5, rate: 150, total: 225 }, { description: "Vario transmission calibration", hours: 2.0, rate: 150, total: 300 }],
       subtotal: 1560, taxRate: 8, taxAmount: 124.80, totalAmount: 1684.80 },
-    { vehicleId: vehicles[29].id, title: "CAT D6 - Hydraulic System Overhaul", description: "Complete hydraulic system service. Replaced main pump seals, flushed system, new filters.", type: "repair", status: "completed", serviceDate: days(-172), mileage: 4000, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[29].id, title: "CAT D6 - Hydraulic System Overhaul", description: "Complete hydraulic system service. Replaced main pump seals, flushed system, new filters.", type: "repair", status: "completed", serviceDate: days(-172), mileage: 4000, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "Hydraulic Pump Seal Kit", partNumber: "CAT-HPS-D6", quantity: 1, unitPrice: 450, total: 450 }, { name: "Hydraulic Oil (55gal drum)", partNumber: "CAT-HO-55G", quantity: 1, unitPrice: 850, total: 850 }, { name: "Hydraulic Filter Set", partNumber: "CAT-HF-D6", quantity: 2, unitPrice: 120, total: 240 }],
       laborItems: [{ description: "Hydraulic pump disassembly and seal replacement", hours: 6.0, rate: 140, total: 840 }, { description: "System flush and refill", hours: 3.0, rate: 140, total: 420 }, { description: "Pressure testing and calibration", hours: 2.0, rate: 140, total: 280 }],
       subtotal: 3080, taxRate: 8, taxAmount: 246.40, totalAmount: 3326.40 },
-    { vehicleId: vehicles[31].id, title: "Komatsu PC210 - Track Chain Replacement", description: "Replaced both track chains and sprockets. Undercarriage inspection completed.", type: "repair", status: "completed", serviceDate: days(-46), mileage: 3000, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[31].id, title: "Komatsu PC210 - Track Chain Replacement", description: "Replaced both track chains and sprockets. Undercarriage inspection completed.", type: "repair", status: "completed", serviceDate: days(-46), mileage: 3000, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Track Chain Assembly (left)", partNumber: "KOM-TC-PC210L", quantity: 1, unitPrice: 2800, total: 2800 }, { name: "Track Chain Assembly (right)", partNumber: "KOM-TC-PC210R", quantity: 1, unitPrice: 2800, total: 2800 }, { name: "Track Sprocket (pair)", partNumber: "KOM-TS-PC210", quantity: 1, unitPrice: 1200, total: 1200 }],
       laborItems: [{ description: "Track chain removal and installation (both sides)", hours: 8.0, rate: 140, total: 1120 }, { description: "Sprocket replacement", hours: 3.0, rate: 140, total: 420 }, { description: "Undercarriage inspection", hours: 2.0, rate: 140, total: 280 }],
       subtotal: 8620, taxRate: 8, taxAmount: 689.60, totalAmount: 9309.60 },
-    { vehicleId: vehicles[33].id, title: "Volvo EC220E - 1000hr Full Service", description: "All fluids, filters, track tension, swing bearing inspection.", type: "maintenance", status: "in-progress", serviceDate: days(-12), mileage: 1500, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[33].id, title: "Volvo EC220E - 1000hr Full Service", description: "All fluids, filters, track tension, swing bearing inspection.", type: "maintenance", status: "in-progress", serviceDate: days(-12), mileage: 1500, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Engine Oil 15W-40 (5gal)", partNumber: "VOL-15W40-5G", quantity: 1, unitPrice: 185, total: 185 }, { name: "Hydraulic Filter Set", partNumber: "VOL-HFS-EC220", quantity: 1, unitPrice: 120, total: 120 }, { name: "Fuel Filter Kit", partNumber: "VOL-FFK-EC220", quantity: 1, unitPrice: 58, total: 58 }],
       laborItems: [{ description: "Engine oil and all filter replacement", hours: 2.5, rate: 140, total: 350 }, { description: "Track tension adjustment", hours: 1.0, rate: 140, total: 140 }, { description: "Full grease service (48 points)", hours: 2.0, rate: 140, total: 280 }],
       subtotal: 1133, taxRate: 8, taxAmount: 90.64, totalAmount: 1223.64 },
-    { vehicleId: vehicles[11].id, title: "Jeep Wrangler - Lift Kit Install", description: "2.5\" suspension lift, new shocks, extended brake lines. Alignment after.", type: "repair", status: "completed", serviceDate: days(-27), mileage: 28000, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[11].id, title: "Jeep Wrangler - Lift Kit Install", description: "2.5\" suspension lift, new shocks, extended brake lines. Alignment after.", type: "repair", status: "completed", serviceDate: days(-27), mileage: 28000, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Mopar 2.5\" Lift Kit", partNumber: "JEEP-LK-25", quantity: 1, unitPrice: 1200, total: 1200 }, { name: "Bilstein 5100 Shocks (set of 4)", partNumber: "BIL-5100-JL4", quantity: 1, unitPrice: 680, total: 680 }, { name: "Extended Brake Lines", partNumber: "JEEP-EBL-JL", quantity: 1, unitPrice: 120, total: 120 }],
       laborItems: [{ description: "Suspension lift installation", hours: 6.0, rate: 110, total: 660 }, { description: "Brake line routing and bleed", hours: 1.0, rate: 110, total: 110 }, { description: "4-wheel alignment", hours: 1.5, rate: 110, total: 165 }],
       subtotal: 2935, taxRate: 8, taxAmount: 234.80, totalAmount: 3169.80 },
-    { vehicleId: vehicles[9].id, title: "Sprinter - Turbocharger Replacement", description: "Turbo shaft play detected. Black smoke under boost. Replaced turbo assembly.", type: "repair", status: "in-progress", serviceDate: days(-18), mileage: 35400, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[9].id, title: "Sprinter - Turbocharger Replacement", description: "Turbo shaft play detected. Black smoke under boost. Replaced turbo assembly.", type: "repair", status: "in-progress", serviceDate: days(-18), mileage: 35400, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Turbocharger Assembly - OM651", partNumber: "MB-TURBO-OM651", quantity: 1, unitPrice: 1280, total: 1280 }, { name: "Turbo Oil Feed Line", partNumber: "MB-TOFL-OM651", quantity: 1, unitPrice: 68, total: 68 }, { name: "Turbo Gasket Kit", partNumber: "MB-TGK-OM651", quantity: 1, unitPrice: 42, total: 42 }],
       laborItems: [{ description: "Turbocharger removal", hours: 3.0, rate: 125, total: 375 }, { description: "New turbo installation and oil line", hours: 2.5, rate: 125, total: 312.50 }],
       subtotal: 2077.50, taxRate: 8, taxAmount: 166.20, totalAmount: 2243.70 },
-    { vehicleId: vehicles[24].id, title: "Massey Ferguson 8S - Hydraulic Pump", description: "Low hydraulic pressure. Replaced main pump and flushed system.", type: "repair", status: "completed", serviceDate: days(-32), mileage: 3500, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[24].id, title: "Massey Ferguson 8S - Hydraulic Pump", description: "Low hydraulic pressure. Replaced main pump and flushed system.", type: "repair", status: "completed", serviceDate: days(-32), mileage: 3500, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "Main Hydraulic Pump Assembly", partNumber: "MF-HPA-8S", quantity: 1, unitPrice: 1650, total: 1650 }, { name: "Hydraulic Oil (15gal)", partNumber: "HYD-ISO46-15G", quantity: 1, unitPrice: 280, total: 280 }, { name: "Hydraulic Filter Set", partNumber: "MF-HFS-8S", quantity: 1, unitPrice: 95, total: 95 }],
       laborItems: [{ description: "Hydraulic pump removal", hours: 4.0, rate: 140, total: 560 }, { description: "New pump installation", hours: 3.0, rate: 140, total: 420 }, { description: "System flush and pressure test", hours: 2.0, rate: 140, total: 280 }],
       subtotal: 3285, taxRate: 8, taxAmount: 262.80, totalAmount: 3547.80 },
-    { vehicleId: vehicles[15].id, title: "Ram 1500 - Brake Service", description: "Front and rear brake pad replacement. Rotor resurface. Fluid flush.", type: "maintenance", status: "completed", serviceDate: days(-40), mileage: 19500, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[15].id, title: "Ram 1500 - Brake Service", description: "Front and rear brake pad replacement. Rotor resurface. Fluid flush.", type: "maintenance", status: "completed", serviceDate: days(-40), mileage: 19500, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Front Brake Pad Set", partNumber: "RAM-BP-F-DS", quantity: 1, unitPrice: 145, total: 145 }, { name: "Rear Brake Pad Set", partNumber: "RAM-BP-R-DS", quantity: 1, unitPrice: 125, total: 125 }, { name: "Brake Fluid DOT4 (1L)", partNumber: "BF-DOT4-1L", quantity: 2, unitPrice: 18, total: 36 }],
       laborItems: [{ description: "Front brake pad replacement", hours: 1.5, rate: 110, total: 165 }, { description: "Rear brake pad replacement", hours: 1.0, rate: 110, total: 110 }, { description: "Rotor resurface (all 4)", hours: 1.0, rate: 110, total: 110 }, { description: "Brake fluid flush", hours: 0.5, rate: 110, total: 55 }],
       subtotal: 746, taxRate: 8, taxAmount: 59.68, totalAmount: 805.68 },
-    { vehicleId: vehicles[14].id, title: "VW Golf GTI - DSG Service + Oil", description: "DSG transmission fluid/filter. Engine oil change. Cabin filter.", type: "maintenance", status: "completed", serviceDate: days(-79), mileage: 38000, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[14].id, title: "VW Golf GTI - DSG Service + Oil", description: "DSG transmission fluid/filter. Engine oil change. Cabin filter.", type: "maintenance", status: "completed", serviceDate: days(-79), mileage: 38000, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "DSG Fluid (7qt)", partNumber: "VW-DSG-7Q", quantity: 1, unitPrice: 145, total: 145 }, { name: "DSG Filter", partNumber: "VW-DSGF", quantity: 1, unitPrice: 52, total: 52 }, { name: "Engine Oil 5W-40 (5qt)", partNumber: "VW-5W40-5Q", quantity: 1, unitPrice: 58, total: 58 }],
       laborItems: [{ description: "DSG fluid and filter change", hours: 1.5, rate: 110, total: 165 }, { description: "Engine oil and filter change", hours: 0.5, rate: 110, total: 55 }],
       subtotal: 475, taxRate: 8, taxAmount: 38, totalAmount: 513 },
-    { vehicleId: vehicles[19].id, title: "Mack Granite - PTO Pump Replacement", description: "PTO pump failed. No hydraulic pressure for dump body. Replaced and tested.", type: "repair", status: "completed", serviceDate: days(-71), mileage: 154000, techName: "Marcus Reed", shopName: "Egeland Auto",
+    { vehicleId: vehicles[19].id, title: "Mack Granite - PTO Pump Replacement", description: "PTO pump failed. No hydraulic pressure for dump body. Replaced and tested.", type: "repair", status: "completed", serviceDate: days(-71), mileage: 154000, techName: "Marcus Reed", shopName: "Joe's Auto",
       partItems: [{ name: "PTO Hydraulic Pump", partNumber: "MACK-PTO-GR64", quantity: 1, unitPrice: 1450, total: 1450 }, { name: "PTO Mounting Gasket Kit", partNumber: "MACK-PTO-GK", quantity: 1, unitPrice: 85, total: 85 }, { name: "Hydraulic Oil (10gal)", partNumber: "HYD-ISO46-10G", quantity: 1, unitPrice: 180, total: 180 }],
       laborItems: [{ description: "PTO pump removal", hours: 3.0, rate: 140, total: 420 }, { description: "New pump installation", hours: 2.5, rate: 140, total: 350 }, { description: "System prime and dump cycle test", hours: 1.5, rate: 140, total: 210 }],
       subtotal: 2695, taxRate: 8, taxAmount: 215.60, totalAmount: 2910.60 },
-    { vehicleId: vehicles[35].id, title: "Case 621G - Bucket Cylinder Reseal", description: "Bucket cylinder leaking. Resealed both cylinders. Tested under load.", type: "repair", status: "completed", serviceDate: days(-101), mileage: 1700, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[35].id, title: "Case 621G - Bucket Cylinder Reseal", description: "Bucket cylinder leaking. Resealed both cylinders. Tested under load.", type: "repair", status: "completed", serviceDate: days(-101), mileage: 1700, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Bucket Cylinder Seal Kit (pair)", partNumber: "CASE-BCSK-621G", quantity: 1, unitPrice: 380, total: 380 }, { name: "Hydraulic Oil (5gal)", partNumber: "HYD-ISO46-5G", quantity: 2, unitPrice: 95, total: 190 }],
       laborItems: [{ description: "Cylinder removal and disassembly", hours: 3.0, rate: 140, total: 420 }, { description: "Reseal and reassembly", hours: 2.5, rate: 140, total: 350 }, { description: "System bleed and pressure test", hours: 1.5, rate: 140, total: 210 }],
       subtotal: 1550, taxRate: 8, taxAmount: 124, totalAmount: 1674 },
-    { vehicleId: vehicles[1].id, title: "F-150 Transmission Fluid Flush", description: "Customer reported rough shifting. Flushed transmission fluid, replaced filter.", type: "repair", status: "completed", serviceDate: days(-36), mileage: 41500, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[1].id, title: "F-150 Transmission Fluid Flush", description: "Customer reported rough shifting. Flushed transmission fluid, replaced filter.", type: "repair", status: "completed", serviceDate: days(-36), mileage: 41500, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Mercon ULV ATF (12qt)", partNumber: "FORD-ATF-ULV", quantity: 1, unitPrice: 185, total: 185 }, { name: "Transmission Filter Kit", partNumber: "FORD-TFK-10R80", quantity: 1, unitPrice: 68, total: 68 }],
       laborItems: [{ description: "Transmission fluid flush", hours: 2.0, rate: 110, total: 220 }, { description: "Filter and gasket replacement", hours: 1.5, rate: 110, total: 165 }],
       subtotal: 638, taxRate: 8, taxAmount: 51.04, totalAmount: 689.04 },
-    { vehicleId: vehicles[38].id, title: "Corvette C8 - First Annual Service", description: "Annual oil change with performance inspection. Checked brake wear, tire depth, and suspension.", type: "maintenance", status: "completed", serviceDate: days(-46), mileage: 5800, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[38].id, title: "Corvette C8 - First Annual Service", description: "Annual oil change with performance inspection. Checked brake wear, tire depth, and suspension.", type: "maintenance", status: "completed", serviceDate: days(-46), mileage: 5800, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Mobil 1 0W-40 Full Synthetic (8qt)", partNumber: "CHV-0W40-8Q", quantity: 1, unitPrice: 95, total: 95 }, { name: "Oil Filter (OEM)", partNumber: "CHV-OF-LT2", quantity: 1, unitPrice: 18, total: 18 }, { name: "Cabin Air Filter", partNumber: "CHV-CAF-C8", quantity: 1, unitPrice: 28, total: 28 }],
       laborItems: [{ description: "Oil and filter change (dry sump)", hours: 1.0, rate: 130, total: 130 }, { description: "Performance multi-point inspection", hours: 1.0, rate: 130, total: 130 }],
       subtotal: 401, taxRate: 8, taxAmount: 32.08, totalAmount: 433.08 },
-    { vehicleId: vehicles[39].id, title: "Defender 110 - 30K Service + Off-Road Inspection", description: "30K mile service. Oil change, all filters, diff fluids. Extra inspection for off-road wear.", type: "maintenance", status: "completed", serviceDate: days(-89), mileage: 27000, techName: "Erik Haugen", shopName: "Egeland Auto",
+    { vehicleId: vehicles[39].id, title: "Defender 110 - 30K Service + Off-Road Inspection", description: "30K mile service. Oil change, all filters, diff fluids. Extra inspection for off-road wear.", type: "maintenance", status: "completed", serviceDate: days(-89), mileage: 27000, techName: "Erik Haugen", shopName: "Joe's Auto",
       partItems: [{ name: "Engine Oil 0W-20 (7qt)", partNumber: "LR-0W20-7Q", quantity: 1, unitPrice: 78, total: 78 }, { name: "Oil Filter", partNumber: "LR-OF-DEF", quantity: 1, unitPrice: 22, total: 22 }, { name: "Air Filter", partNumber: "LR-AF-DEF", quantity: 1, unitPrice: 45, total: 45 }, { name: "Front Diff Fluid (2qt)", partNumber: "LR-FDF-2Q", quantity: 1, unitPrice: 42, total: 42 }, { name: "Rear Diff Fluid (2.5qt)", partNumber: "LR-RDF-25Q", quantity: 1, unitPrice: 48, total: 48 }],
       laborItems: [{ description: "Oil and filter change", hours: 0.5, rate: 110, total: 55 }, { description: "Air filter replacement", hours: 0.3, rate: 110, total: 33 }, { description: "Front and rear differential fluid change", hours: 1.5, rate: 110, total: 165 }, { description: "Off-road undercarriage inspection", hours: 1.0, rate: 110, total: 110 }],
       subtotal: 598, taxRate: 8, taxAmount: 47.84, totalAmount: 645.84 },
-    { vehicleId: vehicles[40].id, title: "Charger R/T - Brake Rotor Replacement", description: "Front rotors warped from aggressive driving. Replace rotors and pads.", type: "repair", status: "completed", serviceDate: days(-32), mileage: 33500, techName: "Jake Wilson", shopName: "Egeland Auto",
+    { vehicleId: vehicles[40].id, title: "Charger R/T - Brake Rotor Replacement", description: "Front rotors warped from aggressive driving. Replace rotors and pads.", type: "repair", status: "completed", serviceDate: days(-32), mileage: 33500, techName: "Jake Wilson", shopName: "Joe's Auto",
       partItems: [{ name: "Front Brake Rotors (pair)", partNumber: "DOD-BR-CHG-F", quantity: 1, unitPrice: 280, total: 280 }, { name: "Front Brake Pad Set (performance)", partNumber: "DOD-BP-CHG-F", quantity: 1, unitPrice: 145, total: 145 }],
       laborItems: [{ description: "Front brake rotor and pad replacement", hours: 2.0, rate: 110, total: 220 }, { description: "Brake system bleed and road test", hours: 0.5, rate: 110, total: 55 }],
       subtotal: 700, taxRate: 8, taxAmount: 56, totalAmount: 756 },
-    { vehicleId: vehicles[41].id, title: "WRX - Turbo Boost Leak Repair", description: "Customer reported loss of power under boost. Found cracked intercooler pipe.", type: "repair", status: "completed", serviceDate: days(-38), mileage: 11800, techName: "Chris Taylor", shopName: "Egeland Auto",
+    { vehicleId: vehicles[41].id, title: "WRX - Turbo Boost Leak Repair", description: "Customer reported loss of power under boost. Found cracked intercooler pipe.", type: "repair", status: "completed", serviceDate: days(-38), mileage: 11800, techName: "Chris Taylor", shopName: "Joe's Auto",
       partItems: [{ name: "Intercooler Pipe + Couplers", partNumber: "SUB-ICP-WRX", quantity: 1, unitPrice: 165, total: 165 }, { name: "T-Bolt Clamps (set of 4)", partNumber: "SUB-TBC-4", quantity: 1, unitPrice: 28, total: 28 }],
       laborItems: [{ description: "Boost leak diagnosis and smoke test", hours: 1.0, rate: 120, total: 120 }, { description: "Intercooler pipe replacement", hours: 1.5, rate: 120, total: 180 }],
       subtotal: 493, taxRate: 8, taxAmount: 39.44, totalAmount: 532.44 },
@@ -1870,7 +1870,7 @@ async function seed() {
           serviceDate,
           mileage: entry.mileage,
           techName: entry.techName,
-          shopName: "Egeland Auto",
+          shopName: "Joe's Auto",
           subtotal: 180,
           taxRate: 8,
           taxAmount: 14.40,
@@ -1989,176 +1989,176 @@ async function seed() {
   // Create service records for the board (assigned ones)
   const boardServiceRecords = await Promise.all([
     // 0: Honda Civic AC
-    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - AC Compressor", description: "AC not blowing cold. Compressor clutch not engaging.", type: "repair", status: "pending", serviceDate: day(0), mileage: 45200, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - AC Compressor", description: "AC not blowing cold. Compressor clutch not engaging.", type: "repair", status: "pending", serviceDate: day(0), mileage: 45200, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "AC Compressor Assembly", partNumber: "HON-ACC-10G", quantity: 1, unitPrice: 480, total: 480 }, { name: "Refrigerant R-1234yf (bulk)", partNumber: "R1234YF-BULK", quantity: 1.4, unit: "lb", unitPrice: 68, total: 95.20 }],
       [{ description: "AC compressor removal and replacement", hours: 2.5, rate: 110, total: 275 }, { description: "System evacuate, recharge and leak test", hours: 1.0, rate: 110, total: 110 }],
       "Compressor clutch not engaging. Checked voltage at clutch connector - 12V present. Clutch coil resistance out of spec. Replace compressor assembly."),
     // 1: Audi A4 timing belt
-    sr({ vehicleId: vehicles[10].id, title: "Audi A4 - Timing Belt Service", description: "Scheduled timing belt and water pump replacement at 60K miles.", type: "maintenance", status: "in-progress", serviceDate: day(0), mileage: 60000, techName: "Chris Taylor", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[10].id, title: "Audi A4 - Timing Belt Service", description: "Scheduled timing belt and water pump replacement at 60K miles.", type: "maintenance", status: "in-progress", serviceDate: day(0), mileage: 60000, techName: "Chris Taylor", shopName: "Joe's Auto" },
       [{ name: "Timing Belt Kit w/ Water Pump", partNumber: "AUD-TBK-A4", quantity: 1, unitPrice: 385, total: 385 }, { name: "Thermostat Assembly", partNumber: "AUD-TH-A4", quantity: 1, unitPrice: 65, total: 65 }, { name: "Coolant G13 (5L)", partNumber: "AUD-COOL-G13", quantity: 1, unitPrice: 42, total: 42 }],
       [{ description: "Timing belt and water pump replacement", hours: 4.5, rate: 120, total: 540 }, { description: "Coolant flush and bleed", hours: 1.0, rate: 120, total: 120 }]),
     // 2: Tesla Model Y suspension
-    sr({ vehicleId: vehicles[7].id, title: "Tesla Model Y - Suspension Noise", description: "Customer reports clunking from front left over bumps.", type: "repair", status: "pending", serviceDate: day(1), mileage: 32000, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[7].id, title: "Tesla Model Y - Suspension Noise", description: "Customer reports clunking from front left over bumps.", type: "repair", status: "pending", serviceDate: day(1), mileage: 32000, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [{ name: "Front Lower Control Arm (L)", partNumber: "TES-LCA-MY-L", quantity: 1, unitPrice: 290, total: 290 }],
       [{ description: "Diagnose suspension noise", hours: 0.5, rate: 110, total: 55 }, { description: "Control arm replacement and alignment", hours: 2.0, rate: 110, total: 220 }],
       "Play found in front left lower control arm ball joint. No other issues found. Recommend alignment after replacement."),
     // 3: Silverado 60K
-    sr({ vehicleId: vehicles[8].id, title: "Silverado - 60K Service", description: "60,000 mile major service. Transmission fluid, spark plugs, coolant flush.", type: "maintenance", status: "pending", serviceDate: day(1), mileage: 60000, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[8].id, title: "Silverado - 60K Service", description: "60,000 mile major service. Transmission fluid, spark plugs, coolant flush.", type: "maintenance", status: "pending", serviceDate: day(1), mileage: 60000, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "ATF Dexron VI (12qt)", partNumber: "GM-ATF-DEX6", quantity: 1, unitPrice: 120, total: 120 }, { name: "Spark Plugs ACDelco (8)", partNumber: "ACD-SP-53", quantity: 8, unitPrice: 12, total: 96 }, { name: "Coolant Dex-Cool (2gal)", partNumber: "GM-COOL-DC", quantity: 1, unitPrice: 38, total: 38 }],
       [{ description: "Transmission fluid exchange", hours: 1.5, rate: 110, total: 165 }, { description: "Spark plug replacement (V8)", hours: 1.5, rate: 110, total: 165 }, { description: "Coolant flush and refill", hours: 1.0, rate: 110, total: 110 }]),
     // 4: Tacoma leaf springs
-    sr({ vehicleId: vehicles[16].id, title: "Toyota Tacoma - Leaf Spring Replacement", description: "Rear leaf springs sagging. Replace with upgraded OEM springs.", type: "repair", status: "pending", serviceDate: day(1), mileage: 55000, techName: "Erik Haugen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[16].id, title: "Toyota Tacoma - Leaf Spring Replacement", description: "Rear leaf springs sagging. Replace with upgraded OEM springs.", type: "repair", status: "pending", serviceDate: day(1), mileage: 55000, techName: "Erik Haugen", shopName: "Joe's Auto" },
       [{ name: "Rear Leaf Spring Pack (pair)", partNumber: "TOY-LS-TAC", quantity: 1, unitPrice: 520, total: 520 }, { name: "U-Bolt Kit", partNumber: "TOY-UB-TAC", quantity: 1, unitPrice: 85, total: 85 }],
       [{ description: "Leaf spring removal and installation (both sides)", hours: 3.5, rate: 110, total: 385 }]),
     // 5: Bobcat S650 annual
-    sr({ vehicleId: vehicles[32].id, title: "Bobcat S650 - Annual Service", description: "Full annual service. Engine oil, hydraulic filters, drive belt.", type: "maintenance", status: "pending", serviceDate: day(2), mileage: 2200, techName: "Marcus Reed", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[32].id, title: "Bobcat S650 - Annual Service", description: "Full annual service. Engine oil, hydraulic filters, drive belt.", type: "maintenance", status: "pending", serviceDate: day(2), mileage: 2200, techName: "Marcus Reed", shopName: "Joe's Auto" },
       [{ name: "Engine Oil 15W-40 (2gal)", partNumber: "BOB-15W40-2G", quantity: 1, unitPrice: 68, total: 68 }, { name: "Oil Filter", partNumber: "BOB-OF-S650", quantity: 1, unitPrice: 22, total: 22 }, { name: "Hydraulic Filter Set", partNumber: "BOB-HFS-S650", quantity: 1, unitPrice: 95, total: 95 }, { name: "Drive Belt", partNumber: "BOB-DB-S650", quantity: 1, unitPrice: 48, total: 48 }],
       [{ description: "Engine oil and filter change", hours: 1.0, rate: 130, total: 130 }, { description: "Hydraulic filter replacement", hours: 1.0, rate: 130, total: 130 }, { description: "Drive belt inspection and replacement", hours: 0.5, rate: 130, total: 65 }]),
     // 6: CAT 745 transmission rebuild
-    sr({ vehicleId: vehicles[34].id, title: "CAT 745 - Transmission Rebuild", description: "Slipping in 3rd gear under load. Full transmission rebuild.", type: "repair", status: "in-progress", serviceDate: day(0), mileage: 8500, techName: "Marcus Reed", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[34].id, title: "CAT 745 - Transmission Rebuild", description: "Slipping in 3rd gear under load. Full transmission rebuild.", type: "repair", status: "in-progress", serviceDate: day(0), mileage: 8500, techName: "Marcus Reed", shopName: "Joe's Auto" },
       [{ name: "Transmission Rebuild Kit", partNumber: "CAT-TRK-745", quantity: 1, unitPrice: 4200, total: 4200 }, { name: "Torque Converter", partNumber: "CAT-TC-745", quantity: 1, unitPrice: 2800, total: 2800 }, { name: "Transmission Oil (20gal)", partNumber: "CAT-TO-20G", quantity: 1, unitPrice: 480, total: 480 }],
       [{ description: "Transmission removal", hours: 8.0, rate: 150, total: 1200 }, { description: "Rebuild and reassembly", hours: 16.0, rate: 150, total: 2400 }, { description: "Installation and calibration", hours: 6.0, rate: 150, total: 900 }],
       "3rd gear clutch pack worn beyond spec. Torque converter showing excessive slip. Full rebuild recommended over clutch pack only due to hours on unit."),
     // 7: F-150 exhaust
-    sr({ vehicleId: vehicles[3].id, title: "Ford F-150 - Exhaust Leak Repair", description: "Exhaust manifold gasket leak. Replace gasket and inspect cat.", type: "repair", status: "pending", serviceDate: day(2), mileage: 52000, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[3].id, title: "Ford F-150 - Exhaust Leak Repair", description: "Exhaust manifold gasket leak. Replace gasket and inspect cat.", type: "repair", status: "pending", serviceDate: day(2), mileage: 52000, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "Exhaust Manifold Gasket Set", partNumber: "FORD-EMG-5L", quantity: 1, unitPrice: 85, total: 85 }, { name: "Exhaust Manifold Bolts (set)", partNumber: "FORD-EMB-5L", quantity: 1, unitPrice: 42, total: 42 }],
       [{ description: "Manifold removal and gasket replacement", hours: 2.5, rate: 110, total: 275 }, { description: "Cat converter inspection", hours: 0.5, rate: 110, total: 55 }]),
     // 8: Ram transfer case
-    sr({ vehicleId: vehicles[16].id, title: "Ram 1500 - Transfer Case Service", description: "Transfer case fluid change. Customer reports 4WD engagement delay.", type: "maintenance", status: "pending", serviceDate: day(3), mileage: 45000, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[16].id, title: "Ram 1500 - Transfer Case Service", description: "Transfer case fluid change. Customer reports 4WD engagement delay.", type: "maintenance", status: "pending", serviceDate: day(3), mileage: 45000, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [{ name: "Transfer Case Fluid (2qt)", partNumber: "RAM-TCF-2Q", quantity: 1, unitPrice: 48, total: 48 }, { name: "Transfer Case Drain Plug Gasket", partNumber: "RAM-DPG-TC", quantity: 1, unitPrice: 8, total: 8 }],
       [{ description: "Transfer case fluid drain and refill", hours: 1.0, rate: 110, total: 110 }, { description: "4WD engagement test and inspection", hours: 0.5, rate: 110, total: 55 }],
       "Fluid was dark and slightly burnt. Delay was from low fluid level. Refilled and tested - engages promptly now. Monitor."),
     // 9: Combine pre-season
-    sr({ vehicleId: vehicles[27].id, title: "Combine Harvester - Pre-Season Prep", description: "Full pre-season inspection. Header, feeder chain, sieve adjustments, all fluids.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 2800, techName: "Marcus Reed", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[27].id, title: "Combine Harvester - Pre-Season Prep", description: "Full pre-season inspection. Header, feeder chain, sieve adjustments, all fluids.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 2800, techName: "Marcus Reed", shopName: "Joe's Auto" },
       [{ name: "Engine Oil 15W-40 (5gal)", partNumber: "CMB-15W40-5G", quantity: 1, unitPrice: 185, total: 185 }, { name: "Hydraulic Filter Set", partNumber: "CMB-HFS", quantity: 1, unitPrice: 110, total: 110 }, { name: "Feeder Chain", partNumber: "CMB-FC-1", quantity: 1, unitPrice: 380, total: 380 }, { name: "Sieve Section (2)", partNumber: "CMB-SS-2", quantity: 2, unitPrice: 145, total: 290 }],
       [{ description: "Engine oil and filter change", hours: 1.5, rate: 140, total: 210 }, { description: "Feeder chain replacement", hours: 2.5, rate: 140, total: 350 }, { description: "Sieve adjustment and replacement", hours: 2.0, rate: 140, total: 280 }, { description: "Full system inspection and grease", hours: 2.0, rate: 140, total: 280 }]),
     // 10: Jeep axle seal
-    sr({ vehicleId: vehicles[12].id, title: "Jeep Wrangler - Axle Seal Replacement", description: "Rear axle seal leaking. Replace seals and check diff fluid.", type: "repair", status: "pending", serviceDate: day(4), mileage: 62000, techName: "Chris Taylor", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[12].id, title: "Jeep Wrangler - Axle Seal Replacement", description: "Rear axle seal leaking. Replace seals and check diff fluid.", type: "repair", status: "pending", serviceDate: day(4), mileage: 62000, techName: "Chris Taylor", shopName: "Joe's Auto" },
       [{ name: "Rear Axle Seal Kit", partNumber: "JEEP-ASK-JL", quantity: 1, unitPrice: 65, total: 65 }, { name: "Differential Fluid 75W-140 (2.5qt)", partNumber: "JEEP-DF-75W", quantity: 1, unitPrice: 52, total: 52 }],
       [{ description: "Axle seal replacement (both sides)", hours: 2.5, rate: 110, total: 275 }, { description: "Differential fluid top-off and inspection", hours: 0.5, rate: 110, total: 55 }]),
     // 11: Ram oil change (Lars)
-    sr({ vehicleId: vehicles[15].id, title: "Ram 1500 - Oil Change & Inspection", description: "Regular 10K mile service. Check brakes and tires.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 30000, techName: "Lars Johansen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[15].id, title: "Ram 1500 - Oil Change & Inspection", description: "Regular 10K mile service. Check brakes and tires.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 30000, techName: "Lars Johansen", shopName: "Joe's Auto" },
       [{ name: "Engine Oil 5W-20 (7qt)", partNumber: "RAM-5W20-7Q", quantity: 1, unitPrice: 52, total: 52 }, { name: "Oil Filter", partNumber: "RAM-OF-HEMI", quantity: 1, unitPrice: 14, total: 14 }],
       [{ description: "Oil and filter change", hours: 0.5, rate: 110, total: 55 }, { description: "Brake and tire inspection", hours: 0.5, rate: 110, total: 55 }]),
     // 12: F-150 wheel bearing (Nina)
-    sr({ vehicleId: vehicles[2].id, title: "Ford F-150 - Wheel Bearing", description: "Front left wheel bearing noise. Replace bearing assembly.", type: "repair", status: "waiting-parts", serviceDate: day(1), mileage: 68000, techName: "Nina Berglund", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[2].id, title: "Ford F-150 - Wheel Bearing", description: "Front left wheel bearing noise. Replace bearing assembly.", type: "repair", status: "waiting-parts", serviceDate: day(1), mileage: 68000, techName: "Nina Berglund", shopName: "Joe's Auto" },
       [{ name: "Front Wheel Bearing Hub Assembly", partNumber: "FORD-WBH-F150", quantity: 1, unitPrice: 285, total: 285 }],
       [{ description: "Wheel bearing hub replacement", hours: 2.0, rate: 110, total: 220 }, { description: "Road test and verify", hours: 0.5, rate: 110, total: 55 }],
       "Confirmed bearing noise from front left. Bearing has play when checked on lift. Right side OK for now."),
     // 13: Concrete mixer (Tom)
-    sr({ vehicleId: vehicles[20].id, title: "Concrete Mixer - Drum Motor Service", description: "Hydraulic motor service for drum rotation. Sluggish under load.", type: "repair", status: "in-progress", serviceDate: day(0), mileage: 75000, techName: "Tom Bradley", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[20].id, title: "Concrete Mixer - Drum Motor Service", description: "Hydraulic motor service for drum rotation. Sluggish under load.", type: "repair", status: "in-progress", serviceDate: day(0), mileage: 75000, techName: "Tom Bradley", shopName: "Joe's Auto" },
       [{ name: "Hydraulic Motor Seal Kit", partNumber: "MIX-HMSK", quantity: 1, unitPrice: 280, total: 280 }, { name: "Hydraulic Oil ISO 46 (10gal)", partNumber: "HYD-ISO46-10G", quantity: 1, unitPrice: 180, total: 180 }, { name: "Hydraulic Hose Assembly", partNumber: "MIX-HHA-12", quantity: 2, unitPrice: 95, total: 190 }],
       [{ description: "Hydraulic motor removal and reseal", hours: 4.0, rate: 140, total: 560 }, { description: "Hose replacement and system flush", hours: 2.0, rate: 140, total: 280 }, { description: "Load test drum rotation", hours: 1.0, rate: 140, total: 140 }]),
     // 14: Tractor PTO (Kari)
-    sr({ vehicleId: vehicles[25].id, title: "Tractor - PTO Clutch Adjustment", description: "PTO slipping under heavy load. Adjust clutch pack and inspect.", type: "repair", status: "pending", serviceDate: day(2), mileage: 3200, techName: "Kari Moen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[25].id, title: "Tractor - PTO Clutch Adjustment", description: "PTO slipping under heavy load. Adjust clutch pack and inspect.", type: "repair", status: "pending", serviceDate: day(2), mileage: 3200, techName: "Kari Moen", shopName: "Joe's Auto" },
       [{ name: "PTO Clutch Friction Disc Set", partNumber: "TRC-PTO-FDS", quantity: 1, unitPrice: 165, total: 165 }],
       [{ description: "PTO clutch pack inspection and adjustment", hours: 2.0, rate: 130, total: 260 }],
       "Clutch pack within adjustment range. Adjusted gap to spec. If slipping persists, full clutch pack replacement needed."),
     // 15: Dump truck tailgate (Daniel)
-    sr({ vehicleId: vehicles[21].id, title: "Dump Truck - Tailgate Cylinder", description: "Tailgate cylinder leaking. Reseal and test.", type: "repair", status: "pending", serviceDate: day(1), mileage: 120000, techName: "Daniel Eriksen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[21].id, title: "Dump Truck - Tailgate Cylinder", description: "Tailgate cylinder leaking. Reseal and test.", type: "repair", status: "pending", serviceDate: day(1), mileage: 120000, techName: "Daniel Eriksen", shopName: "Joe's Auto" },
       [{ name: "Tailgate Cylinder Seal Kit", partNumber: "DMP-TCSK", quantity: 1, unitPrice: 145, total: 145 }, { name: "Hydraulic Oil ISO 46 (5gal)", partNumber: "HYD-ISO46-5G", quantity: 1, unitPrice: 95, total: 95 }],
       [{ description: "Cylinder removal and reseal", hours: 3.0, rate: 130, total: 390 }, { description: "Reinstall and cycle test", hours: 1.0, rate: 130, total: 130 }]),
     // 16: Forklift mast chain (Lars)
-    sr({ vehicleId: vehicles[37].id, title: "Forklift - Mast Chain Replace", description: "Mast chain stretched beyond spec. Replace chains and adjust.", type: "repair", status: "pending", serviceDate: day(3), mileage: 5500, techName: "Lars Johansen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[37].id, title: "Forklift - Mast Chain Replace", description: "Mast chain stretched beyond spec. Replace chains and adjust.", type: "repair", status: "pending", serviceDate: day(3), mileage: 5500, techName: "Lars Johansen", shopName: "Joe's Auto" },
       [{ name: "Mast Chain (pair)", partNumber: "FRK-MC-PAIR", quantity: 1, unitPrice: 420, total: 420 }, { name: "Chain Anchor Pins", partNumber: "FRK-CAP-4", quantity: 1, unitPrice: 35, total: 35 }],
       [{ description: "Mast chain removal and replacement", hours: 2.5, rate: 120, total: 300 }, { description: "Chain tension adjustment and mast alignment", hours: 1.0, rate: 120, total: 120 }]),
     // 17: VW Golf clutch (Nina)
-    sr({ vehicleId: vehicles[14].id, title: "VW Golf GTI - Clutch Replace", description: "Clutch slipping at high RPM. Replace disc, pressure plate, throwout bearing.", type: "repair", status: "pending", serviceDate: day(2), mileage: 72000, techName: "Nina Berglund", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[14].id, title: "VW Golf GTI - Clutch Replace", description: "Clutch slipping at high RPM. Replace disc, pressure plate, throwout bearing.", type: "repair", status: "pending", serviceDate: day(2), mileage: 72000, techName: "Nina Berglund", shopName: "Joe's Auto" },
       [{ name: "Clutch Kit (disc, plate, bearing)", partNumber: "VW-CK-GTI", quantity: 1, unitPrice: 480, total: 480 }, { name: "Flywheel Bolts (set)", partNumber: "VW-FWB-GTI", quantity: 1, unitPrice: 32, total: 32 }],
       [{ description: "Transmission removal", hours: 3.5, rate: 120, total: 420 }, { description: "Clutch replacement and installation", hours: 2.5, rate: 120, total: 300 }, { description: "Bleed hydraulic clutch and road test", hours: 1.0, rate: 120, total: 120 }]),
     // 18: Combine header knives (Tom)
-    sr({ vehicleId: vehicles[28].id, title: "Combine - Header Knife Sharpen", description: "Sharpen and replace worn header knives. 4 sections need new blades.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 2900, techName: "Tom Bradley", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[28].id, title: "Combine - Header Knife Sharpen", description: "Sharpen and replace worn header knives. 4 sections need new blades.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 2900, techName: "Tom Bradley", shopName: "Joe's Auto" },
       [{ name: "Header Knife Sections (pack of 10)", partNumber: "CMB-HKS-10", quantity: 1, unitPrice: 85, total: 85 }, { name: "Knife Rivets (50-pack)", partNumber: "CMB-KR-50", quantity: 1, unitPrice: 22, total: 22 }],
       [{ description: "Remove header knives", hours: 1.0, rate: 120, total: 120 }, { description: "Sharpen and replace worn sections", hours: 2.0, rate: 120, total: 240 }, { description: "Reinstall and test", hours: 1.0, rate: 120, total: 120 }]),
     // 19: Kenworth clutch (Kari)
-    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Clutch Adjustment", description: "Driver reports clutch engagement point too high. Adjust and inspect.", type: "repair", status: "pending", serviceDate: day(3), mileage: 185000, techName: "Kari Moen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Clutch Adjustment", description: "Driver reports clutch engagement point too high. Adjust and inspect.", type: "repair", status: "pending", serviceDate: day(3), mileage: 185000, techName: "Kari Moen", shopName: "Joe's Auto" },
       [{ name: "Clutch Adjustment Hardware", partNumber: "KW-CAH-T680", quantity: 1, unitPrice: 45, total: 45 }],
       [{ description: "Clutch linkage inspection and adjustment", hours: 1.5, rate: 140, total: 210 }, { description: "Road test under load", hours: 0.5, rate: 140, total: 70 }]),
     // 20: Jeep steering stabilizer (Daniel)
-    sr({ vehicleId: vehicles[11].id, title: "Jeep Wrangler - Steering Stabilizer", description: "Death wobble at highway speed. Replace stabilizer and check tie rods.", type: "repair", status: "pending", serviceDate: day(4), mileage: 31000, techName: "Daniel Eriksen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[11].id, title: "Jeep Wrangler - Steering Stabilizer", description: "Death wobble at highway speed. Replace stabilizer and check tie rods.", type: "repair", status: "pending", serviceDate: day(4), mileage: 31000, techName: "Daniel Eriksen", shopName: "Joe's Auto" },
       [{ name: "Steering Stabilizer", partNumber: "JEEP-SS-JL", quantity: 1, unitPrice: 125, total: 125 }, { name: "Tie Rod End (pair)", partNumber: "JEEP-TRE-JL", quantity: 1, unitPrice: 140, total: 140 }],
       [{ description: "Steering stabilizer replacement", hours: 0.5, rate: 110, total: 55 }, { description: "Tie rod end inspection and replacement", hours: 1.5, rate: 110, total: 165 }]),
     // Friday extras (20–29)
     // 21: Camry cabin filter (Jake)
-    sr({ vehicleId: vehicles[0].id, title: "Toyota Camry - Cabin Filter + Wipers", description: "Replace cabin air filter and wiper blades. Quick service.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 16500, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[0].id, title: "Toyota Camry - Cabin Filter + Wipers", description: "Replace cabin air filter and wiper blades. Quick service.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 16500, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "Cabin Air Filter", partNumber: "TOY-CAF-CAM", quantity: 1, unitPrice: 22, total: 22 }, { name: "Wiper Blade Set (front)", partNumber: "TOY-WB-CAM", quantity: 1, unitPrice: 38, total: 38 }],
       [{ description: "Cabin filter and wiper replacement", hours: 0.3, rate: 95, total: 28.50 }]),
     // 22: Honda brakes (Jake)
-    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - Brake Pad Replace", description: "Front pads worn to 2mm. Replace front brake pads.", type: "repair", status: "pending", serviceDate: day(4), mileage: 46000, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - Brake Pad Replace", description: "Front pads worn to 2mm. Replace front brake pads.", type: "repair", status: "pending", serviceDate: day(4), mileage: 46000, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "Front Brake Pad Set", partNumber: "HON-BP-CIV", quantity: 1, unitPrice: 85, total: 85 }, { name: "Brake Cleaner (2 cans)", partNumber: "BC-CLEAN-2", quantity: 1, unitPrice: 12, total: 12 }],
       [{ description: "Front brake pad replacement", hours: 1.0, rate: 95, total: 95 }, { description: "Brake inspection and road test", hours: 0.3, rate: 95, total: 28.50 }]),
     // 23: Silverado taillight (Jake)
-    sr({ vehicleId: vehicles[8].id, title: "Silverado - Taillight Assembly", description: "Cracked right taillight from parking lot bump. Replace assembly.", type: "repair", status: "pending", serviceDate: day(4), mileage: 60500, techName: "Jake Wilson", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[8].id, title: "Silverado - Taillight Assembly", description: "Cracked right taillight from parking lot bump. Replace assembly.", type: "repair", status: "pending", serviceDate: day(4), mileage: 60500, techName: "Jake Wilson", shopName: "Joe's Auto" },
       [{ name: "Taillight Assembly (right)", partNumber: "GM-TLA-SIL-R", quantity: 1, unitPrice: 125, total: 125 }],
       [{ description: "Taillight assembly replacement", hours: 0.5, rate: 95, total: 47.50 }]),
     // 24: Sprinter oil (Chris)
-    sr({ vehicleId: vehicles[9].id, title: "Sprinter - Oil Service + Inspection", description: "Regular oil change with full inspection. Check brake wear sensors.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 37000, techName: "Chris Taylor", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[9].id, title: "Sprinter - Oil Service + Inspection", description: "Regular oil change with full inspection. Check brake wear sensors.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 37000, techName: "Chris Taylor", shopName: "Joe's Auto" },
       [{ name: "Engine Oil 5W-30 (8qt)", partNumber: "MB-5W30-8Q", quantity: 1, unitPrice: 78, total: 78 }, { name: "Oil Filter", partNumber: "MB-OF-SPR", quantity: 1, unitPrice: 18, total: 18 }],
       [{ description: "Oil and filter change", hours: 0.5, rate: 110, total: 55 }, { description: "Multi-point inspection", hours: 1.0, rate: 110, total: 110 }]),
     // 25: BMW coolant (Chris)
-    sr({ vehicleId: vehicles[4].id, title: "BMW 330i - Coolant Flush", description: "Coolant due. Flush and refill with BMW-approved coolant.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 52000, techName: "Chris Taylor", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[4].id, title: "BMW 330i - Coolant Flush", description: "Coolant due. Flush and refill with BMW-approved coolant.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 52000, techName: "Chris Taylor", shopName: "Joe's Auto" },
       [{ name: "BMW Coolant Concentrate (2L)", partNumber: "BMW-COOL-2L", quantity: 2, unitPrice: 32, total: 64 }, { name: "Thermostat Gasket", partNumber: "BMW-TG-N20", quantity: 1, unitPrice: 12, total: 12 }],
       [{ description: "Coolant flush and refill", hours: 1.0, rate: 120, total: 120 }, { description: "Bleed cooling system", hours: 0.5, rate: 120, total: 60 }]),
     // 26: Ram alignment (Sofia)
-    sr({ vehicleId: vehicles[15].id, title: "Ram 1500 - Alignment Check", description: "Pulling to the right after pothole. Full 4-wheel alignment.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 20000, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[15].id, title: "Ram 1500 - Alignment Check", description: "Pulling to the right after pothole. Full 4-wheel alignment.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 20000, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [],
       [{ description: "4-wheel alignment", hours: 1.0, rate: 110, total: 110 }]),
     // 27: Audi spark plugs (Sofia)
-    sr({ vehicleId: vehicles[10].id, title: "Audi A4 - Spark Plug Replace", description: "Misfire on cylinder 2. Replace all 4 spark plugs.", type: "repair", status: "pending", serviceDate: day(4), mileage: 62000, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[10].id, title: "Audi A4 - Spark Plug Replace", description: "Misfire on cylinder 2. Replace all 4 spark plugs.", type: "repair", status: "pending", serviceDate: day(4), mileage: 62000, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [{ name: "Spark Plugs NGK (set of 4)", partNumber: "AUD-SP-NGK4", quantity: 1, unitPrice: 68, total: 68 }, { name: "Ignition Coil (cyl 2)", partNumber: "AUD-IC-A4", quantity: 1, unitPrice: 52, total: 52 }],
       [{ description: "Spark plug replacement (4 cyl)", hours: 1.0, rate: 120, total: 120 }, { description: "Diagnose misfire and replace coil", hours: 0.5, rate: 120, total: 60 }],
       "P0302 - misfire cyl 2. Coil swap test confirmed faulty coil on cyl 2. Replace coil and all 4 plugs."),
     // 28: Tesla tire rotation (Sofia)
-    sr({ vehicleId: vehicles[7].id, title: "Tesla Model Y - Tire Rotation", description: "Rotate tires front to rear. Check tread depth and tire pressure.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 33000, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[7].id, title: "Tesla Model Y - Tire Rotation", description: "Rotate tires front to rear. Check tread depth and tire pressure.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 33000, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [],
       [{ description: "Tire rotation front to rear", hours: 0.5, rate: 95, total: 47.50 }, { description: "Tread depth measurement and pressure set", hours: 0.2, rate: 95, total: 19 }]),
     // 29: Massey Ferguson radiator (Erik)
-    sr({ vehicleId: vehicles[24].id, title: "Massey Ferguson - Radiator Flush", description: "Overheating under load. Flush radiator and check thermostat.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 3800, techName: "Erik Haugen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[24].id, title: "Massey Ferguson - Radiator Flush", description: "Overheating under load. Flush radiator and check thermostat.", type: "maintenance", status: "pending", serviceDate: day(4), mileage: 3800, techName: "Erik Haugen", shopName: "Joe's Auto" },
       [{ name: "Coolant (5gal)", partNumber: "MF-COOL-5G", quantity: 1, unitPrice: 65, total: 65 }, { name: "Thermostat", partNumber: "MF-TH-8S", quantity: 1, unitPrice: 48, total: 48 }],
       [{ description: "Radiator flush and refill", hours: 1.5, rate: 130, total: 195 }, { description: "Thermostat replacement", hours: 1.0, rate: 130, total: 130 }]),
     // 30: Mack mirror (Nina)
-    sr({ vehicleId: vehicles[19].id, title: "Mack Granite - Mirror Replacement", description: "Left side mirror housing cracked. Replace complete mirror assembly.", type: "repair", status: "pending", serviceDate: day(4), mileage: 157000, techName: "Nina Berglund", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[19].id, title: "Mack Granite - Mirror Replacement", description: "Left side mirror housing cracked. Replace complete mirror assembly.", type: "repair", status: "pending", serviceDate: day(4), mileage: 157000, techName: "Nina Berglund", shopName: "Joe's Auto" },
       [{ name: "Complete Mirror Assembly (left)", partNumber: "MACK-MA-L-GR", quantity: 1, unitPrice: 285, total: 285 }],
       [{ description: "Mirror assembly replacement", hours: 1.0, rate: 120, total: 120 }]),
     // 31: Ram battery (Kari)
-    sr({ vehicleId: vehicles[16].id, title: "Ram 1500 - Battery Replace", description: "Slow cranking. Battery tested bad. Replace with OEM spec.", type: "repair", status: "pending", serviceDate: day(4), mileage: 45500, techName: "Kari Moen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[16].id, title: "Ram 1500 - Battery Replace", description: "Slow cranking. Battery tested bad. Replace with OEM spec.", type: "repair", status: "pending", serviceDate: day(4), mileage: 45500, techName: "Kari Moen", shopName: "Joe's Auto" },
       [{ name: "Battery Group 65 AGM", partNumber: "BAT-G65-AGM", quantity: 1, unitPrice: 185, total: 185 }],
       [{ description: "Battery replacement and terminal cleaning", hours: 0.5, rate: 95, total: 47.50 }, { description: "Charging system test", hours: 0.2, rate: 95, total: 19 }]),
     // === Monday extras to fill the timeline ===
     // 32: Erik - Porsche oil change (Monday)
-    sr({ vehicleId: vehicles[13].id, title: "Porsche 911 - Oil Change", description: "Synthetic oil change with OEM filter. Check brake wear sensors.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 13200, techName: "Erik Haugen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[13].id, title: "Porsche 911 - Oil Change", description: "Synthetic oil change with OEM filter. Check brake wear sensors.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 13200, techName: "Erik Haugen", shopName: "Joe's Auto" },
       [{ name: "Porsche Approved Oil 0W-40 (9qt)", partNumber: "POR-0W40-9Q", quantity: 1, unitPrice: 165, total: 165 }, { name: "Oil Filter", partNumber: "POR-OF-992", quantity: 1, unitPrice: 28, total: 28 }],
       [{ description: "Oil and filter change", hours: 1.0, rate: 145, total: 145 }, { description: "Multi-point inspection", hours: 0.5, rate: 145, total: 72.50 }]),
     // 33: Nina - BMW coolant hose (Monday)
-    sr({ vehicleId: vehicles[4].id, title: "BMW 330i - Coolant Hose Replacement", description: "Upper radiator hose cracked. Replace hose and top off coolant.", type: "repair", status: "pending", serviceDate: day(0), mileage: 56000, techName: "Nina Berglund", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[4].id, title: "BMW 330i - Coolant Hose Replacement", description: "Upper radiator hose cracked. Replace hose and top off coolant.", type: "repair", status: "pending", serviceDate: day(0), mileage: 56000, techName: "Nina Berglund", shopName: "Joe's Auto" },
       [{ name: "Upper Radiator Hose", partNumber: "BMW-URH-N20", quantity: 1, unitPrice: 85, total: 85 }, { name: "Coolant G13 (1L)", partNumber: "BMW-COOL-1L", quantity: 2, unitPrice: 18, total: 36 }],
       [{ description: "Radiator hose replacement", hours: 1.5, rate: 120, total: 180 }, { description: "Coolant bleed and pressure test", hours: 0.5, rate: 120, total: 60 }]),
     // 34: Nina - Jeep brake inspection (Monday)
-    sr({ vehicleId: vehicles[11].id, title: "Jeep Wrangler - Brake Inspection", description: "Customer reports squealing. Inspect pads, rotors, and calipers.", type: "inspection", status: "pending", serviceDate: day(0), mileage: 29000, techName: "Nina Berglund", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[11].id, title: "Jeep Wrangler - Brake Inspection", description: "Customer reports squealing. Inspect pads, rotors, and calipers.", type: "inspection", status: "pending", serviceDate: day(0), mileage: 29000, techName: "Nina Berglund", shopName: "Joe's Auto" },
       [],
       [{ description: "Full brake system inspection", hours: 1.0, rate: 110, total: 110 }, { description: "Document findings and recommend", hours: 0.5, rate: 110, total: 55 }]),
     // 35: Kari - Fendt hydraulic filter (Monday)
-    sr({ vehicleId: vehicles[23].id, title: "Fendt 942 - Hydraulic Filter Service", description: "Scheduled hydraulic filter change. Check system pressure.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 1250, techName: "Kari Moen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[23].id, title: "Fendt 942 - Hydraulic Filter Service", description: "Scheduled hydraulic filter change. Check system pressure.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 1250, techName: "Kari Moen", shopName: "Joe's Auto" },
       [{ name: "Hydraulic Filter Set", partNumber: "FENDT-HFS-942", quantity: 1, unitPrice: 165, total: 165 }, { name: "Hydraulic Oil Sample Kit", partNumber: "OIL-SAMPLE", quantity: 1, unitPrice: 15, total: 15 }],
       [{ description: "Hydraulic filter replacement", hours: 1.5, rate: 150, total: 225 }, { description: "Pressure test and oil sample", hours: 1.0, rate: 150, total: 150 }]),
     // 36: Kari - Excavator grease service (Monday)
-    sr({ vehicleId: vehicles[31].id, title: "Komatsu PC210 - Full Grease Service", description: "Complete grease service all 24 fittings. Check pin play.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 3150, techName: "Kari Moen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[31].id, title: "Komatsu PC210 - Full Grease Service", description: "Complete grease service all 24 fittings. Check pin play.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 3150, techName: "Kari Moen", shopName: "Joe's Auto" },
       [{ name: "Grease Cartridges (box of 10)", partNumber: "GRZ-EP2-10", quantity: 1, unitPrice: 42, total: 42 }],
       [{ description: "Grease all fittings (24 points)", hours: 2.0, rate: 130, total: 260 }, { description: "Pin and bushing play inspection", hours: 0.5, rate: 130, total: 65 }]),
     // 37: Daniel - Volvo FH brake adjustment (Monday)
-    sr({ vehicleId: vehicles[18].id, title: "Volvo FH 640 - Brake Adjustment", description: "Annual brake adjustment. Check linings and drums.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 93000, techName: "Daniel Eriksen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[18].id, title: "Volvo FH 640 - Brake Adjustment", description: "Annual brake adjustment. Check linings and drums.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 93000, techName: "Daniel Eriksen", shopName: "Joe's Auto" },
       [{ name: "Brake Lining Wear Indicators (set)", partNumber: "VOL-BLWI-FH", quantity: 1, unitPrice: 45, total: 45 }],
       [{ description: "Brake adjustment all axles", hours: 2.5, rate: 140, total: 350 }, { description: "Lining measurement and documentation", hours: 1.0, rate: 140, total: 140 }]),
     // 38: Daniel - Dump truck hydraulic hose (Monday)
-    sr({ vehicleId: vehicles[21].id, title: "Dump Truck - Hydraulic Hose Replace", description: "Hose bulging near fitting. Replace before failure.", type: "repair", status: "pending", serviceDate: day(0), mileage: 83000, techName: "Daniel Eriksen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[21].id, title: "Dump Truck - Hydraulic Hose Replace", description: "Hose bulging near fitting. Replace before failure.", type: "repair", status: "pending", serviceDate: day(0), mileage: 83000, techName: "Daniel Eriksen", shopName: "Joe's Auto" },
       [{ name: "Hydraulic Hose Assembly 3/4\"", partNumber: "HYD-HA-34", quantity: 2, unitPrice: 120, total: 240 }, { name: "Hose Fittings (4-pack)", partNumber: "HYD-FIT-4", quantity: 1, unitPrice: 65, total: 65 }],
       [{ description: "Hose removal and replacement", hours: 2.0, rate: 130, total: 260 }, { description: "System bleed and pressure test", hours: 0.5, rate: 130, total: 65 }]),
     // 39: Lars - Kenworth air filter (Monday)
-    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Air Filter Service", description: "Replace primary and secondary air filters. Clean intake ducting.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 186500, techName: "Lars Johansen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Air Filter Service", description: "Replace primary and secondary air filters. Clean intake ducting.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 186500, techName: "Lars Johansen", shopName: "Joe's Auto" },
       [{ name: "Primary Air Filter", partNumber: "KW-PAF-T680", quantity: 1, unitPrice: 85, total: 85 }, { name: "Secondary Air Filter", partNumber: "KW-SAF-T680", quantity: 1, unitPrice: 55, total: 55 }],
       [{ description: "Air filter replacement (both)", hours: 0.5, rate: 130, total: 65 }, { description: "Intake system inspection and clean", hours: 0.5, rate: 130, total: 65 }]),
     // 40: Sofia - Honda Civic tire rotation (Monday)
-    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - Tire Rotation + Check", description: "Rotate tires. Customer also reports slight vibration at highway speed.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 68500, techName: "Sofia Andersen", shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[5].id, title: "Honda Civic - Tire Rotation + Check", description: "Rotate tires. Customer also reports slight vibration at highway speed.", type: "maintenance", status: "pending", serviceDate: day(0), mileage: 68500, techName: "Sofia Andersen", shopName: "Joe's Auto" },
       [],
       [{ description: "Tire rotation", hours: 0.5, rate: 95, total: 47.50 }, { description: "Wheel balance check (4 wheels)", hours: 0.5, rate: 95, total: 47.50 }, { description: "Road test for vibration", hours: 0.3, rate: 95, total: 28.50 }]),
   ]);
@@ -2166,56 +2166,56 @@ async function seed() {
   // Unassigned jobs (NOT on the board - will show in unassigned panel)
   console.log("\nCreating unassigned service records...");
   const unassignedRecords = await Promise.all([
-    sr({ vehicleId: vehicles[0].id, title: "Toyota Camry - Check Engine Light", description: "P0171 - System Too Lean. Diagnose and repair. Customer reports rough idle.", type: "repair", status: "pending", mileage: 16200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[0].id, title: "Toyota Camry - Check Engine Light", description: "P0171 - System Too Lean. Diagnose and repair. Customer reports rough idle.", type: "repair", status: "pending", mileage: 16200, shopName: "Joe's Auto" },
       [{ name: "MAF Sensor", partNumber: "TOY-MAF-CAM", quantity: 1, unitPrice: 145, total: 145 }, { name: "Air Filter", partNumber: "TOY-AF-CAM", quantity: 1, unitPrice: 18, total: 18 }],
       [{ description: "Diagnostic scan and smoke test", hours: 1.0, rate: 110, total: 110 }, { description: "MAF sensor replacement", hours: 0.5, rate: 110, total: 55 }],
       "P0171 lean code. Inspected intake for vacuum leaks - none found. MAF sensor reading low. Suspect contaminated MAF."),
-    sr({ vehicleId: vehicles[9].id, title: "Sprinter - Sliding Door Repair", description: "Sliding door sticking halfway. Roller mechanism needs replacement.", type: "repair", status: "pending", mileage: 36500, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[9].id, title: "Sprinter - Sliding Door Repair", description: "Sliding door sticking halfway. Roller mechanism needs replacement.", type: "repair", status: "pending", mileage: 36500, shopName: "Joe's Auto" },
       [{ name: "Sliding Door Roller Assembly", partNumber: "MB-SDRA-SPR", quantity: 1, unitPrice: 220, total: 220 }, { name: "Door Track Lubricant", partNumber: "LUB-DTL-1", quantity: 1, unitPrice: 15, total: 15 }],
       [{ description: "Roller mechanism removal and replacement", hours: 2.0, rate: 110, total: 220 }]),
-    sr({ vehicleId: vehicles[13].id, title: "Porsche 911 - Pre-Track Inspection", description: "Full safety inspection before April track day. Brakes, fluids, suspension, tires.", type: "inspection", status: "pending", mileage: 13000, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[13].id, title: "Porsche 911 - Pre-Track Inspection", description: "Full safety inspection before April track day. Brakes, fluids, suspension, tires.", type: "inspection", status: "pending", mileage: 13000, shopName: "Joe's Auto" },
       [{ name: "Brake Fluid DOT4 Racing (1L)", partNumber: "POR-BF-R-1L", quantity: 2, unitPrice: 48, total: 96 }],
       [{ description: "Full multi-point track safety inspection", hours: 2.0, rate: 145, total: 290 }, { description: "Brake fluid flush with racing fluid", hours: 1.5, rate: 145, total: 217.50 }]),
-    sr({ vehicleId: vehicles[19].id, title: "Mack Granite - Dump Body Weld Repair", description: "Cracks in dump body floor. Weld repair and reinforce high-stress areas.", type: "repair", status: "pending", mileage: 156000, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[19].id, title: "Mack Granite - Dump Body Weld Repair", description: "Cracks in dump body floor. Weld repair and reinforce high-stress areas.", type: "repair", status: "pending", mileage: 156000, shopName: "Joe's Auto" },
       [{ name: "Steel Plate 3/8\" (2 sheets)", partNumber: "STL-PLT-38", quantity: 2, unitPrice: 120, total: 240 }, { name: "Welding Wire (10lb)", partNumber: "WLD-WIRE-10", quantity: 1, unitPrice: 45, total: 45 }],
       [{ description: "Grind and prep crack areas", hours: 2.0, rate: 130, total: 260 }, { description: "Weld repair and reinforce", hours: 4.0, rate: 130, total: 520 }]),
-    sr({ vehicleId: vehicles[22].id, title: "John Deere 6R - Front Loader Pins", description: "Excessive play in front loader attachment pins. Replace pins and bushings.", type: "repair", status: "pending", mileage: 2800, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[22].id, title: "John Deere 6R - Front Loader Pins", description: "Excessive play in front loader attachment pins. Replace pins and bushings.", type: "repair", status: "pending", mileage: 2800, shopName: "Joe's Auto" },
       [{ name: "Loader Pin Kit", partNumber: "JD-LPK-6R", quantity: 1, unitPrice: 185, total: 185 }, { name: "Bronze Bushings (set of 4)", partNumber: "JD-BB-6R-4", quantity: 1, unitPrice: 120, total: 120 }],
       [{ description: "Pin and bushing removal", hours: 2.0, rate: 140, total: 280 }, { description: "New bushing press-in and pin installation", hours: 2.0, rate: 140, total: 280 }]),
-    sr({ vehicleId: vehicles[31].id, title: "Komatsu PC210 - Boom Cylinder Reseal", description: "Slow drift on boom cylinder. Reseal required.", type: "repair", status: "pending", mileage: 3200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[31].id, title: "Komatsu PC210 - Boom Cylinder Reseal", description: "Slow drift on boom cylinder. Reseal required.", type: "repair", status: "pending", mileage: 3200, shopName: "Joe's Auto" },
       [{ name: "Boom Cylinder Seal Kit", partNumber: "KOM-BCSK-PC210", quantity: 1, unitPrice: 320, total: 320 }, { name: "Hydraulic Oil (5gal)", partNumber: "HYD-ISO46-5G", quantity: 1, unitPrice: 95, total: 95 }],
       [{ description: "Boom cylinder removal", hours: 3.0, rate: 140, total: 420 }, { description: "Reseal and reinstall", hours: 2.5, rate: 140, total: 350 }]),
-    sr({ vehicleId: vehicles[36].id, title: "Liebherr LTM 1100 - Outrigger Service", description: "Right rear outrigger slow to extend. Inspect valve and cylinder seals.", type: "repair", status: "pending", mileage: 4200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[36].id, title: "Liebherr LTM 1100 - Outrigger Service", description: "Right rear outrigger slow to extend. Inspect valve and cylinder seals.", type: "repair", status: "pending", mileage: 4200, shopName: "Joe's Auto" },
       [{ name: "Outrigger Cylinder Seal Kit", partNumber: "LIE-OCSK-1100", quantity: 1, unitPrice: 450, total: 450 }, { name: "Outrigger Control Valve", partNumber: "LIE-OCV-1100", quantity: 1, unitPrice: 680, total: 680 }],
       [{ description: "Diagnose outrigger hydraulic circuit", hours: 2.0, rate: 150, total: 300 }, { description: "Cylinder reseal or valve replacement", hours: 4.0, rate: 150, total: 600 }]),
-    sr({ vehicleId: vehicles[6].id, title: "Tesla Model 3 - 12V Battery Replace", description: "Low voltage warning. Replace 12V auxiliary battery.", type: "repair", status: "pending", mileage: 8200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[6].id, title: "Tesla Model 3 - 12V Battery Replace", description: "Low voltage warning. Replace 12V auxiliary battery.", type: "repair", status: "pending", mileage: 8200, shopName: "Joe's Auto" },
       [{ name: "12V Lithium Battery (Tesla OEM)", partNumber: "TES-12V-M3", quantity: 1, unitPrice: 110, total: 110 }],
       [{ description: "12V battery replacement", hours: 0.5, rate: 110, total: 55 }]),
-    sr({ vehicleId: vehicles[23].id, title: "Fendt 942 - GPS Autosteer Calibration", description: "Autosteer drifting right by 6 inches. Recalibrate GPS receiver and steering controller.", type: "maintenance", status: "pending", mileage: 1200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[23].id, title: "Fendt 942 - GPS Autosteer Calibration", description: "Autosteer drifting right by 6 inches. Recalibrate GPS receiver and steering controller.", type: "maintenance", status: "pending", mileage: 1200, shopName: "Joe's Auto" },
       [],
       [{ description: "GPS receiver calibration", hours: 1.5, rate: 150, total: 225 }, { description: "Steering controller calibration and field test", hours: 2.0, rate: 150, total: 300 }],
       "RTK base station signal verified. GPS receiver antenna checked - mounting bracket slightly loose causing drift. Tighten and recalibrate."),
-    sr({ vehicleId: vehicles[33].id, title: "Volvo EC220E - Bucket Teeth Replace", description: "3 worn bucket teeth. Replace full set of 5 for even wear.", type: "maintenance", status: "pending", mileage: 1600, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[33].id, title: "Volvo EC220E - Bucket Teeth Replace", description: "3 worn bucket teeth. Replace full set of 5 for even wear.", type: "maintenance", status: "pending", mileage: 1600, shopName: "Joe's Auto" },
       [{ name: "Bucket Teeth Set (5)", partNumber: "VOL-BTS-EC220", quantity: 1, unitPrice: 340, total: 340 }, { name: "Retainer Pins (5-pack)", partNumber: "VOL-RP-5", quantity: 1, unitPrice: 45, total: 45 }],
       [{ description: "Bucket teeth removal and replacement", hours: 1.5, rate: 130, total: 195 }]),
-    sr({ vehicleId: vehicles[18].id, title: "Volvo FH 640 - Turbo Boost Leak", description: "Low power complaint. Suspect charge air cooler pipe leak. Diagnose.", type: "repair", status: "pending", mileage: 93500, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[18].id, title: "Volvo FH 640 - Turbo Boost Leak", description: "Low power complaint. Suspect charge air cooler pipe leak. Diagnose.", type: "repair", status: "pending", mileage: 93500, shopName: "Joe's Auto" },
       [{ name: "Charge Air Cooler Pipe + Clamps", partNumber: "VOL-CACP-FH", quantity: 1, unitPrice: 185, total: 185 }],
       [{ description: "Boost leak diagnosis and smoke test", hours: 1.5, rate: 140, total: 210 }, { description: "Pipe replacement and clamp tightening", hours: 1.0, rate: 140, total: 140 }],
       "Smoke test confirmed leak at charge air cooler pipe connection. Clamp was loose and pipe boot cracked."),
-    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Sleeper AC Repair", description: "Sleeper AC not cooling. Likely low refrigerant or compressor issue.", type: "repair", status: "waiting-parts", mileage: 186000, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[17].id, title: "Kenworth T680 - Sleeper AC Repair", description: "Sleeper AC not cooling. Likely low refrigerant or compressor issue.", type: "repair", status: "waiting-parts", mileage: 186000, shopName: "Joe's Auto" },
       [{ name: "Sleeper AC Compressor", partNumber: "KW-SAC-T680", quantity: 1, unitPrice: 580, total: 580 }, { name: "Refrigerant R-134a (3 cans)", partNumber: "REF-134A-3", quantity: 1, unitPrice: 65, total: 65 }, { name: "AC Condenser", partNumber: "KW-COND-T680", quantity: 1, unitPrice: 320, total: 320 }],
       [{ description: "Sleeper AC system diagnosis", hours: 1.5, rate: 140, total: 210 }, { description: "Compressor and condenser replacement", hours: 3.5, rate: 140, total: 490 }, { description: "Evacuate, recharge and leak test", hours: 1.0, rate: 140, total: 140 }],
       "Compressor seized. Condenser contaminated with metal debris from failed compressor. Both need replacement. Parts on order - ETA Wednesday."),
-    sr({ vehicleId: vehicles[38].id, title: "Corvette C8 - Pre-Track Brake Service", description: "Customer has track day in 2 weeks. Flush brake fluid, inspect pads, check tire wear.", type: "maintenance", status: "pending", mileage: 6200, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[38].id, title: "Corvette C8 - Pre-Track Brake Service", description: "Customer has track day in 2 weeks. Flush brake fluid, inspect pads, check tire wear.", type: "maintenance", status: "pending", mileage: 6200, shopName: "Joe's Auto" },
       [{ name: "Brake Fluid DOT4 Racing (1L)", partNumber: "BF-DOT4R-1L", quantity: 3, unitPrice: 48, total: 144 }],
       [{ description: "Brake fluid flush all 4 corners", hours: 1.5, rate: 130, total: 195 }, { description: "Brake pad measurement and inspection", hours: 0.5, rate: 130, total: 65 }, { description: "Tire tread depth and pressure check", hours: 0.3, rate: 130, total: 39 }]),
-    sr({ vehicleId: vehicles[39].id, title: "Defender 110 - Air Suspension Warning", description: "Dashboard warning light for air suspension. Possible compressor or height sensor issue.", type: "repair", status: "pending", mileage: 28500, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[39].id, title: "Defender 110 - Air Suspension Warning", description: "Dashboard warning light for air suspension. Possible compressor or height sensor issue.", type: "repair", status: "pending", mileage: 28500, shopName: "Joe's Auto" },
       [{ name: "Air Suspension Height Sensor", partNumber: "LR-ASHS-DEF", quantity: 1, unitPrice: 210, total: 210 }],
       [{ description: "Diagnose air suspension fault codes", hours: 1.0, rate: 120, total: 120 }, { description: "Height sensor replacement and calibration", hours: 1.5, rate: 120, total: 180 }]),
-    sr({ vehicleId: vehicles[40].id, title: "Charger R/T - Rear Alignment + Tire Replace", description: "Inner edge tire wear on rears. Alignment and new rear tires needed.", type: "repair", status: "pending", mileage: 35000, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[40].id, title: "Charger R/T - Rear Alignment + Tire Replace", description: "Inner edge tire wear on rears. Alignment and new rear tires needed.", type: "repair", status: "pending", mileage: 35000, shopName: "Joe's Auto" },
       [{ name: "Firestone Firehawk Indy 500 275/40R20 (pair)", partNumber: "FS-FH500-27540-2", quantity: 1, unitPrice: 380, total: 380 }],
       [{ description: "Rear tire mount and balance (2)", hours: 0.5, rate: 95, total: 47.50 }, { description: "4-wheel alignment", hours: 1.0, rate: 110, total: 110 }]),
-    sr({ vehicleId: vehicles[41].id, title: "WRX - Clutch Adjustment + Inspection", description: "Customer reports high clutch engagement point. Inspect clutch wear and adjust.", type: "repair", status: "pending", mileage: 12400, shopName: "Egeland Auto" },
+    sr({ vehicleId: vehicles[41].id, title: "WRX - Clutch Adjustment + Inspection", description: "Customer reports high clutch engagement point. Inspect clutch wear and adjust.", type: "repair", status: "pending", mileage: 12400, shopName: "Joe's Auto" },
       [{ name: "Clutch Master Cylinder Fluid", partNumber: "SUB-CMF-DOT4", quantity: 1, unitPrice: 15, total: 15 }],
       [{ description: "Clutch pedal adjustment and bleed", hours: 0.5, rate: 110, total: 55 }, { description: "Clutch wear inspection via inspection port", hours: 0.5, rate: 110, total: 55 }],
       "Clutch engagement point higher than normal but disc still within spec. Bled hydraulic line - air found. Pedal feel improved. Monitor."),
@@ -2390,7 +2390,7 @@ async function seed() {
         mileage: job.mileage,
         technicianId: technicians[job.tech].id,
         techName: technicians[job.tech].name,
-        shopName: "Egeland Auto",
+        shopName: "Joe's Auto",
       },
       job.parts,
       labor,
@@ -2617,7 +2617,7 @@ async function seed() {
         nextTestDue: nextTest,
         certificateNumber: opts.certificate ?? null,
         inspectorName: opts.status === "completed" ? technicians[opts.techIdx].name : null,
-        testLocation: opts.status === "completed" ? "Egeland Auto, Denver CO" : null,
+        testLocation: opts.status === "completed" ? "Joe's Auto, Denver CO" : null,
         items: {
           create: flat.map(({ item, section }, idx) => {
             const defect = defects.get(idx);
@@ -3036,29 +3036,29 @@ async function seed() {
   const scheduledMessages = await Promise.all([
     // Already sent
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Hi James, your Toyota Camry is booked in for Thursday at 08:00. Reply STOP to opt out.", customerId: customers[1].id, vehicleId: vehicles[0].id, status: "sent", sendAt: at(-9, 9), sentAt: at(-9, 9), lastRunAt: at(-9, 9), runCount: 1 } }),
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Your invoice from Egeland Auto", body: "Hi Sarah,\n\nThe annual service on your Porsche 911 is complete and the invoice is attached. All OEM parts as always.\n\nEgeland Auto", customerId: customers[3].id, vehicleId: vehicles[13].id, status: "sent", sendAt: at(-6, 16), sentAt: at(-6, 16), lastRunAt: at(-6, 16), runCount: 1 } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Your invoice from Joe's Auto", body: "Hi Sarah,\n\nThe annual service on your Porsche 911 is complete and the invoice is attached. All OEM parts as always.\n\nJoe's Auto", customerId: customers[3].id, vehicleId: vehicles[13].id, status: "sent", sendAt: at(-6, 16), sentAt: at(-6, 16), lastRunAt: at(-6, 16), runCount: 1 } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Ridgeline: the Komatsu PC210 is ready for transport. Track chains and sprockets both replaced.", customerId: customers[8].id, vehicleId: vehicles[31].id, status: "sent", sendAt: at(-3, 15, 30), sentAt: at(-3, 15, 30), lastRunAt: at(-3, 15, 30), runCount: 1 } }),
 
     // Queued for today and this week
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Kevin, the Sprinter is finished and ready for collection any time before 17:00 today.", customerId: customers[15].id, vehicleId: vehicles[9].id, status: "scheduled", sendAt: at(0, 15) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "in_app", body: "Chase Metro City Services for the purchase order before starting the F-150 exhaust job.", status: "scheduled", sendAt: at(0, 16, 30) } }),
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: `Quote Q-${YEAR}-003 - CAT D6 undercarriage`, body: "Hi,\n\nA reminder that the undercarriage rebuild quote for the CAT D6 expires in three weeks. Happy to walk through the wear measurements if that helps.\n\nEgeland Auto", customerId: customers[0].id, vehicleId: vehicles[29].id, status: "scheduled", sendAt: at(1, 9) } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: `Quote Q-${YEAR}-003 - CAT D6 undercarriage`, body: "Hi,\n\nA reminder that the undercarriage rebuild quote for the CAT D6 expires in three weeks. Happy to walk through the wear measurements if that helps.\n\nJoe's Auto", customerId: customers[0].id, vehicleId: vehicles[29].id, status: "scheduled", sendAt: at(1, 9) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Reminder: your Volvo FH 640 brake inspection is booked for tomorrow at 07:30.", customerId: customers[2].id, vehicleId: vehicles[18].id, status: "scheduled", sendAt: at(2, 8) } }),
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Pre-planting service slots", body: "Hi,\n\nWe are holding two slots for the John Deere 6R and the Massey Ferguson ahead of planting. Let us know which week suits.\n\nEgeland Auto", customerId: customers[10].id, status: "scheduled", sendAt: at(3, 10) } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Pre-planting service slots", body: "Hi,\n\nWe are holding two slots for the John Deere 6R and the Massey Ferguson ahead of planting. Let us know which week suits.\n\nJoe's Auto", customerId: customers[10].id, status: "scheduled", sendAt: at(3, 10) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "telegram", body: "Your Tesla Model Y is booked for a brake fluid test on Monday at 08:00.", customerId: customers[13].id, vehicleId: vehicles[7].id, status: "scheduled", sendAt: at(4, 9) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "whatsapp", body: "Hi Sarah, a reminder that the BMW 330i is booked in on Tuesday at 09:00 for the brake overhaul.", customerId: customers[3].id, vehicleId: vehicles[4].id, status: "scheduled", sendAt: at(5, 8) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "whatsapp", body: "The water pump is fitted and the A4 is ready whenever suits you.", customerId: customers[7].id, vehicleId: vehicles[10].id, status: "sent", sendAt: at(-1, 14), sentAt: at(-1, 14), lastRunAt: at(-1, 14), runCount: 1 } }),
 
     // Further out
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Track day prep - Porsche 911", body: "Hi Sarah,\n\nBooking your 911 in for brake pads, fluid and tire pressures the week before the track day. Reply with a day that suits.\n\nEgeland Auto", customerId: customers[3].id, vehicleId: vehicles[13].id, status: "scheduled", sendAt: at(9, 11) } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Track day prep - Porsche 911", body: "Hi Sarah,\n\nBooking your 911 in for brake pads, fluid and tire pressures the week before the track day. Reply with a day that suits.\n\nJoe's Auto", customerId: customers[3].id, vehicleId: vehicles[13].id, status: "scheduled", sendAt: at(9, 11) } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Titan Building: the Liebherr crane certification is due. Shall we book the external inspector?", customerId: customers[14].id, vehicleId: vehicles[36].id, status: "scheduled", sendAt: at(12, 10) } }),
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Pre-harvest booking", body: "Hi,\n\nHarvest is close enough that the combine slots are filling. Reply to hold a week for the S780 and the X9.\n\nEgeland Auto", customerId: customers[18].id, status: "scheduled", sendAt: at(21, 9) } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Pre-harvest booking", body: "Hi,\n\nHarvest is close enough that the combine slots are filling. Reply to hold a week for the S780 and the X9.\n\nJoe's Auto", customerId: customers[18].id, status: "scheduled", sendAt: at(21, 9) } }),
 
     // Recurring
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Monthly fleet maintenance statement", body: "Attached is this month's statement across all Summit Construction units.\n\nEgeland Auto", customerId: customers[0].id, status: "scheduled", frequency: "monthly", sendAt: at(6, 8), endDate: months(12), lastRunAt: at(-24, 8), runCount: 4 } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Monthly fleet maintenance statement", body: "Attached is this month's statement across all Summit Construction units.\n\nJoe's Auto", customerId: customers[0].id, status: "scheduled", frequency: "monthly", sendAt: at(6, 8), endDate: months(12), lastRunAt: at(-24, 8), runCount: 4 } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Greenfield: quarterly PM window opens next week. Reply with the trucks you want in first.", customerId: customers[16].id, status: "scheduled", frequency: "monthly", sendAt: at(8, 9), lastRunAt: at(-22, 9), runCount: 2 } }),
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "in_app", body: "Weekly check: any job on the board still waiting on parts?", status: "scheduled", frequency: "weekly", sendAt: at(MONDAY_OFFSET + 4, 15), lastRunAt: at(MONDAY_OFFSET - 3, 15), runCount: 9 } }),
-    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Annual roadworthiness test due", body: "Hi,\n\nYour vehicle's periodic technical inspection is due within the month. Reply to book a slot.\n\nEgeland Auto", customerId: customers[2].id, vehicleId: vehicles[17].id, status: "scheduled", frequency: "yearly", sendAt: at(30, 9), runCount: 1, lastRunAt: at(-335, 9) } }),
+    prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "email", subject: "Annual roadworthiness test due", body: "Hi,\n\nYour vehicle's periodic technical inspection is due within the month. Reply to book a slot.\n\nJoe's Auto", customerId: customers[2].id, vehicleId: vehicles[17].id, status: "scheduled", frequency: "yearly", sendAt: at(30, 9), runCount: 1, lastRunAt: at(-335, 9) } }),
 
     // The unhappy paths
     prisma.scheduledMessage.create({ data: { organizationId: ORG_ID, createdById: USER_ID, channel: "sms", body: "Amanda, your Civic clutch quote is ready to view.", customerId: customers[9].id, vehicleId: vehicles[5].id, status: "failed", sendAt: at(-2, 11), lastRunAt: at(-2, 11), runCount: 1, errorMessage: "Carrier rejected the message: unknown destination number" } }),

+ 98 - 0
src/__tests__/api/portal-demo-signin.test.ts

@@ -0,0 +1,98 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+
+/**
+ * The demo's way into the customer portal.
+ *
+ * The demo sends no mail, so the emailed sign-in link never arrived and the
+ * portal could not be opened at all. One button now signs a visitor in as a
+ * seeded sample customer. Outside the demo that door must not exist.
+ */
+
+const demo = vi.hoisted(() => ({ on: true }))
+
+vi.mock('server-only', () => ({}))
+vi.mock('@/lib/demo', () => ({
+  get isDemoMode() {
+    return demo.on
+  },
+  DEMO_PORTAL_CUSTOMER_EMAIL: 'sarah.coleman@example.com',
+}))
+vi.mock('@/lib/db', () => ({
+  db: {
+    customer: { findFirst: vi.fn() },
+    customerSession: { create: vi.fn() },
+  },
+}))
+vi.mock('@/lib/rate-limit', () => ({ rateLimit: vi.fn(() => null) }))
+vi.mock('@/lib/portal-slug', () => ({ resolvePortalOrg: vi.fn() }))
+vi.mock('@/features/portal/Lib/portalLive', () => ({ isPortalLive: vi.fn() }))
+
+import { db } from '@/lib/db'
+import { resolvePortalOrg } from '@/lib/portal-slug'
+import { isPortalLive } from '@/features/portal/Lib/portalLive'
+import { POST } from '@/app/(public)/portal/[orgId]/auth/demo/route'
+
+const ORG = 'demo-workshop'
+const BASE = `https://demo.example.com/portal/${ORG}`
+const params = { params: Promise.resolve({ orgId: ORG }) }
+const press = () => POST(new Request(`${BASE}/auth/demo`, { method: 'POST' }), params)
+
+beforeEach(() => {
+  vi.clearAllMocks()
+  demo.on = true
+  vi.stubEnv('NEXT_PUBLIC_APP_URL', '')
+  vi.mocked(resolvePortalOrg).mockResolvedValue({ id: 'org-1', name: 'Shop' } as never)
+  vi.mocked(isPortalLive).mockResolvedValue(true)
+  vi.mocked(db.customer.findFirst).mockResolvedValue({ id: 'cust-1', name: 'Sarah' } as never)
+})
+
+describe('the demo portal button', () => {
+  it('signs the visitor in as the sample customer and opens the portal', async () => {
+    const res = await press()
+
+    expect(res.status).toBe(303)
+    expect(res.headers.get('location')).toBe(`${BASE}/dashboard`)
+    expect(res.headers.getSetCookie().join('\n')).toContain('customer-session=')
+    expect(db.customer.findFirst).toHaveBeenCalledWith(
+      expect.objectContaining({
+        where: { organizationId: 'org-1', email: 'sarah.coleman@example.com' },
+      })
+    )
+    expect(db.customerSession.create).toHaveBeenCalledWith({
+      data: expect.objectContaining({ customerId: 'cust-1', organizationId: 'org-1' }),
+    })
+  })
+
+  it('still opens the portal when a visitor deleted the sample customer', async () => {
+    vi.mocked(db.customer.findFirst)
+      .mockResolvedValueOnce(null)
+      .mockResolvedValueOnce({ id: 'cust-2', name: 'James' } as never)
+
+    const res = await press()
+
+    expect(res.headers.get('location')).toBe(`${BASE}/dashboard`)
+    expect(db.customerSession.create).toHaveBeenCalledWith({
+      data: expect.objectContaining({ customerId: 'cust-2' }),
+    })
+  })
+
+  it('goes back to the login page when the portal is switched off', async () => {
+    vi.mocked(isPortalLive).mockResolvedValue(false)
+
+    const res = await press()
+
+    expect(res.headers.get('location')).toBe(`${BASE}/auth/login`)
+    expect(db.customerSession.create).not.toHaveBeenCalled()
+  })
+
+  it('does not exist outside the demo', async () => {
+    demo.on = false
+
+    const res = await press()
+
+    expect(res.status).toBe(404)
+    expect(res.headers.getSetCookie()).toEqual([])
+    expect(db.customer.findFirst).not.toHaveBeenCalled()
+    expect(db.customerSession.create).not.toHaveBeenCalled()
+  })
+})

+ 61 - 0
src/app/(public)/portal/[orgId]/auth/demo/route.ts

@@ -0,0 +1,61 @@
+import { NextResponse } from 'next/server'
+import { randomBytes } from 'crypto'
+import { db } from '@/lib/db'
+import { CUSTOMER_SESSION_COOKIE, CUSTOMER_SESSION_DURATION } from '@/lib/customer-session'
+import { isDemoMode } from '@/lib/demo'
+import { resolvePortalOrg } from '@/lib/portal-slug'
+import { getAppBaseUrl } from '@/lib/app-url'
+import { rateLimit } from '@/lib/rate-limit'
+import { findDemoPortalCustomer } from '@/features/portal/Lib/demoCustomer'
+import { isPortalLive } from '@/features/portal/Lib/portalLive'
+
+/**
+ * The "Open the demo portal" button on the login page. The demo sends no
+ * mail and no texts, so a visitor could never follow a sign-in link; this
+ * signs them in as the seeded sample customer instead.
+ *
+ * It does not exist outside the demo: with DEMO_MODE off the answer is 404
+ * before anything is read.
+ */
+export async function POST(request: Request, { params }: { params: Promise<{ orgId: string }> }) {
+  if (!isDemoMode) return new NextResponse(null, { status: 404 })
+
+  const rateLimitResponse = rateLimit(request, { limit: 10, windowMs: 60_000, anonymous: true })
+  if (rateLimitResponse) return rateLimitResponse
+
+  const { orgId: orgParam } = await params
+  const baseUrl = getAppBaseUrl(new URL(request.url).origin)
+  // 303 throughout: the browser must follow a form post with a GET.
+  const toLogin = (error?: string) =>
+    NextResponse.redirect(
+      `${baseUrl}/portal/${orgParam}/auth/login${error ? `?error=${error}` : ''}`,
+      303
+    )
+
+  const org = await resolvePortalOrg(orgParam)
+  // The login page says why: no such workshop, or its portal is off.
+  if (!org || !(await isPortalLive(org.id))) return toLogin()
+
+  const customer = await findDemoPortalCustomer(org.id)
+  if (!customer) return toLogin('no-account')
+
+  const sessionToken = randomBytes(32).toString('hex')
+  await db.customerSession.create({
+    data: {
+      token: sessionToken,
+      customerId: customer.id,
+      organizationId: org.id,
+      expiresAt: new Date(Date.now() + CUSTOMER_SESSION_DURATION),
+    },
+  })
+
+  const response = NextResponse.redirect(`${baseUrl}/portal/${orgParam}/dashboard`, 303)
+  response.cookies.set(CUSTOMER_SESSION_COOKIE, sessionToken, {
+    httpOnly: true,
+    secure: process.env.NODE_ENV === 'production',
+    sameSite: 'lax',
+    path: '/portal',
+    maxAge: CUSTOMER_SESSION_DURATION / 1000,
+  })
+  return response
+}

+ 31 - 6
src/app/(public)/portal/[orgId]/auth/login/page.tsx

@@ -3,6 +3,8 @@ import { getTranslations } from 'next-intl/server'
 import { PortalLanding } from '@/features/portal/Components/PortalLanding'
 import { PortalLoginForm } from '@/features/portal/Components/PortalLoginForm'
 import { PortalPlainScreen } from '@/features/portal/Components/PortalPlainScreen'
+import { PortalButton, PortalNotice } from '@/features/portal/Components/Ui'
+import { findDemoPortalCustomer } from '@/features/portal/Lib/demoCustomer'
 import { isPortalLive } from '@/features/portal/Lib/portalLive'
 import { signInErrorMessageKey } from '@/features/portal/Lib/signInLink'
 import { SETTING_KEYS } from '@/features/settings/Schema/settingsSchema'
@@ -47,6 +49,9 @@ export default async function PortalLoginPage({
     redirect(`/portal/${orgParam}/dashboard`)
   }
 
+  // Null everywhere but the demo, which sends no link or code to sign in with.
+  const demoCustomer = await findDemoPortalCustomer(orgId)
+
   const [settings, smsProvider] = await Promise.all([
     db.appSetting.findMany({
       where: {
@@ -74,12 +79,32 @@ export default async function PortalLoginPage({
       description={get(SETTING_KEYS.PORTAL_DESCRIPTION)}
       hoursText={get(SETTING_KEYS.PORTAL_HOURS)}
     >
-      <PortalLoginForm
-        orgId={orgParam}
-        error={authError}
-        smsEnabled={smsProvider !== null}
-        defaultCountryCode={normalizeCountryCode(get(SETTING_KEYS.WORKSHOP_DEFAULT_COUNTRY_CODE))}
-      />
+      {demoCustomer ? (
+        <form
+          method="post"
+          action={`/portal/${orgParam}/auth/demo`}
+          className="flex flex-col gap-5"
+        >
+          {authError && (
+            <PortalNotice tone="danger" role="alert">
+              {authError}
+            </PortalNotice>
+          )}
+          <p className="p-muted text-base leading-normal">
+            {t('demoNotice', { customer: demoCustomer.name })}
+          </p>
+          <PortalButton type="submit" variant="accent" size="lg" block>
+            {t('demoButton')}
+          </PortalButton>
+        </form>
+      ) : (
+        <PortalLoginForm
+          orgId={orgParam}
+          error={authError}
+          smsEnabled={smsProvider !== null}
+          defaultCountryCode={normalizeCountryCode(get(SETTING_KEYS.WORKSHOP_DEFAULT_COUNTRY_CODE))}
+        />
+      )}
     </PortalLanding>
   )
 }

+ 40 - 0
src/features/portal/Lib/demoCustomer.ts

@@ -0,0 +1,40 @@
+import 'server-only'
+
+import { db } from '@/lib/db'
+import { DEMO_PORTAL_CUSTOMER_EMAIL, isDemoMode } from '@/lib/demo'
+
+/**
+ * Who a demo visitor is in the customer portal.
+ *
+ * The demo cannot send a sign-in link (nothing leaves the box, see
+ * `assertOutboundAllowed`), so the login page offers one button that signs the
+ * visitor in as a seeded customer. The seed's pick is used when it is there;
+ * a visitor may have renamed or deleted that customer since the last reset, so
+ * the first customer with a vehicle stands in, and then anyone at all.
+ *
+ * Null outside the demo, always: this is the only way to a portal session
+ * without proving an address or a phone number.
+ */
+export async function findDemoPortalCustomer(
+  organizationId: string
+): Promise<{ id: string; name: string } | null> {
+  if (!isDemoMode) return null
+
+  const select = { id: true, name: true } as const
+  return (
+    (await db.customer.findFirst({
+      where: { organizationId, email: DEMO_PORTAL_CUSTOMER_EMAIL },
+      select,
+    })) ??
+    (await db.customer.findFirst({
+      where: { organizationId, vehicles: { some: {} } },
+      orderBy: { createdAt: 'asc' },
+      select,
+    })) ??
+    (await db.customer.findFirst({
+      where: { organizationId },
+      orderBy: { createdAt: 'asc' },
+      select,
+    }))
+  )
+}

+ 7 - 0
src/lib/demo.ts

@@ -16,6 +16,13 @@ export const isDemoMode = process.env.DEMO_MODE === 'true'
 export const DEMO_USER_EMAIL = process.env.DEMO_USER_EMAIL || 'demo@torqvoice.com'
 export const DEMO_USER_PASSWORD = process.env.DEMO_USER_PASSWORD || 'demo'
 
+/**
+ * The seeded customer a visitor becomes in the customer portal. The demo sends
+ * no sign-in link, so the portal's login page signs them in as this one.
+ */
+export const DEMO_PORTAL_CUSTOMER_EMAIL =
+  process.env.DEMO_PORTAL_CUSTOMER_EMAIL || 'sarah.coleman@example.com'
+
 /**
  * Where a demo visitor is sent when something is off here: the hosted app,
  * free to start, is where the thing they just tried works with their own