fix/BIT-28145-tbt-followup
Tests / writer-pipeline tests (push) Successful in 1m30s
Tests / frontend lib tests (pull_request) Successful in 1m22s
Tests / bridge tests (push) Successful in 1m30s
Tests / frontend lib tests (push) Successful in 1m30s
Tests / bridge tests (pull_request) Successful in 1m23s
Tests / writer-pipeline tests (pull_request) Successful in 1m23s
Post-merge Lighthouse re-verification of PR #47 confirmed article TBT regression is resolved (7416ms -> 0-348ms, Performance 60 -> 99 median, 5 runs, results in PERFORMANCE_BASELINE.md). This follow-up closes a gap found during that verification and widens the pass margin: - bridge/package.json: sanitize-html.test.ts (added in the original fix) was never wired into the test/test:coverage scripts, so the "28 bridge sanitizer tests pass" claim wasn't actually exercised by npm test. Fixed. - Defer mobile-menu and share-button click handlers to requestIdleCallback (institutional/sports headers, ArticleShareBar) so they don't compete with hydration-critical work. - Split Base.astro's theme-flash-prevention script into a minimal inline snippet (runs before paint) and the deferred click-handler logic, instead of one blocking script. - bridge articles route: /articles/:slug/related accepts an optional ?category_id= to skip a redundant WP post-by-slug fetch when the caller already has it. Paperclip-Agent: Miguel Teixeira (urlKey miguel-teixeira; id 0f722e1a-bc3e-4381-8d98-76fa3c7aea10) Paperclip-Issue: BIT-28145
news-platform
Scalable multi-domain sports news platform — Astro 5 SSR frontend, Fastify bridge, headless WordPress.
Structure
news-platform/
frontend/ # Astro 5 SSR frontend application
bridge/ # Fastify bridge (WordPress REST API cache + normalizer)
writer-pipeline/ # RSS aggregator store, metrics, optional WP drafts (andebol.net)
wordpress/ # WordPress config, themes, plugins
config/domains/ # Per-domain configuration files
docs/ # Architecture and runbooks
deploy/ # LXC provisioning and deploy scripts
Quick Start
# 1. Start WordPress + MySQL
cd wordpress && docker compose up -d
# 2. Start bridge
cd bridge && npm install && npm run dev
# 3. Start frontend
cd frontend && npm install && npm run dev
Open: http://localhost:4321
Documentation
Core
- Architecture + Stack Justification
- Frontend (Astro 5)
- Bridge (Fastify)
- Multi-Domain Config
- SEO Strategy
- Deployment (LXC)
- Service Monitoring
- Runbooks (index)
Aggregator & Writer Pipeline
- Aggregator Architecture & Data Contract
- Aggregator Operations & Costs
- Writer Pipeline — andebol.net
- Writer Tools — Content Aggregation & Ranking
- Editorial Brief — andebol.net
Internationalisation
Related
- Paperclip project: News Platform
- Parent issue: BIT-345
- Gitea remote:
https://git.bitreport.pt/BitReport.pt/news-platform.git
Description
Scalable multi-domain sports news platform (frontend + WP bridge + SEO + LXC deploy)
4.6 MiB
0 Stars
32 Watchers
0 Forks
Languages
TypeScript
51.2%
Astro
38.9%
Shell
6.4%
CSS
2.2%
JavaScript
1.3%