-
Notifications
You must be signed in to change notification settings - Fork 0
fix(frontend): ensure blog author data populates #654
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
Conversation
Coverage Report for Storybook Tests
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this 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 updates frontend post queries to ensure author data is available for blog card rendering, and replaces the clinic landing page’s blog fixtures with real Payload-backed posts so its blog section matches the homepage feed.
Changes:
- Add
authorsto Payloadpostsselects on the homepage and blog listing pages to ensurepopulatedAuthorscan be derived consistently. - Fetch latest posts from Payload on the clinic partners landing page and map them via
normalizePostforBlogCardCollection.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/app/(frontend)/posts/page/[pageNumber]/page.tsx | Adds authors to the paginated posts query selection. |
| src/app/(frontend)/posts/page.tsx | Adds authors to the main blog listing query selection. |
| src/app/(frontend)/partners/clinics/page.tsx | Replaces blog fixtures with a Payload find query and normalizes posts for BlogCardCollection. |
| src/app/(frontend)/page.tsx | Adds authors to the homepage posts query selection. |
Coverage Report for Integration Tests
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Summary: Load post authors in blog queries so author cards render consistently, and align the clinic blog section with the homepage feed.
Changes:
authorsin post queries for the homepage and blog listing pagesWhy:
authorswas not selected.Testing:
Related: None
Breaking changes: None