Skip to content
Back to snapcart-api report
Code QualityLow

Decorative Images Missing Alt

src/admin/hero.tsx:44

What's going on

Marketing images are rendered without alt text, failing non-text contrast and screen-reader guidance.

Why it matters

Every omitted alt is a small accessibility regression for the admin dashboard.

src/admin/hero.tsx:44

Recommended Fix

Replace the inline query with a parameterized statement and validate the id before it ever reaches the database. A regression test is generated alongside the patch.

Before
1<img src="/hero.png" />
After
1<img src="/hero.png" alt="Snapcart launch hero" />
  1. Uploaddone
  2. Analyzedone
  3. Finddone
  4. Explainactive
  5. Fixupcoming
  6. Testupcoming
  7. Verifyupcoming