improvement(landing): optimize hero and customer image loading - #7679
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR improves landing-page image delivery without changing application behavior:
Confidence Score: 5/5The PR appears safe to merge; the responsive selection, breakpoint-scoped preload, caching, and customer-card priority behavior align with their layouts and intended performance goals. No actionable correctness, security, or repository-rule violations remain after checking the image-loading paths, responsive sizing calculations, component callers, and generation workflow.
|
| Filename | Overview |
|---|---|
| apps/sim/app/(landing)/components/hero/components/hero-platform-stage/hero-platform-stage.tsx | Adds a breakpoint-scoped responsive artwork preload and serves pre-encoded AVIF/WebP candidates. |
| scripts/generate-hero-artwork.ts | Generates hashed responsive artwork and an associated TypeScript source manifest using the established artwork workflow. |
| apps/sim/app/(landing)/customers/page.tsx | Passes grid-accurate image sizes and prioritizes the first customer story that is actually rendered. |
| apps/sim/app/(landing)/customers/components/customer-story-card/customer-story-card.tsx | Propagates configurable image sizing and preload priority with a layout-appropriate default. |
| apps/sim/next.config.ts | Applies immutable caching to the new content-hashed hero artwork directory. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
V[Viewport and device pixel ratio] --> M{Viewport at least 1024px?}
M -->|No| MW[Render mobile workflow]
M -->|Yes| P[Preload selected AVIF candidate]
P --> S[Select AVIF or WebP from responsive srcset]
S --> C[Serve content-hashed asset with immutable cache]
D[Published customer stories] --> F[Filter stories with content]
F --> G[Render responsive card grid]
G --> Q[Preload first rendered card image]
Reviews (1): Last reviewed commit: "improvement(landing): optimize hero and ..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Checklist