-
-
Notifications
You must be signed in to change notification settings - Fork 353
Description
The website currently displays key organization statistics (Active Projects, Total Contributors, Community Count) in multiple places, with at least one inconsistency between the home page and the about page. These values are hard‑coded separately in each component, which makes them error‑prone to maintain and easy to desynchronize over time.
#395
( Problem statement ) :
The home page ( /) shows a “Community Count” value of 2000+.
The about page ( /about) shows a “Community Count” value of 3800+.
The stats (Active Projects, Total Contributors, Community Count) are duplicated as literals across components instead of being derived from a single source of truth.
#PROPOSED SOLUTION
Introduce a single shared configuration object/file that acts as the source of truth for these organization statistics, and update all pages to consume this config instead of hard‑coding numeric values.
#Implemnetation Plan
☐Add a shared orgStats config (for example in src/config/orgStats.ts).
☐Update the home page (/) to read all stats from orgStats instead of hard‑coding values.
☐Update the about page (/about) to read the same stats from orgStats.
☐Remove any remaining hard‑coded duplicates of these stats in other components.
☐Verify all pages now display identical values for Active Projects, Total Contributors, and Community Count.
☐ Create one config object/file (for example orgStats) that holds:
export const orgStats = {
activeProjects: 34,
totalContributors: 500,
communityCount: 3800,
};