Skip to content

feat: add cwv-trends audit#2112

Open
DianaManolache wants to merge 4 commits intomainfrom
001-cwv-trends-audit
Open

feat: add cwv-trends audit#2112
DianaManolache wants to merge 4 commits intomainfrom
001-cwv-trends-audit

Conversation

@DianaManolache
Copy link

No description provided.

Diana Manolache and others added 3 commits March 9, 2026 15:44
- Implement StepAudit handler with two steps
- Step 1: Read 28 days of S3 data, calculate CWV trends, persist
- Step 2: Sync device-specific opportunities and suggestions
- Add S3 data reading with fail-on-missing logic
- Add URL filtering by device type and pageviews threshold
- Add CWV categorization (Good/NI/Poor) based on thresholds
- Add trend data generation (28-day percentages)
- Add device-specific opportunity matching
- Register handler in HANDLERS map
- Add repo-specific spec document

Implements Phase 2 tasks for 001-cwv-trends-audit

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add handler tests with S3 mocking and CWV categorization
- Add opportunity data mapper tests
- Add opportunity sync tests
- Add constants tests
- Test coverage includes:
  - S3 data reading (success and failure scenarios)
  - Device type filtering (mobile/desktop)
  - CWV categorization (Good/NI/Poor thresholds)
  - URL filtering (pageviews threshold)
  - Percentage calculations
  - Null metric handling
  - Device-specific opportunity matching
  - Suggestion syncing with pageview ranking

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions
Copy link

This PR will trigger a minor release when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant