diff --git a/editors-picks-input.txt b/editors-picks-input.txt index b365994..4c0954b 100644 --- a/editors-picks-input.txt +++ b/editors-picks-input.txt @@ -21,4 +21,5 @@ album:250986538 album:509761344 album:15621057 album:103897783 -album:151728406 \ No newline at end of file +album:151728406 +album:199412873 \ No newline at end of file diff --git a/js/ui.js b/js/ui.js index dd35ddd..21e8316 100644 --- a/js/ui.js +++ b/js/ui.js @@ -546,7 +546,7 @@ export class UIRenderer { ) { let size = '320'; if (this.currentPage === 'search' || className === 'track-item-cover') { - size = '80'; + size = type === 'album' ? '1280' : '80'; } else if (type === 'artist') { size = '160'; } diff --git a/lhci.yml b/lhci.yml new file mode 100644 index 0000000..108bfb4 --- /dev/null +++ b/lhci.yml @@ -0,0 +1,27 @@ +target: static +assert: + assertions: + # Performance + - first-contentful-paint:warn < 3000 + - interactive:warn < 7000 + - lcp-lazy-loaded:off + - speed-index:warn < 5000 + + # Accessibility (warn if below 85) + - accessibility:warn < 85 + + # Best Practices + - best-practices:warn < 85 + + # SEO + - seo:warn < 85 + +upload: + target: temporary-public-storage + +collect: + numberOfRuns: 3 + settings: + preset: desktop + # Headless Chrome for CI + chromeFlags: '--no-sandbox --disable-gpu' diff --git a/package.json b/package.json index 9d9f41a..2e1774f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,9 @@ "lint:css": "stylelint \"**/*.css\"", "lint:html": "htmlhint \"**/*.html\" --ignore=\"dist/**,legacy/**,node_modules/**\"", "lint": "bun run lint:js && bun run lint:css && bun run lint:html", - "format": "prettier --write ." + "format": "prettier --write .", + "lhci": "lhci", + "lhci:autorun": "npm run build && lhci autorun" }, "repository": { "type": "git", @@ -33,6 +35,7 @@ "devDependencies": { "@capacitor/assets": "^3.0.5", "@capacitor/cli": "^8.2.0", + "@lhci/cli": "^0.14.0", "@testing-library/dom": "^10.4.1", "@types/node": "^25.3.5", "@vitest/browser-playwright": "^4.1.2",