Skip to content

Centralize and synchronize organization statistics#576

Open
prashantkumarniraj wants to merge 5 commits intoAOSSIE-Org:mainfrom
prashantkumarniraj:centralize-org-stats
Open

Centralize and synchronize organization statistics#576
prashantkumarniraj wants to merge 5 commits intoAOSSIE-Org:mainfrom
prashantkumarniraj:centralize-org-stats

Conversation

@prashantkumarniraj
Copy link

@prashantkumarniraj prashantkumarniraj commented Feb 11, 2026

This PR centralizes the organization statistics (Active Projects, Total Contributors, Community Count)
into a shared configuration file to establish a single source of truth.

Previously, these values were hard-coded separately across pages, which caused inconsistencies
(e.g., differing Community Count values on the home and about pages).

Changes:

  • Added src/config/orgStats.js as a shared configuration.
  • Updated home page to consume orgStats.
  • Updated about page to consume orgStats.
  • Removed duplicated hard-coded values.

This ensures future updates require changes in only one place.

Fixes #575

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced centralized organization statistics configuration for consistent display of active projects, contributors, and community count across the application.
  • Refactor

    • Updated Twitter branding from Twitter to X icon throughout the application.
    • Reorganized social media and contact links for improved consistency and accessibility.

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

📝 Walkthrough

Walkthrough

A new centralized configuration file containing organization statistics is introduced, and multiple pages and components are updated to import and use these values instead of hardcoded literals. Additionally, Twitter icon imports are updated from faTwitter to faXTwitter, and mail contact elements are refactored to use native anchor tags.

Changes

Cohort / File(s) Summary
New Configuration
src/config/orgStats.js
New file exporting orgStats constant with three organization metrics: activeProjects (34), totalContributors (500), and communityCount (3800).
Component Icon & Contact Updates
src/components/Footer.jsx
Updated FontAwesome import from faTwitter to faXTwitter; converted mailto Link to native anchor element; refactored social media links to consistently use anchor elements for mail, Discord, and Twitter while retaining Link components for GitLab and GitHub.
Page Integration
src/pages/index.jsx, src/pages/about.jsx
Both pages now import orgStats and replace hardcoded statistic values with dynamic references to configuration; updated FontAwesome icon import from faTwitter to faXTwitter (index only); responsive CSS class adjustments applied to headings (about only).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Our stats hop into config, so clean and so true,
No more scattered numbers in files old and blue,
The X-icon gleams where the Twitter once sat,
One source of truth—now that's where it's at! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The PR includes unrelated UI changes (Twitter→X icon updates, email link refactoring, Tailwind CSS adjustments) beyond the core objective of centralizing statistics, though these are minor cosmetic changes. Consider separating UI fixes (icons, links, Tailwind adjustments) into a separate PR to keep this PR focused solely on centralizing organization statistics.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ 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 'Centralize and synchronize organization statistics' directly and accurately reflects the main change in this PR, which introduces a shared configuration file for organization statistics.
Linked Issues check ✅ Passed The PR successfully implements all core requirements from issue #575: creates a shared orgStats config file, updates home and about pages to consume it, removes hard-coded duplicates, and ensures consistent values across pages.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/pages/index.jsx (1)

91-97: ⚠️ Potential issue | 🟡 Minor

Aria label still says "Follow on Twitter" while the icon is now X (faXTwitter).

Now that the icon has been updated to the X brand, the aria-label should be updated to match (e.g., "Follow on X"). Same applies in Footer.jsx (line 65). This affects screen-reader users who will hear "Twitter" while the visual branding says "X".

Proposed fix
                  <Link
-                    aria-label="Follow on Twitter"
+                    aria-label="Follow on X"
                    className="text-zinc-500 transition hover:text-[`#00843D`] dark:text-zinc-400 dark:hover:text-yellow-400"
                    href="https://twitter.com/aossie_org"
                  >
src/components/Footer.jsx (1)

32-34: ⚠️ Potential issue | 🟡 Minor

Copyright year is 2016-2025 but it's now 2026.

This is outside the scope of the orgStats change, but worth updating while you're editing this file.

Proposed fix
-                &copy; 2016-2025 AOSSIE. All rights reserved.
+                &copy; 2016-2026 AOSSIE. All rights reserved.

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.

[PROPOSAL] Centralize and synchronize organization stats

1 participant