fix: Family notes API-first refactor + params async#538
Merged
Conversation
- Delete REST API routes (/api/family-notes) - Delete server-side GraphQL client (lib/graphql/client.ts) - Convert components to use Apollo Client directly - Add family-notes GraphQL queries and mutations - All data flows through /api/graphql endpoint This aligns with the API-first architecture where client code uses Apollo Client to query GraphQL directly, not REST wrappers.
pmilano1
pushed a commit
that referenced
this pull request
Feb 14, 2026
## [1.126.13](v1.126.12...v1.126.13) (2026-02-14) ### Bug Fixes * Family notes API-first refactor + params async ([#538](#538)) ([1d7085f](1d7085f))
Owner
Author
|
🎉 This PR is included in version 1.126.13 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Fixes the family notes 404 error and refactors to follow the API-first architecture.
Root Cause
Changes
Fixed Page Bug
API-First Refactor
/api/family-notes/REST routeslib/graphql/client.ts(server-side HTTP client)lib/graphql/queries/family-notes.tsArchitecture
All client code now goes through
/api/graphqlusing Apollo Client:FamilyNotesClient→ ApollouseQuerywithGET_FAMILY_RESEARCH_NOTESFamilyNoteViewerClient→ ApollouseQuery+useMutationNo server-side API routes making HTTP calls to other server-side routes.
Fixes the 404 and aligns with API-first design.
🤖 Generated with Claude Code