Skip to content

Remove contributions component and routes/pages#1035

Open
Lakshya-2440 wants to merge 1 commit intoalphaonelabs:mainfrom
Lakshya-2440:chore/remove-contributions-clean
Open

Remove contributions component and routes/pages#1035
Lakshya-2440 wants to merge 1 commit intoalphaonelabs:mainfrom
Lakshya-2440:chore/remove-contributions-clean

Conversation

@Lakshya-2440
Copy link

@Lakshya-2440 Lakshya-2440 commented Mar 19, 2026

Checklist

  • Did you run the pre-commit? (If not, your PR will most likely not pass — please ensure it passes pre-commit)
  • Did you test the change? (Ensure you didn’t just prompt the AI and blindly commit — test the code and confirm it works)
  • Added screenshots to the PR description (if applicable)
image

Purpose

Remove the contributions component and its associated routes, pages, views, and templates from the codebase.

Key Changes

Frontend Templates:

  • Removed the "View Contributions" card from the homepage (index.html), which previously displayed alongside the "View Waiting Rooms" section
  • Deleted the entire contributor detail template (contributor_detail.html) that displayed contributor statistics with Charts.js visualizations, engagement metrics, and activity timelines
  • Deleted the entire contributors list template (contributors_list.html) that rendered the contributors directory with rankings, statistics, and GitHub PR data

Backend Routing & Views:

  • Removed two URL routes from web/urls.py:
    • contributors/ (contributors_list_view)
    • contributors/<str:username>/ (contributor_detail_view)
  • Removed three functions from web/views.py:
    • contributors_list_view() - aggregated contributors by GitHub PR activity
    • contributor_detail_view() - rendered detailed GitHub contributor stats
    • get_user_contribution_metrics() - performed GitHub GraphQL queries for contributor data
  • Removed GitHub integration constants: GITHUB_REPO and GITHUB_API_BASE

Impact

  • Functionality: Eliminates the contributors browsing and detail viewing features; GitHub API calls for contributor metrics no longer execute
  • User Experience: Removes the contributions section from the homepage, streamlining the interface to focus on waiting rooms, forum posts, blog posts, and success stories
  • Total Lines Removed: 1,041 lines across templates, routes, and view functions

Copilot AI review requested due to automatic review settings March 19, 2026 00:05
@github-actions
Copy link
Contributor

👀 Peer Review Required

Hi @Lakshya-2440! This pull request does not yet have a peer review.

Before this PR can be merged, please request a review from one of your peers:

  • Go to the PR page and click "Reviewers" on the right sidebar.
  • Select a team member or contributor to review your changes.
  • Once they approve, this reminder will be automatically removed.

Thank you for contributing! 🎉

@github-actions github-actions bot added the files-changed: 5 PR changes 5 files label Mar 19, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 19, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'tools'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: alphaonelabs/coderabbit/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 452678fa-7679-4e62-8365-62c17e7f0bab

📥 Commits

Reviewing files that changed from the base of the PR and between c94caf8 and d7277e0.

📒 Files selected for processing (5)
  • web/templates/index.html
  • web/templates/web/contributor_detail.html
  • web/templates/web/contributors_list.html
  • web/urls.py
  • web/views.py
💤 Files with no reviewable changes (4)
  • web/templates/web/contributor_detail.html
  • web/templates/web/contributors_list.html
  • web/views.py
  • web/urls.py

Walkthrough

This PR removes the entire contributors feature from the application, including two template files (contributor detail and contributors list pages), two URL routes, and three view functions along with related constants that aggregated GitHub contributor metrics.

Changes

Cohort / File(s) Summary
Contributor Templates
web/templates/web/contributor_detail.html, web/templates/web/contributors_list.html
Removed contributor detail page template (414 lines) with charts, metrics grid, and timeline; removed contributors list template (251 lines) with ranking, statistics cards, and contributor grid.
URL Routing
web/urls.py
Removed two URL patterns: contributors list view and contributor detail view endpoints.
View Functions and Constants
web/views.py
Removed GITHUB_REPO and GITHUB_API_BASE constants; removed get_user_contribution_metrics(), contributor_detail_view(), and contributors_list_view() functions that handled GitHub API queries and contributor aggregation.
Homepage Layout
web/templates/index.html
Removed "View Contributions" card block from section 6; updated grid from two-column to single-column layout.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main purpose of the changeset: removing the contributions component and its associated routes and pages across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can disable the changed files summary in the walkthrough.

Disable the reviews.changed_files_summary setting to disable the changed files summary in the walkthrough.

Copy link

Copilot AI left a comment

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 removes the GitHub “contributions/contributors” feature from the Django web app by deleting its views, routes, and templates, and updating the homepage to no longer link to it.

Changes:

  • Removed contributor list/detail views and related GitHub API/GraphQL logic from web/views.py
  • Removed contributor routes from web/urls.py
  • Deleted contributor templates and removed the “View Contributions” CTA from the homepage

Reviewed changes

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

Show a summary per file
File Description
web/views.py Deletes contributor-related view logic; leaves behind an unused GitHub API helper to clean up.
web/urls.py Removes /contributors/ and /contributors/<username>/ routes.
web/templates/web/contributors_list.html Deletes contributors list page template.
web/templates/web/contributor_detail.html Deletes contributor detail page template.
web/templates/index.html Removes “View Contributions” card and adjusts the section layout accordingly.

@A1L13N A1L13N enabled auto-merge March 19, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

files-changed: 5 PR changes 5 files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants