Skip to content

Docs/improve contributing setup 2610 - #2637

Closed
Asritha11111 wants to merge 6 commits into
Priyanshu-byte-coder:mainfrom
Asritha11111:docs/improve-contributing-setup-2610
Closed

Docs/improve contributing setup 2610#2637
Asritha11111 wants to merge 6 commits into
Priyanshu-byte-coder:mainfrom
Asritha11111:docs/improve-contributing-setup-2610

Conversation

@Asritha11111

Copy link
Copy Markdown
Contributor

Summary

This PR adds comprehensive local development setup instructions and a troubleshooting guide to CONTRIBUTING.md. These additions will help new contributors (especially GSSoC participants) set up the project quickly and resolve common issues without needing to ask for help.

Closes #2610


Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that changes existing behavior)
  • 📝 Documentation update
  • ♻️ Refactor / code cleanup (no functional change)
  • ⚡ Performance improvement
  • 🔒 Security fix
  • 🧪 Tests only

What Changed

  • Added "Verifying Your Setup" section with validation commands:

    • Dev server check (curl)
    • Environment variable validation (pnpm run check-env)
    • TypeScript type checking (pnpm run type-check)
    • Test execution (pnpm run test)
    • Production build verification (pnpm run build)
  • Added "Troubleshooting Common Issues" section with solutions for:

    • pnpm install permission errors (macOS/Linux/Windows)
    • Missing .env.local file
    • Supabase connection errors
    • GitHub OAuth "redirect_uri mismatch"
    • Port 3000 already in use (macOS/Linux/Windows commands)
    • TypeScript errors during build/type-check
    • Dependency conflicts after pulling changes
    • Missing metrics/data in the app
    • NEXTAUTH_SECRET or ENCRYPTION_KEY not set (with openssl commands)
    • "Module not found" errors
  • Updated Table of Contents to include the new sections

  • Added GSSoC Issue Labels section with level points


How to Test

  1. Open CONTRIBUTING.md in a Markdown previewer (VS Code preview or GitHub)
  2. Check that all headings render correctly
  3. Verify the Table of Contents links work
  4. Ensure all code blocks have proper syntax highlighting
  5. Confirm all commands are correct and complete

Expected result: The file renders cleanly with all new sections visible and properly formatted.


Checklist

  • Linked the related issue above
  • Self-reviewed my own diff
  • No unnecessary console.log, debug code, or commented-out blocks
  • npm run lint passes locally
  • No TypeScript errors (npm run type-check)
  • Added or updated tests where applicable
  • Updated documentation / comments if behavior changed

Accessibility (UI changes only)

  • Keyboard navigation works correctly
  • Color contrast meets WCAG AA standard
  • ARIA labels / roles added where needed
  • Tested on mobile / responsive layout

Additional Context

This PR addresses the most common setup questions asked by new contributors in the community. The troubleshooting section covers 10+ frequent issues that contributors have reported during onboarding. The verification section helps contributors confirm their setup is correct before starting development, reducing the number of "my setup isn't working" questions.

Copilot AI review requested due to automatic review settings June 21, 2026 07:32
@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:docs GSSoC type bonus: documentation (+5 pts) type:performance GSSoC type bonus: performance (+15 pts) gssoc26 GSSoC 2026 contribution labels Jun 21, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Umbrella-io — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR primarily expands contributor documentation to improve local setup troubleshooting, while also introducing a small API change in dateUtils (a new exported alias).

Changes:

  • Added a new “Troubleshooting Common Issues” section and updated the Table of Contents/section numbering in CONTRIBUTING.md.
  • Updated various setup/troubleshooting commands and guidance (with some OS-specific instructions).
  • Added dateDiff as an alias export for dateDiffDays in src/lib/dateUtils.ts.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
CONTRIBUTING.md Adds a troubleshooting section and renumbers/updates TOC links to help new contributors resolve common setup problems.
src/lib/dateUtils.ts Exports dateDiff as an alias for dateDiffDays to address an import mismatch.
Comments suppressed due to low confidence (1)

src/lib/dateUtils.ts:28

  • This PR is marked/documented as a docs-only change (setup + troubleshooting), but this adds a new exported API (dateDiff) in src/lib/dateUtils.ts and references a different issue (#1879). Consider either (a) updating the PR description/title/scope to include this code change, or (b) moving this alias into a separate PR tied to #1879 to avoid mixing concerns.
 * Calculates the start of the week (Monday) in UTC for the given date.
 * Adjusts for timezone differences to ensure consistent weekly grouping.

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

Comment thread CONTRIBUTING.md Outdated

**Solution:**

* **macOS/Linux:** Try `sudo pnpm install` or fix npm permissions:
Comment thread CONTRIBUTING.md
Comment on lines +252 to +255
Check that you're running the command from the project root directory.

If using a monorepo, make sure you're in the correct workspace.

Comment thread CONTRIBUTING.md
Comment on lines +136 to +138
```bash
cp .env.example .env.local
```
Comment thread CONTRIBUTING.md
Comment on lines +213 to +217
```bash
# Clean install
rm -rf node_modules pnpm-lock.yaml
pnpm install
```
Comment thread CONTRIBUTING.md
Comment on lines +258 to +261
```bash
rm -rf .next
pnpm dev
```
Comment thread CONTRIBUTING.md Outdated
Comment on lines +42 to +52
## 📋 Table of Contents

1. [Prerequisites](#1-prerequisites)
2. [Local Development Setup](#2-local-development-setup)
3. [Environment Variables Guide](#3-environment-variables-guide)
4. [Code Style & Standards](#4-code-style--standards)
5. [Branch Naming Conventions](#5-branch-naming-conventions)
6. [Commit Guidelines](#6-commit-guidelines)
7. [Issue Labels & GSSoC Levels](#7-issue-labels--gssoc-levels)
8. [Pull Request (PR) Checklist](#8-pull-request-pr-checklist)
9. [Self-Hosting & Deployment](#9-self-hosting--deployment)
4. [Troubleshooting Common Issues](#4-troubleshooting-common-issues)
5. [Code Style & Standards](#5-code-style--standards)
6. [Branch Naming Conventions](#6-branch-naming-conventions)
7. [Commit Guidelines](#7-commit-guidelines)
8. [Issue Labels & GSSoC Levels](#8-issue-labels--gssoc-levels)
9. [Pull Request (PR) Checklist](#9-pull-request-pr-checklist)
10. [Self-Hosting & Deployment](#10-self-hosting--deployment)
@Priyanshu-byte-coder

Copy link
Copy Markdown
Owner

CI is failing on this PR. Please fix the TypeScript/test errors before we can merge. Run npm run typecheck and npm test locally to reproduce.

@Asritha11111
Asritha11111 deleted the docs/improve-contributing-setup-2610 branch June 23, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:docs GSSoC type bonus: documentation (+5 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] Add setup instructions for local environment in CONTRIBUTING.md

3 participants