Skip to content

Add city rankings and city rank badges - #81

Merged
sajeetharan merged 1 commit into
sajeetharan:mainfrom
pradipNP:feature-city-rankings
Aug 7, 2026
Merged

Add city rankings and city rank badges#81
sajeetharan merged 1 commit into
sajeetharan:mainfrom
pradipNP:feature-city-rankings

Conversation

@pradipNP

@pradipNP pradipNP commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR completes the city-level ranking portion of #25 and implements the follow-up issue #80.

Changes

  • Added city extraction and normalization utilities
  • Added city ranking calculation in the existing ranking pipeline
  • Added city rank badges to developer detail panels
  • Added city rank information to share cards
  • Added styling for city rank badges

Notes

  • Reuses the existing ranking infrastructure in lib/ranking.js
  • Preserves global and country ranking behavior
  • No API, database, or pipeline changes required

Closes #80

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

@pradipNP is attempting to deploy a commit to the sajeetharan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@pradipNP

pradipNP commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi @sajeetharan,

This PR implements the city-level ranking portion that remained after the country-ranking MVP.

I've tested the changes locally and the build passes successfully.

Feedback is welcome. Thanks for reviewing!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds city-level ranking support alongside existing global/country ranks, and surfaces city rank badges in the developer detail UI and share card rendering.

Changes:

  • Added city extraction + normalization helpers (extractCity, normalizeCity, cityKey) alongside existing country utilities.
  • Extended the ranking pipeline to compute per-city ranks (scoped by country + city) and attach cityRank/cityTotal/city onto developer records.
  • Updated UI styling and rendering to display city rank badges in the detail panel and include a city rank block on generated share cards.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
styles/main.css Adds stacked badge layout + city badge styling.
lib/ranking.js Computes and merges city rank metadata into developer records.
lib/country.js Adds city parsing/normalization utilities used by ranking.
components/DetailPanel.jsx Renders city rank badge under the country badge.
app/api/card/route.jsx Adds optional city rank block and adjusts rank card widths accordingly.

馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/country.js
@sajeetharan
sajeetharan merged commit e76ec44 into sajeetharan:main Aug 7, 2026
2 of 3 checks passed
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.

City-level rankings and leaderboard breakdowns

3 participants