feat: implement personalized Neighborhood clustering for authenticated users#89
Open
Pruthviangadi wants to merge 2 commits into
Open
feat: implement personalized Neighborhood clustering for authenticated users#89Pruthviangadi wants to merge 2 commits into
Pruthviangadi wants to merge 2 commits into
Conversation
|
@Pruthviangadi is attempting to deploy a commit to the Samuel's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
This PR implements the "Neighborhood" feature, which personalizes the Git City layout for authenticated users by:
User Centering: The logged-in user's building is now prioritized and placed at the city's origin
(0, 0, 0)
.
Social Graph Clustering: We now fetch the user's GitHub followers and following who have joined Git City and cluster them in a dedicated neighborhood surrounding the user.
Dynamic Layout Engine: Updated
generateCityLayout
to seamlessly merge neighborhood connections into the city pool while preventing any duplicates or overlaps with standard "Downtown" or "District" buildings.
Real-time Integration: The frontend now dynamically triggers city regeneration as soon as social connection data is retrieved, ensuring immediate visual feedback upon login.
Related issue
Implements the community-requested "Neighborhoods" and "District Zoning" feature to provide a more personalized player experience.
Screenshots
(N/A - This PR provides the core backend API, layout algorithms, and frontend integration logic)
Checklist
npm run lint passes
Tested locally
No secrets or .env values committed