206 Commits
Author SHA1 Message Date
BitReport PR BotandPaperclip 56ec8411d3 chore: auto-resolve conflicts with main
Automated merge of main into task/BIT-349-astro-frontend (PR #2).
Conflict strategy: -X theirs (base branch preferred).

Co-Authored-By: Paperclip <[email protected]>
2026-03-23 14:52:55 +00:00
BitReport PR BotandPaperclip 25ecde95a5 chore: auto-resolve conflicts with main
Automated merge of main into task/BIT-350-bridge-api (PR #1).
Conflict strategy: -X theirs (base branch preferred).

Co-Authored-By: Paperclip <[email protected]>
2026-03-23 14:52:48 +00:00
Artur MoreiraandPaperclip 4eb6d37781 feat: build Astro 6 SSR frontend for multi-domain sports news platform
Complete implementation of BIT-349:

- Astro 6 SSR with @astrojs/node standalone adapter
- Multi-domain config system: reads config/domains/<host>.json on each request
- Homepage: HeroSection (3 featured), TrendingBar, LatestGrid, CategorySections
- Category page: filterable grid + pagination
- Article page: header, body, structured data, related articles, sidebar ad slot
- Dark/light theme toggle (no-flash, localStorage-backed)
- Sticky responsive header with mobile menu
- SEO: meta/OG/Twitter tags, schema.org (WebSite, NewsArticle, BreadcrumbList)
- Dynamic /sitemap.xml and /robots.txt (SSR)
- BridgeClient with in-process SWR cache (60s fresh / 5min stale)
- MockBridgeClient fallback when bridge is unreachable (dev-friendly)
- Performance: minimal client JS, lazy images, fetchpriority on LCP
- docs/frontend.md added

Build passes: npm run build OK
Smoke test: all routes 200 (/, /category/:slug, /article/:slug, /robots.txt, /sitemap.xml)

Paperclip-Agent: Artur (urlKey artur; id ac1be104-8818-496a-80c5-fbc590a87855)
Paperclip-Issue: BIT-349
Paperclip-Run: 407358da-8311-4b0a-9672-dda636bcf974
Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 14:17:59 +00:00
Artur MoreiraandPaperclip b2034f2497 feat(bridge): implement Fastify bridge API for WordPress (BIT-350)
- Fastify + TypeScript service in bridge/ listening on port 3200
- WordPress REST API client with _embed support and data normalization
- Redis stale-while-revalidate cache with in-process Map fallback
- Domain routing: reads config/domains/<host>.json per Host header
- Routes: /homepage, /articles, /articles/:slug, /articles/:slug/related,
  /categories, /categories/:slug, /trending, /api/tags, /api/media/:id,
  /api/site-config, /health
- /api/posts and /api/categories aliases redirect to canonical routes
- Rate limiting via @fastify/rate-limit; CORS via @fastify/cors
- Error handling: WP unavailable → serve stale cache or 503
- Domain configs for localhost and newsproject.bitreport.pt

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 14:17:37 +00:00
David SantosandPaperclip 7b7830263b docs: architecture document and project scaffold for news-platform
- docs/architecture.md: full architecture with Astro 5 SSR vs Next.js/Nuxt
  justification, component diagram, data flow, multi-domain routing, SEO
  strategy, performance targets, and caching strategy
- docs/frontend.md, bridge.md, domains.md, seo.md, deployment.md: stubs
  with implementation detail for each layer
- config/domains/newsproject.bitreport.pt.json: first domain config
- project skeleton: frontend/, bridge/, wordpress/, config/, deploy/

Covers BIT-348 deliverables. Push pending Gitea repo creation.

Co-Authored-By: Paperclip <[email protected]>
2026-03-23 14:11:39 +00:00
Tiago NevesandPaperclip f7274c9c4e chore: scaffold initial project structure
Creates the base directory layout for the news-platform:
frontend/, bridge/, wordpress/, config/domains/, docs/, deploy/.

Ref: BIT-346 — Create Gitea repo + scaffold project structure

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 14:06:29 +00:00