Skip to content

chore: update preview screenshots with optimized multi-format images#149

Merged
ManukMinasyan merged 2 commits intomainfrom
chore/update-preview-screenshots
Feb 23, 2026
Merged

chore: update preview screenshots with optimized multi-format images#149
ManukMinasyan merged 2 commits intomainfrom
chore/update-preview-screenshots

Conversation

@ManukMinasyan
Copy link
Copy Markdown
Contributor

@ManukMinasyan ManukMinasyan commented Feb 23, 2026

  • Replace JPG hero images with AVIF/WebP/PNG using element for progressive enhancement (AVIF: 90KB, WebP: 97KB, PNG: 140KB)
  • Update GitHub README screenshot with optimized PNG (145KB)
  • All images captured at 2x Retina (2880x1800) for crisp rendering

- Replace JPG hero images with AVIF/WebP/PNG using <picture> element
  for progressive enhancement (AVIF: 90KB, WebP: 97KB, PNG: 140KB)
- Update GitHub README screenshot with optimized PNG (145KB)
- All images captured at 2x Retina (2880x1800) for crisp rendering
- Add MCP case to CreationSource enum to fix 500 error
Copilot AI review requested due to automatic review settings February 23, 2026 22:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes the landing page hero section by implementing progressive image enhancement with modern formats (AVIF/WebP/PNG) and adds the MCP (Model Context Protocol) enum case to prevent 500 errors when records are created via MCP tool calls.

Changes:

  • Replaced single JPG preview images with responsive <picture> element supporting AVIF (90KB), WebP (97KB), and PNG (140KB) fallbacks
  • Updated JavaScript theme-switcher to handle multiple source formats across light/dark modes
  • Added CreationSource::MCP enum case with proper color ('gray') and label mappings

Reviewed changes

Copilot reviewed 1 out of 10 changed files in this pull request and generated no comments.

File Description
resources/views/home/partials/hero.blade.php Replaced <img> with <picture> element for progressive enhancement; updated theme-switching JS to manage AVIF/WebP/PNG sources
app/Enums/CreationSource.php Added MCP enum case with complete match expression coverage for getColor() and getLabel() methods

@ManukMinasyan ManukMinasyan merged commit 658a3b1 into main Feb 23, 2026
9 checks passed
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