Repository navigation
fix(rules): expose LCP preload evidence - #1127
WilliamK112 wants to merge 1 commit into
Conversation
d964ee6 to
fc7fb8b
Compare
|
Thanks, the rule side is clean: the bound is right (3 candidates, 10 preloads plus a remainder), the keys do not collide with the engine's reserved detail keys, the null-document path is tested, and the existing href/imagesrcset tests keep a preloaded hero passing. A few things before merge:
A test in |
fc7fb8b to
07e70ea
Compare
|
Addressed at current head 7cdf8f8: details now name the page and always carry additionalPreloads; data/blob preload evidence is omitted; reported candidate/preload URLs are clamped; the grouped-report behavior is documented and covered by a two-page report test; and the unrelated description reflow is removed. The branch is rebased onto current main, and the formatting failure is fixed. The focused 22-test set, CLI typecheck, and repository-wide format check pass; the earlier full report and rules suites (including 7,559 rule tests) also passed. |
22c2c1b to
7cdf8f8
Compare
Signed-off-by: Ching-Wei Kang <[email protected]>
7cdf8f8 to
6150c7e
Compare
|
Merged: landed in the v0.0.134 batch (#1149), main commits 4e891ec. Thank you @WilliamK112, naming the candidate and the preloads it was compared against finally makes the lcp-preload hint fixable, and the byte clamp and two-page report test closed the gaps cleanly. (Nik) |
Summary
items, while adding boundeddetailswith each unmatched candidate’s resolved URLhrefandimagesrcsetURLs used for comparison, capped with an explicit remainder countrule_results, and document the JSON/report behaviorCloses #1074
Tests
npx -y [email protected] test ./apps/cli/tests/rules/lcp-hints.test.ts ./packages/rules/tests/cwv-reuse.test.ts ./packages/rules/tests/lcp-fetchpriority.test.tsnpx -y [email protected] test ./packages/rules/tests/noscript-content.test.tsnpx -y [email protected] run typecheckinpackages/core-contracts,packages/rules, andapps/clinpx -y [email protected] run format:checkandnpx -y [email protected] run lintinapps/clinpx -y [email protected] run docs:checkrule_resultsround trip retained candidate and preload detailsdetect-secrets-hook1.5.0 on changed filesDocs: Updated
docs/rules/perf/lcp-hints.mdx. Skill: none.