feat: build Astro 6 SSR frontend for multi-domain sports news platform #2

Merged
spark merged 2 commits from task/BIT-349-astro-frontend into main 2026-03-23 14:55:44 +00:00
Owner

Complete implementation of BIT-349:

  • Astro 6 SSR with @astrojs/node standalone adapter
  • Multi-domain config system: reads config/domains/.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

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
spark added 1 commit 2026-03-23 14:26:42 +00:00
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
Author
Owner

Conflict auto-resolution failed: could not automatically merge main into task/BIT-349-astro-frontend. Manual intervention required.

BitReport PR Conflict Resolver

**Conflict auto-resolution failed**: could not automatically merge `main` into `task/BIT-349-astro-frontend`. Manual intervention required. _BitReport PR Conflict Resolver_
Author
Owner

Auto-resolved conflicts: merged main into task/BIT-349-astro-frontend using -X theirs strategy (base branch version preferred in conflicts).

Please review the merge commit to verify correctness.

BitReport PR Conflict Resolver

**Auto-resolved conflicts**: merged `main` into `task/BIT-349-astro-frontend` using `-X theirs` strategy (base branch version preferred in conflicts). Please review the merge commit to verify correctness. _BitReport PR Conflict Resolver_
spark added 1 commit 2026-03-23 14:52:58 +00:00
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]>
spark merged commit 8ac73efd21 into main 2026-03-23 14:55:44 +00:00
Sign in to join this conversation.