 Maria PapoilaandPaperclip
|
3d4b129b4c
|
BIT-15752: Add unit tests across writer-pipeline, bridge, and frontend
Tests / writer-pipeline tests (push) Failing after 1s
Tests / bridge tests (push) Failing after 1s
Tests / frontend lib tests (push) Failing after 1s
Tests / writer-pipeline tests (pull_request) Successful in 52s
Tests / bridge tests (pull_request) Successful in 25s
Tests / frontend lib tests (pull_request) Successful in 29s
87 new tests covering previously untested pure functions:
- writer-pipeline: token-metrics, store (canonicalUrl/itemId/upsertItem/shortlist), config-load
- bridge: ranking (freshness/relevance/rank/filter/take_top_n), aggregator-mapper
- frontend/lib: format, ui-i18n, public-origin
Adds test:coverage scripts (node --experimental-test-coverage) and Gitea
CI workflow. writer-pipeline now reports 95.91% line coverage.
Co-Authored-By: Paperclip <[email protected]>
|
2026-04-29 01:08:41 +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 |
|