Platform Architecture Refactor Milestone: Modular Express Server, 25% Lighter Boot Bundle & Domain Action Hooks
Completes Phase 1 backend server decomposition (reducing server.ts from 7,092 to 667 lines across focused services and route modules), Phase 2 frontend boot bundle optimization (shrinking the main entry chunk from 2.0 MB to 1.5 MB via lazy-loaded sheets and dynamic engine imports), and advances Phase 3 App.tsx decomposition by extracting five core domain hooks (UDisc/ratings, crews/messaging, league series, round scoring/league meta, and alerts/quick actions) with zero Firestore schema or security-rule changes.
Dig into all 5 changes in v8.3.0
- Phase 1 Complete: Modular Express Backend Architecture: Decomposed server.ts from 7,092 lines down to a clean 667-line bootstrap by extracting adminAuthService, legacyDbMigrationService, pushDispatcherService, and ogAndSsrRoutes alongside dedicated API route modules while preserving all 33 /api/* endpoints and dual-user RBAC invariants.
- Phase 2 Complete: 25% Smaller Initial Frontend Boot Bundle: Shrank the main production entry chunk from 2.0 MB to 1.5 MB by splitting AgendaCompactScoreSummary from RoundScorePodium, lazy-loading ScheduleFilterSheet, and dynamically loading emojiData, discBagUtils, throwMeasureUtils, udiscEngine, and estimatedRatingsEngine on demand.
- Phase 3 Progress: Core App.tsx Domain Action Hooks Extracted: Extracted five high-density domain hooks from src/App.tsx (useUdiscAndRatingActions, useCrewsAndMessagingActions, useLeagueSeriesActions, useRoundScoringAndLeagueMetaActions, and useAlertsAndQuickActions), removing over 7,000 lines from the root shell while keeping all Firestore schemas, offline sync transactions, and security rules unchanged ahead of the upcoming v9.0.0 major milestone.
- Automated Modular Architecture & Security Parity Guards: Registered all newly extracted server services, route modules, UI sub-components, and React domain hooks in the Living Validation Suite (validate:tier3) so future edits continuously verify static boundaries, 17-collection Firestore rules parity, and live dual-user RBAC.
- Preserved Optimistic Rollback & 3-Way Offline Score Merge Fidelity: Verified that all extracted league backfill batches, quick-edit handlers, 3-way transactional score merges, and cross-device notification sync dispatchers preserve exact optimistic rollback behavior and zero-drift TypeScript/ESLint compliance.