-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UXIT-1415] Refactor Dynamic Images #700
Merged
Merged
Conversation
This file contains 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
mirhamasala
force-pushed
the
mm/refactor-dynamic-images
branch
from
October 10, 2024 12:35
4ffd7d3
to
0742d5c
Compare
mirhamasala
force-pushed
the
mm/refactor-dynamic-images
branch
from
October 10, 2024 14:50
8c38e10
to
ab9a05f
Compare
Reviewed live with @CharlyMartin & @barbaraperic - Thank you. 🙌🏼❤️🙌🏼 |
1 task
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
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.
📝 Description
This pull request focuses on replacing the
DynamicImage
andStaticImage
components with thenext/image
component to simplify image handling across the codebase. The most important changes include updating various components to usenext/image
, removing the obsoleteDynamicImage
andStaticImage
components, and adjusting image properties accordingly.🛠️ Key Changes
Image Handling Updates:
src/app/_components/ArticleHeader.tsx
: ReplacedDynamicImage
withnext/image
and updated image properties to handle fallback scenarios. [1] [2]src/app/_components/Card.tsx
: Updated theCard
component to usenext/image
and adjusted image properties for better handling of dynamic and static images. [1] [2]src/app/_components/PageHeader.tsx
: ReplacedDynamicImage
andStaticImage
withnext/image
, and refactored thePageHeader.Image
component for simplified image handling. [1] [2] [3] [4] [5]Component Removals:
src/app/_components/DynamicImage.tsx
: Removed theDynamicImage
component as it is no longer needed.src/app/_components/StaticImage.tsx
: Removed theStaticImage
component as it is no longer needed.Other Updates:
src/app/_components/MarkdownContent.tsx
: ReplacedDynamicImage
withnext/image
for rendering markdown images. [1] [2] [3]StaticImageProps
to point to the new location insharedProps/imageType
. [1] [2]These changes help to streamline image handling, reduce redundancy, and improve maintainability across the project.
📌 To-Do Before Merging
Card
when no image is provided (See/about
reports vs. Fallbacks forFeaturedEcosystemProjects
)MarkdownContent