fix(home): show favorite hearts on Home grid for authenticated users - #68
Merged
devhasson merged 1 commit intoJun 25, 2026
Hidden character warning
The head ref may contain hidden characters: "65-issue-front-25-historico-cora\u00e7\u00e3o-de-favorito-n\u00e3o-aparece-na-home-s\u00f3-na-busca"
Conversation
Thread isAuthed from the server page down to DiscoverGrid, which now derives favoritedKeys via useProfile (same source/queryKey as Search) and passes them to SearchResultsGrid in all rendering paths. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fernandaclass
approved these changes
Jun 25, 2026
There was a problem hiding this comment.
Pull request overview
This PR ensures the Home “Discover” grid can render favorite-heart indicators for authenticated users by threading an isAuthed signal from the server-rendered Home page down into the client grid, where favorite keys are derived from the profile query and passed into the shared results grid.
Changes:
- Make the Home page server component async and derive
isAuthedviagetMe(). - Update
HomeDiscover/DiscoverGridto acceptisAuthedand use it to conditionally enableuseProfile. - Compute
favoritedKeysfrom the profile’sfavoritosand pass them toSearchResultsGridacross all discover rendering paths (genre + trending/error fallback).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/app/page.tsx | Fetches current user server-side and passes isAuthed into the Home discover section. |
| src/modules/titles/components/HomeDiscover.tsx | Accepts isAuthed and forwards it to DiscoverGrid. |
| src/modules/titles/components/DiscoverGrid.tsx | Conditionally loads profile favorites and passes favoritedKeys to SearchResultsGrid in all paths. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot stopped work on behalf of
devhasson due to an error
June 25, 2026 18:29
eduoncode
approved these changes
Jun 25, 2026
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.
Thread isAuthed from the server page down to DiscoverGrid, which now derives favoritedKeys via useProfile (same source/queryKey as Search) and passes them to SearchResultsGrid in all rendering paths.