Skip to content

audit: production-readiness pass 3 — image optimization, Lighthouse C…#31

Merged
BEKO2210 merged 1 commit intomainfrom
claude/fix-apple-camera-barcode-5DtQy
Mar 9, 2026
Merged

audit: production-readiness pass 3 — image optimization, Lighthouse C…#31
BEKO2210 merged 1 commit intomainfrom
claude/fix-apple-camera-barcode-5DtQy

Conversation

@BEKO2210
Copy link
Copy Markdown
Owner

@BEKO2210 BEKO2210 commented Mar 9, 2026

…I, tests

Image Storage Optimization:

  • compressImage now uses WebP with JPEG fallback (quality 0.7)
  • Max dimension increased to 1024px (from 800px)
  • 10MB input size guard rejects oversized files before processing
  • ProductForm shows user-friendly error on oversized images

Security:

  • video elements exempt from touch-action:pan-y (fixes scanner touch)
  • Added 8 CSV injection protection tests covering =, +, -, @, tab, CR

Test Coverage:

  • compressImage: 10MB rejection test, small file acceptance test
  • CSV injection: dangerous chars, normal strings, semicolons, quotes, null
  • Total: 51 → 59 tests, all passing

Lighthouse CI:

  • New .github/workflows/lighthouse.yml workflow
  • lighthouserc.json with performance >= 90 assertion
  • Runs on push/PR to main against static dist build

https://claude.ai/code/session_0169CbohMRqddD1LjPg8FmXf

…I, tests

Image Storage Optimization:
- compressImage now uses WebP with JPEG fallback (quality 0.7)
- Max dimension increased to 1024px (from 800px)
- 10MB input size guard rejects oversized files before processing
- ProductForm shows user-friendly error on oversized images

Security:
- video elements exempt from touch-action:pan-y (fixes scanner touch)
- Added 8 CSV injection protection tests covering =, +, -, @, tab, CR

Test Coverage:
- compressImage: 10MB rejection test, small file acceptance test
- CSV injection: dangerous chars, normal strings, semicolons, quotes, null
- Total: 51 → 59 tests, all passing

Lighthouse CI:
- New .github/workflows/lighthouse.yml workflow
- lighthouserc.json with performance >= 90 assertion
- Runs on push/PR to main against static dist build

https://claude.ai/code/session_0169CbohMRqddD1LjPg8FmXf
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@BEKO2210 BEKO2210 merged commit 13c54fe into main Mar 9, 2026
0 of 2 checks passed
@BEKO2210 BEKO2210 deleted the claude/fix-apple-camera-barcode-5DtQy branch March 9, 2026 20:27
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.

2 participants