From 3bb6eb3447e74bef2d2ee214e2f733c85eabe078 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 14 Jun 2026 22:46:16 +0200 Subject: [PATCH] fix: revert bohrtechnik to competence link, remove kirchheilingen location --- app/[locale]/layout.tsx | 1 - content/de/home.mdx | 2 +- content/de/ueber-uns.mdx | 2 +- content/en/home.mdx | 2 +- content/en/ueber-uns.mdx | 2 +- lib/standorte-data.ts | 47 +++---------------------------------- tests/task-12-links.test.ts | 8 +++---- 7 files changed, 11 insertions(+), 53 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 55283ab4a..fae3f76fb 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -94,7 +94,6 @@ export default async function Layout(props: { { label: safeLocale === 'de' ? 'Firma' : 'Company', url: `/${safeLocale}/${await mapFileSlugToTranslated('ueber-uns', safeLocale)}` }, { label: safeLocale === 'de' ? 'Standorte Übersicht' : 'Locations Overview', url: `/${safeLocale}/standorte` }, { label: 'Standort Guben', url: `/${safeLocale}/standorte/guben` }, - { label: 'Standort Kirchheilingen', url: `/${safeLocale}/standorte/kirchheilingen` }, { label: 'Standort Bülstedt', url: `/${safeLocale}/standorte/buelstedt` }, { label: safeLocale === 'de' ? 'Unser Team' : 'Our Team', url: `/${safeLocale}/team` }, { label: safeLocale === 'de' ? 'Zertifikate' : 'Certificates', url: `/${safeLocale}/zertifikate` } diff --git a/content/de/home.mdx b/content/de/home.mdx index be1d767ed..f570f7406 100644 --- a/content/de/home.mdx +++ b/content/de/home.mdx @@ -41,7 +41,7 @@ description: "Die E-TIB GmbH ist Ihr zuverlässiger Partner für komplexe Kabelt title: "E-TIB Bohrtechnik GmbH", description: "Präzise Horizontalspülbohrungen in allen Bodenklassen für eine oberflächenschonende und grabenlose Leitungsverlegung.", icon: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z", - url: "/de/standorte/kirchheilingen", + url: "/de/bohrtechnik", backgroundImage: "/assets/photos/DSC08653.JPG" } ]} diff --git a/content/de/ueber-uns.mdx b/content/de/ueber-uns.mdx index 8a46a07ee..79f150e37 100644 --- a/content/de/ueber-uns.mdx +++ b/content/de/ueber-uns.mdx @@ -86,7 +86,7 @@ layout: "fullBleed" title: "E-TIB Bohrtechnik GmbH", description: "Präzise Horizontalspülbohrungen in allen Bodenklassen für eine oberflächenschonende und grabenlose Leitungsverlegung.", icon: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z", - url: "/de/standorte/kirchheilingen", + url: "/de/bohrtechnik", backgroundImage: "/assets/photos/DSC08653.JPG" } ]} diff --git a/content/en/home.mdx b/content/en/home.mdx index e2c3ca1b1..1a86fff89 100644 --- a/content/en/home.mdx +++ b/content/en/home.mdx @@ -41,7 +41,7 @@ description: "E-TIB GmbH is your reliable partner for complex cable routes, hori title: "E-TIB Bohrtechnik GmbH", description: "Precise horizontal directional drilling in all soil classes for surface-friendly and trenchless pipe laying.", icon: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z", - url: "/en/standorte/kirchheilingen", + url: "/en/drilling-technology", backgroundImage: "/assets/photos/DSC08653.JPG" } ]} diff --git a/content/en/ueber-uns.mdx b/content/en/ueber-uns.mdx index 5b72992aa..65d9ac50e 100644 --- a/content/en/ueber-uns.mdx +++ b/content/en/ueber-uns.mdx @@ -86,7 +86,7 @@ layout: "fullBleed" title: "E-TIB Bohrtechnik GmbH", description: "Precise horizontal directional drilling in all soil classes for surface-friendly and trenchless pipe laying.", icon: "M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z", - url: "/en/standorte/kirchheilingen", + url: "/en/drilling-technology", backgroundImage: "/assets/photos/DSC08653.JPG" } ]} diff --git a/lib/standorte-data.ts b/lib/standorte-data.ts index f964de7fc..ac8d0f6fb 100644 --- a/lib/standorte-data.ts +++ b/lib/standorte-data.ts @@ -73,47 +73,6 @@ export const standorteData: StandortData[] = [ '/assets/photos/Etib_E-tib_Tiefbau_Guben_Netzanbindung_Energie-45.jpg' ] }, - { - id: 'kirchheilingen', - name: 'E-TIB Bohrtechnik GmbH', - shortName: 'Standort Thüringen', - type: 'branch', - description: { - de: 'Unser spezialisierter Standort für Horizontalspülbohrtechnik in Thüringen. Mit modernsten Bohranlagen realisieren wir grabenlose Leitungsverlegungen für komplexe Infrastrukturprojekte, umweltschonend und hocheffizient.', - en: 'Our specialized location for horizontal directional drilling in Thuringia. Utilizing state-of-the-art drilling rigs, we implement trenchless cable laying for complex infrastructure projects, environmentally friendly and highly efficient.' - }, - address: { - street: 'Bahnhofstraße 180a', - city: '99947 Kirchheilingen' - }, - contact: { - phone: '+49 (0) 3561 / 68577 33', // Placeholder, using central - email: 'info@e-tib.com' - }, - coordinates: { - lat: 51.1852, - lng: 10.6865 - }, - keyFeatures: { - de: [ - 'Horizontalspülbohrtechnik (HDD)', - 'Grabenlose Rohrverlegung', - 'Felsbohrungen', - 'Unterquerung von Gewässern & Straßen' - ], - en: [ - 'Horizontal Directional Drilling (HDD)', - 'Trenchless pipe laying', - 'Rock drilling', - 'Crossing underneath water bodies & roads' - ] - }, - image: '/assets/photos/Etib_E-tib_Tiefbau_Guben_Netzanbindung_Energie_Vermessung_(247_von_80).jpg', - gallery: [ - '/assets/photos/DSC02089.jpg', - '/assets/photos/Etib_E-tib_Tiefbau_Guben_Netzanbindung_Energie-6.jpg' - ] - }, { id: 'buelstedt', name: 'E-TIB Ingenieurgesellschaft mbH', @@ -162,12 +121,12 @@ export function getStandortById(id: string): StandortData | undefined { } // Convert StandortData to the Location format required by the map -export const standorteLocations = standorteData.map((standort) => ({ +export const standorteLocations = standorteData.map(standort => ({ id: standort.id, name: standort.shortName, type: standort.type, - x: standort.id === 'kirchheilingen' ? 52 : standort.id === 'buelstedt' ? 37 : 85, - y: standort.id === 'kirchheilingen' ? 55 : standort.id === 'buelstedt' ? 25.33 : 41.1, + x: standort.id === 'buelstedt' ? 37 : 85, + y: standort.id === 'buelstedt' ? 25.33 : 41.1, description: standort.name, href: `/standorte/${standort.id}`, details: standort.keyFeatures.de.slice(0, 3) diff --git a/tests/task-12-links.test.ts b/tests/task-12-links.test.ts index 47354e6f0..25f36c50b 100644 --- a/tests/task-12-links.test.ts +++ b/tests/task-12-links.test.ts @@ -18,12 +18,12 @@ describe('Task 12 TDD - Bohrtechnik and Reference Links', () => { const urlDeIndex = bohrtechnikDeBlock.indexOf('url:'); const nextItemDeIndex = bohrtechnikDeBlock.indexOf('title:', 10); - // Ensure "url:" exists within the E-TIB Bohrtechnik block and points to "/de/standorte/kirchheilingen" - expect(deContent).toMatch(/title:\s*"E-TIB Bohrtechnik GmbH"[\s\S]*?url:\s*["']\/de\/standorte\/kirchheilingen["']/); + // Ensure "url:" exists within the E-TIB Bohrtechnik block and points to "/de/bohrtechnik" + expect(deContent).toMatch(/title:\s*"E-TIB Bohrtechnik GmbH"[\s\S]*?url:\s*["']\/de\/bohrtechnik["']/); - // Assert that E-TIB Bohrtechnik GmbH has url: "/en/standorte/kirchheilingen" in English content + // Assert that E-TIB Bohrtechnik GmbH has url: "/en/drilling-technology" in English content expect(enContent).toContain('title: "E-TIB Bohrtechnik GmbH"'); - expect(enContent).toMatch(/title:\s*"E-TIB Bohrtechnik GmbH"[\s\S]*?url:\s*["']\/en\/standorte\/kirchheilingen["']/); + expect(enContent).toMatch(/title:\s*"E-TIB Bohrtechnik GmbH"[\s\S]*?url:\s*["']\/en\/drilling-technology["']/); }); it('should verify that all reference projects in map-data have no href links', () => {