Skip to content
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

[Minor] Add Source and Image Component + other small performance improvements. #67

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

bertybot
Copy link
Collaborator

@bertybot bertybot commented Feb 9, 2024

Overview

Added Source component and exposed Image component so different images can be displayed at different viewports. Exposing the Image component also allows more fine-grained control.

Other changes

  • Set blurryPlaceholder default to off. Since the blurryPlaceholder adds an extra network request, and therefore degrades performance. It should only be added when the use case demands it. I think in most cases people will not need the blurryPlaceholder since images load rather quickly when there is a small handful and therefore it should default to off.

  • small code improvements

Notes

Really couldn't test the demo because I do not have a Hygraph token if I could get that Ill make sure it works.

make code more efficent
set blurryPlaceholder to false
Copy link

vercel bot commented Feb 9, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @ObieMunoz on Vercel.

@ObieMunoz first needs to authorize it.

Copy link

vercel bot commented Feb 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graph-image ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 8:15pm

@ObieMunoz
Copy link
Owner

Hi @bertybot2,

These changes look good overall. Please update the associated unit tests that are failing.

@ObieMunoz
Copy link
Owner

Hi @bertybot2,

These changes look good overall. Please update the associated unit tests that are failing.

CC: @bertybot

@ObieMunoz ObieMunoz assigned ObieMunoz and bertybot and unassigned ObieMunoz Feb 9, 2024
@ObieMunoz
Copy link
Owner

@bertybot The automated vercel deployment is approved, you should be able to see the demo now. I can get you the api key if you'd like it locally.

@bertybot
Copy link
Collaborator Author

bertybot commented Feb 9, 2024

Hi @bertybot2,

These changes look good overall. Please update the associated unit tests that are failing.

Whoops forgot to update the call when I re-added blur.

Copy link
Owner

@ObieMunoz ObieMunoz left a comment

Choose a reason for hiding this comment

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

lgtm

@ObieMunoz ObieMunoz merged commit 40823a7 into ObieMunoz:main Feb 9, 2024
3 checks passed
@ObieMunoz
Copy link
Owner

released in #68

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.

3 participants