Skip to content

feat: implement personalized Neighborhood clustering for authenticated users#89

Open
Pruthviangadi wants to merge 2 commits into
srizzon:mainfrom
Pruthviangadi:main
Open

feat: implement personalized Neighborhood clustering for authenticated users#89
Pruthviangadi wants to merge 2 commits into
srizzon:mainfrom
Pruthviangadi:main

Conversation

@Pruthviangadi

Copy link
Copy Markdown

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

@vercel

vercel Bot commented Mar 26, 2026

Copy link
Copy Markdown

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant