super-productivity/tools/lighthouse/.lighthouserc.json
Johannes Millan 25d7d6a379
ci(lighthouse): raise script-count budget to 220, align warn to 210 (#8740)
* fix(work-context): use project icon for header title icon

The header title icon read the active work context's icon, but
selectActiveWorkContext forced icon: null for projects (a leftover
from when projects had no icon field). Pass the project's own icon
through so the header matches the side nav.

* ci(lighthouse): raise script-count budget 200->220, align warn to 210

The Lighthouse `resource-summary.script.count` budget in budget.json was
an exact hard cap of 200 that the app has crept up against as it grows
(master passed at <=200; a recent build hit 201 and failed CI on an
unrelated PR). Bump the hard budget to 220 to restore headroom.

The parallel warn threshold in .lighthouserc.json was 170 - already
exceeded by ~30, so it fired on every run as permanent, meaningless
noise. Raise it to 210 so it sits just below the 220 hard cap and again
functions as an early warning before the budget is breached.
2026-07-03 18:13:23 +02:00

33 lines
1.2 KiB
JSON

{
"ci": {
"collect": {
"staticDistDir": "./dist",
"numberOfRuns": 1,
"url": ["/browser/index.html"],
"settings": {
"disableServiceWorker": true,
"maxWaitForLoad": 45000
}
},
"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"categories:performance": ["warn", { "minScore": 0.8 }],
"categories:accessibility": ["warn", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }],
"first-contentful-paint": ["warn", { "maxNumericValue": 2500 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 4000 }],
"cumulative-layout-shift": ["warn", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 300 }],
"interactive": ["warn", { "maxNumericValue": 5000 }],
"resource-summary.script.count": ["warn", { "maxNumericValue": 210 }],
"resource-summary.total.count": ["warn", { "maxNumericValue": 300 }],
"resource-summary.font.size": ["warn", { "maxNumericValue": 520000 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}