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

Render Contentful assets #279

Merged
merged 35 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2e67a68
initial image rendering
Benaiah Jul 3, 2023
32d682f
show error messages in failed Contentful GraphQL requests
Benaiah Jul 3, 2023
332dc15
remove console.log
Benaiah Jul 3, 2023
8ef5a68
add getErrorMessageFromResponse
Benaiah Jul 3, 2023
6e9c433
blurhash API and frontend implementation and asset hyperlink rendering
Benaiah Jul 4, 2023
b9df2ce
move api to /v1/; cache blurhashes in redis
Benaiah Jul 4, 2023
4316730
fix lint error
Benaiah Jul 10, 2023
4976487
add CONTENTFUL_IMAGE_API_ENDPOINT to .env.example
Benaiah Jul 10, 2023
230c344
tests for image asset rendering in ContentfulRichText
Benaiah Jul 10, 2023
f4ae464
render non-image assets properly, and test it
Benaiah Jul 10, 2023
4a48bc4
improve ContentfulRichText tests
Benaiah Jul 11, 2023
5ab8935
export some types
Benaiah Jul 11, 2023
9e7c576
make sure we're actually passing jpegs to jpeg-js
Benaiah Jul 11, 2023
8b70d21
simplify some code
Benaiah Jul 11, 2023
0d4d1a3
updates to work with new image changes from main
Benaiah Jul 21, 2023
79a8b2e
fix lint error
Benaiah Jul 21, 2023
4c8976d
fix test error
Benaiah Jul 21, 2023
d191b47
respond to review
Benaiah Jul 26, 2023
c426764
remove unnecessary eslint disable
Benaiah Jul 26, 2023
2a5c5f1
add some comments
Benaiah Jul 26, 2023
aa3cdde
add missing file
Benaiah Jul 27, 2023
7eb1a2a
get contentful error responses that use "errors"
Benaiah Jul 27, 2023
fcc80db
fix getErrorsMessage
Benaiah Jul 27, 2023
8574f0b
create map of URLs to metadata IDs alongside the pageMetadataMap
Benaiah Jul 27, 2023
ae9e28f
allow variables to be passed in graphql queries
Benaiah Jul 27, 2023
e4fd63c
add ExtractQueryType to allow extracting types from deep in queries
Benaiah Jul 28, 2023
07ffa13
make ContentfulRichText set context for its children reactively
Benaiah Jul 28, 2023
81b716d
render service group page assets
Benaiah Jul 31, 2023
6448a51
small refactors to page
Benaiah Jul 31, 2023
827e0c4
blurhashes & Image component for all images on service group page
Benaiah Aug 1, 2023
9684e55
fix types
Benaiah Aug 1, 2023
2b38b88
fix test
Benaiah Aug 1, 2023
0402fc1
handle redis connection errors better
Benaiah Aug 1, 2023
f64cd8b
review suggestions; improve responsive images
Benaiah Aug 2, 2023
f75d45d
cleanup; fix tests
Benaiah Aug 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ CONTENTFUL_DEFAULT_ENVIRONMENT=""
CONTENTFUL_DELIVERY_API_TOKEN=""
CONTENTFUL_PREVIEW_API_TOKEN=""
CONTENTFUL_SPACE_ID=""
CONTENTFUL_IMAGE_API_ENDPOINT="https://images.ctfassets.net"
VERCEL=""
VERCEL_ENV=""
VERCEL_GIT_REPO_OWNER=""
VERCEL_GIT_REPO_SLUG=""
VERCEL_GIT_COMMIT_SHA=""
VERCEL_GIT_PULL_REQUEST_ID=""
KV_URL="redis://localhost"
Loading