mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 06:17:02 +01:00
Repo cleanup pass focused on what visitors (engineers evaluating the
codebase, prospective contributors, allied non-profits, donors) see when
they land on the GitHub page.
README.md:
- Reframe lede around the one-line value prop ("Used computers repaired
and rehomed — not landfilled") so the mission is immediately legible.
- Add a "What this platform does" surface table (storefront, P2P
marketplace, IT-Hilfe, workshops, erfassung, member services, HIRN AI).
- Add a "How a non-profit funds this kind of platform" section laying
out the five revenue + sustenance streams (storefront margin, paid
services, donations, membership, grants) so the economic model is
transparent. Explicit "not VC-backed" framing so VC visitors don't
bounce confused — we're built for adoption by other circular-economy
orgs, not for an exit.
docs/:
- 42 dated/one-time files (PHASE_*, PROGRESS_*, AUDIT_REPORT, INCIDENT_*,
HANDOFF_*, *_COMPLETE, DATABASE_CONNECTION_ISSUE_RESOLUTION, all the
email-solution-comparisons whose decisions long since shipped, etc.)
moved to docs/archive/ via `git mv` so history is preserved but the
index isn't drowning in work logs.
- docs/README.md rewritten as a real index — six sections (Getting
started, Architecture, Product surfaces, Design, Operations, Mission)
pointing at the 24 curated reference docs that remain at docs/ root.
- The stale "Current Status (2025-12-02)" block in docs/README.md is gone.
Also (separate, prior in this session): 5 stale remote branches deleted
on origin — merged/closed/abandoned `claude/loop-bugfixes-2026-05`,
`claude/audit-ssot-dry-violations-k4aVl`, `snyk-fix-*` (x2),
`claude/improve-partnerships-page-ELMcD`. Remaining 11 origin branches
all correspond to open PRs (10 dependabot + 1 active feature).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.5 KiB
2.5 KiB
Phase 4: Open Source Solutions Page Refactoring
Created: 2025-12-17
Last Modified: 2025-12-17
Last Modified Summary: Refactored open-source-solutions page from 912 lines to 77 lines
Problem
The open-source-solutions/page.tsx file was 912 lines - a classic "god file" that violated:
- Single Responsibility Principle
- DRY (Don't Repeat Yourself)
- Separation of Concerns
- Maintainability
Solution
Breaking down into smaller, focused modules:
✅ Completed
-
Data Extraction (
src/app/services/open-source-solutions/data.ts)- Extracted all data constants:
benefitsarraypopularAppsarrayfeaturesarrayconsumerComparisonsarraybusinessComparisonsarrayemergingTechComparisonsarray
- Created TypeScript interfaces for type safety
- Extracted all data constants:
-
Component Extraction
ComparisonCard.tsx- Reusable card for open-source vs proprietary comparisonsComparisonSection.tsx- Section wrapper for comparison groupsBenefitsSection.tsx- Benefits display sectionServicesSection.tsx- Services/features display sectionCTASection.tsx- Call-to-action section
-
Main Page Refactoring
- Before: 912 lines
- After: 77 lines (91% reduction!)
- Now uses:
ResponsiveHerofor hero section- Extracted section components
- Design system utilities
- Data imported from
data.ts
File Structure
src/app/services/open-source-solutions/
├── page.tsx (77 lines - main page)
├── data.ts (data constants)
└── components/
├── ComparisonCard.tsx
├── ComparisonSection.tsx
├── BenefitsSection.tsx
├── ServicesSection.tsx
└── CTASection.tsx
Improvements
- ✅ 91% size reduction: 912 → 77 lines
- ✅ Modular architecture: 6 focused files
- ✅ Design system integration: All components use design system
- ✅ Type safety: TypeScript interfaces for all data
- ✅ Reusability: Components can be reused elsewhere
- ✅ Maintainability: Easy to update data or styling
- ✅ Single source of truth: Data in one place
Statistics
- Before: 912 lines (god file)
- After: 77 lines (main page) + 6 modular files
- Reduction: 91%
- Files Created: 6 new files
- Design System: Fully integrated
Next Steps
Similar refactoring can be applied to:
enterprise-ai-solutions/page.tsx(842 lines)web-design-development/page.tsx(758 lines)- Other large service pages