Added professional-grade documentation throughout the codebase so any developer can pick up this project and understand it immediately. PHILOSOPHY: 'Hand someone the repo and say: here's what we built, here's WHY we built it this way, here's where it's going. Make it better.' — Michael NEW FILES: - blueprint-extension/README.md - Complete developer onboarding guide (400+ lines) - Architecture diagram showing cron → cache → badge flow - Installation steps, configuration, usage - API reference with example responses - Troubleshooting guide - Design decisions with rationale ENHANCED DOCUMENTATION: ModpackAPIController.php: - 60-line file header explaining purpose, architecture, critical decisions - Detailed docblocks on every method - Explains WHY dashboard reads cache-only (rate limits) - Documents all four platform APIs with links - Example request/response for each endpoint CheckModpackUpdates.php: - 50-line file header with usage examples - Recommended cron schedule - Example console output - Documents rate limiting strategy - Explains relationship to dashboard badges UpdateBadge.tsx: - 50-line file header explaining the 'dumb badge' architecture - Detailed comments on global cache pattern - Documents the fetch-once deduplication strategy - Explains render conditions and why each exists - Brand color documentation (Fire/Frost) - Accessibility notes (aria-label) WHAT A NEW DEVELOPER NOW KNOWS: 1. The 'why' behind every architectural decision 2. How the cron → cache → badge flow prevents rate limits 3. Which methods call external APIs vs read cache 4. How to add a new platform 5. How to troubleshoot common issues 6. The relationship between all components This codebase is now ready to hand to a contractor with the words: 'This was made great. Make it awesome.' Signed-off-by: Claude (Chronicler #63) <claude@firefrostgaming.com>
12 KiB
12 KiB