feat: security headers, coverage gates, and web vitals #115
Reference in New Issue
Block a user
Delete Branch "feat/security-headers-coverage-performance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
@vitest/coverage-v8(report-only, no gate yet).web_vitalsevents with metric name, value, rating, and page path.Test plan
pytest tests/test_security_headers.py -v— 3 tests for header presence, CSP report-only, HSTS prod-only--cov-fail-under=80npm run test:coveragegenerates coverage reportnpm run buildsucceeds with web-vitals wired inweb_vitalsevents appear in PostHog after page loadNote:
npm installneeded to pick up@vitest/coverage-v8andweb-vitals(added to package.json, lockfile update pending).🤖 Generated with Claude Code
🚅 Deployed to the patherly-pr-115 environment in selfless-grace