U6: Lighthouse performance in CI alleen waarschuwen (Pi te traag), eigenaarsbesluit vastgelegd

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 14:24:26 +01:00
co-authored by Claude Sonnet 5.5
parent 9ac852f2a2
commit 1a02824338
4 changed files with 14 additions and 5 deletions
@@ -309,6 +309,9 @@ jobs:
- name: Lighthouse - name: Lighthouse
env: env:
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new --disable-dev-shm-usage' LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new --disable-dev-shm-usage'
# Pi-runner te traag voor een eerlijke performance-meting (eigenaarsbesluit 2026-11-14):
# performance alleen waarschuwen, de andere drie categorieen blijven harde gates.
LIGHTHOUSE_PERFORMANCE: warn
run: pnpm run lighthouse run: pnpm run lighthouse
- name: Upload Lighthouse-rapporten - name: Upload Lighthouse-rapporten
@@ -17,8 +17,8 @@
## Conceptteksten ## Conceptteksten
### 1. Wie ben ik ### 1. Wie ben ik
SLP Software is een eenmanszaak van Bryan Slop **[OPEN: bevestig bedrijfsnaam en rechtsvorm, KvK-nummer alleen noemen als gewenst]**. Ik ben verantwoordelijk voor de verwerking van persoonsgegevens zoals beschreven in deze verklaring. SLP Software is een eenmanszaak. Ik ben verantwoordelijk voor de verwerking van persoonsgegevens zoals beschreven in deze verklaring.
Contact: **[OPEN: e-mailadres voor privacyvragen]**. Contact: info@slpsoftware.nl.
### 2. Welke gegevens en waarom ### 2. Welke gegevens en waarom
@@ -37,7 +37,7 @@ Ik gebruik je gegevens niet voor reclame en verkoop ze niet door.
- Foutmeldingen: **[OPEN: bewaartermijn Sentry controleren in de projectinstellingen, standaard 90 dagen]**. - Foutmeldingen: **[OPEN: bewaartermijn Sentry controleren in de projectinstellingen, standaard 90 dagen]**.
### 4. Met wie deel ik gegevens ### 4. Met wie deel ik gegevens
- Hosting van de website en het CMS: een externe hostingpartij **[OPEN: naam invullen, vermoedelijk MijnHostingPartner; verwerkersovereenkomst afsluiten]**. - Hosting van de website en het CMS: nu op een eigen server (Raspberry Pi, geen externe verwerker). **Na de verhuizing naar MijnHostingPartner (Nederland) deze regel aanpassen en de verwerkersovereenkomst afsluiten; de verklaring pas dan bijwerken.**
- E-mail (ontvangst van contactberichten): MijnHostingPartner (Nederland). - E-mail (ontvangst van contactberichten): MijnHostingPartner (Nederland).
- Foutmonitoring: Sentry-cloud, EU-regio (Duitsland, de.sentry.io). Verwerkersovereenkomst: Sentry biedt een standaard-DPA aan **[OPEN: afsluiten/bevestigen]**. - Foutmonitoring: Sentry-cloud, EU-regio (Duitsland, de.sentry.io). Verwerkersovereenkomst: Sentry biedt een standaard-DPA aan **[OPEN: afsluiten/bevestigen]**.
- Statistieken: Umami, **zelf gehost** **[OPEN: bevestigen]**, dus geen gegevens naar derden. - Statistieken: Umami, **zelf gehost** **[OPEN: bevestigen]**, dus geen gegevens naar derden.
@@ -46,7 +46,7 @@
- **NFR-7 Maintainability**: theme tokens as CSS variables per variant × mode; Tailwind semantic color names remain; content stays in `content.ts`/API. - **NFR-7 Maintainability**: theme tokens as CSS variables per variant × mode; Tailwind semantic color names remain; content stays in `content.ts`/API.
- **NFR-8 Compatibility**: hash routing and static hosting remain; the existing Sentry/Umami integration and the CI/CD pipeline keep working. - **NFR-8 Compatibility**: hash routing and static hosting remain; the existing Sentry/Umami integration and the CI/CD pipeline keep working.
- **NFR-9 SEO and performance (U6)**: static text is prerendered into the HTML at build; dynamic parts (packages, later gallery) are injected by the CMS host from current data, fresh within minutes; canonical, Open Graph/Twitter, favicon set, JSON-LD (organisation and offers), `robots.txt` and `sitemap.xml`; test hosts serve `Disallow: /` and `X-Robots-Tag: noindex` from the host, not the bundle; Lighthouse in the pipeline on mobile and desktop is a hard gate of at least 0.9 per category (exceptions only with a recorded owner decision); no new third-party scripts. - **NFR-9 SEO and performance (U6)**: static text is prerendered into the HTML at build; dynamic parts (packages, later gallery) are injected by the CMS host from current data, fresh within minutes; canonical, Open Graph/Twitter, favicon set, JSON-LD (organisation and offers), `robots.txt` and `sitemap.xml`; test hosts serve `Disallow: /` and `X-Robots-Tag: noindex` from the host, not the bundle; Lighthouse in the pipeline on mobile and desktop is a hard gate of at least 0.9 per category (exceptions only with a recorded owner decision; **owner decision 2026-11-14**: on the Pi CI runner the performance category is report-only, because the measurement is too slow there (0.54 vs 0.90 locally); accessibility, best-practices and SEO stay hard gates, and performance stays a hard gate when run locally); no new third-party scripts.
- **NFR-10 CMS content is live (owner principle, 2026-11-12)**: everything that comes from the CMS (packages, banner, later the gallery) is visible on the website immediately after a change in the CMS; a rebuild exists only for SEO (HTML and structured data that crawlers read). Pattern for all sites: baked-in or host-injected HTML for crawlers plus a client-side refresh from the API on load; on failure the baked version stays (no empty prices). Applies to SLP Software, Andrea Slop Fotografie and future sites. - **NFR-10 CMS content is live (owner principle, 2026-11-12)**: everything that comes from the CMS (packages, banner, later the gallery) is visible on the website immediately after a change in the CMS; a rebuild exists only for SEO (HTML and structured data that crawlers read). Pattern for all sites: baked-in or host-injected HTML for crawlers plus a client-side refresh from the API on load; on failure the baked version stays (no empty prices). Applies to SLP Software, Andrea Slop Fotografie and future sites.
+7 -1
View File
@@ -12,7 +12,13 @@ module.exports = {
}, },
assert: { assert: {
assertions: { assertions: {
'categories:performance': ['error', { minScore: 0.9 }], // Eigenaarsbesluit 2026-11-14: op de Pi-runner is de meting te traag (mobiel 0,54, lokaal
// 0,90), dus performance wordt in CI alleen gerapporteerd (LIGHTHOUSE_PERFORMANCE=warn).
// Lokaal blijft het een harde gate (standaard 'error').
'categories:performance': [
process.env.LIGHTHOUSE_PERFORMANCE ?? 'error',
{ minScore: 0.9 },
],
'categories:accessibility': ['error', { minScore: 0.9 }], 'categories:accessibility': ['error', { minScore: 0.9 }],
'categories:best-practices': ['error', { minScore: 0.9 }], 'categories:best-practices': ['error', { minScore: 0.9 }],
'categories:seo': ['error', { minScore: 0.9 }], 'categories:seo': ['error', { minScore: 0.9 }],