Skip to content

Self nomination branch - #84

Merged
sajeetharan merged 9 commits into
sajeetharan:mainfrom
BabuBahir:self-nomination-branch
Aug 8, 2026
Merged

Self nomination branch#84
sajeetharan merged 9 commits into
sajeetharan:mainfrom
BabuBahir:self-nomination-branch

Conversation

@BabuBahir

@BabuBahir BabuBahir commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Resolves #27

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

Port the 'Add me to DevGlobe' nomination feature to the new structure:
- api/nominate.js -> app/api/nominate/route.js (Next.js App Router)
- api/lib/nominate.js -> lib/nominate.js
- src/components/AddMeModal.jsx/.module.css -> components/
- Wire AddMeModal + 'Add Me To Globe' button into app/page.jsx and components/Header.jsx
- Keep review-nominations script; drop Vite-era server.js/src/api files
@BabuBahir
BabuBahir marked this pull request as draft August 7, 2026 11:36
@BabuBahir

Copy link
Copy Markdown
Contributor Author

I was able to add me via UI and Nominate @sajeetharan

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

Implements the “Add me to DevGlobe” self-nomination flow from Issue #27 by adding a header CTA + modal form, a Next.js API endpoint to validate/store nominations in Cosmos DB, and an admin CLI script to review and promote nominations into the main developers dataset.

Changes:

  • Added “Add Me To Globe” button in the header that opens a modal to submit GitHub username + optional location.
  • Implemented POST /api/nominate and shared nomination logic (lib/nominate.js) to validate GitHub usernames and store pending nominations in Cosmos DB.
  • Added an admin review CLI (scripts/review-nominations.js) and wired it into package.json.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
styles/main.css Adds button variants for the new “Add Me” CTA and primary modal actions.
components/Header.jsx Adds “Add Me To Globe” header button and new onAddMe prop.
components/AddMeModal.jsx Implements the self-nomination modal UI and client-side submit behavior.
components/AddMeModal.module.css Styles for the nomination modal overlay/content.
app/page.jsx Wires modal open/close state into the home page and passes handler to header.
app/api/nominate/route.js Adds API endpoint that delegates to shared nomination logic.
lib/nominate.js Shared server-side nomination validation + Cosmos storage logic.
scripts/review-nominations.js Admin CLI for listing/approving/rejecting nominations; approves into developers container.
package.json Adds review-nominations script entry.
.gitignore Ignores dist/ output directory.

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

Comment thread lib/nominate.js Outdated
Comment thread scripts/review-nominations.js
Comment thread components/Header.jsx Outdated
Comment thread scripts/review-nominations.js
@BabuBahir

BabuBahir commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the changes and tested locally , was able to nominate and approve user @sajeetharan
image

@BabuBahir
BabuBahir marked this pull request as ready for review August 7, 2026 14:24
@sajeetharan

Copy link
Copy Markdown
Owner

Thanks for the PR @BabuBahir , looks good! Expecting more contributions and invite other collaborators!

@sajeetharan
sajeetharan merged commit 75ab841 into sajeetharan:main Aug 8, 2026
1 of 2 checks passed
@BabuBahir
BabuBahir deleted the self-nomination-branch branch August 8, 2026 08:12
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.

Add me — developer self-nomination form

3 participants