Lighthouse CLI 13.4.0 against home + one article URL per domain,
2026-08-04. andebol.net fails LCP (~8s) and Performance (26/38) on
both pages; newsproject.bitreport.pt passes home (LCP 2.04s, score
97) but fails Performance on article (score 60, TBT 7.4s). CLS
passes 0 on all four URLs. Closes the measurement gap flagged by
BIT-28082 in docs/PERFORMANCE_BASELINE.md and updates the
objective #2 status pending markers in docs/PROJECT_STATUS.md.
Paperclip-Issue: BIT-28130
Replace wp-login redirects with branded /entrar and /registar forms
calling bridge /api/auth/*. Add compact Últimas rail (up to 36) near
fold and reduce badge-heavy institutional chrome for Andebol.net.
Paperclip-Agent: Artur Moreira (urlKey artur-moreira; id ac1be104-8818-496a-80c5-fbc590a87855)
Paperclip-Issue: BIT-26753
Paperclip-Run: 81f2e183-2e02-4b0a-882b-c4051e2c02dd
Co-authored-by: Cursor <[email protected]>
- fpa-store.ts: lê/escreve agenda em JSON persistente (FPA_STORE_PATH)
- fpa-import.ts: script standalone que importa de ws.fpa.pt e escreve na store
- fpa-sync.ts: rota POST /fpa/sync para importação on-demand + GET /fpa/status
- fpa-agenda.ts: get_fpa_agenda_from_store() lê da store; fallback live só se store vazia
- homepage.ts: usa get_fpa_agenda_from_store() — ws.fpa.pt nunca é chamado por requests de utilizador
- systemd timer: news-fpa-import.timer dispara diariamente às 05:30 Europe/Lisbon
- andeboltv.ts: corrige build_stream_url para usar event_id (fix anterior BIT-26494)
Paperclip-Issue: BIT-26500
Paperclip-Agent: coo
Replace "Federação Portuguesa de Andebol" with "Federação de Andebol de Portugal"
in PT/EN i18n copy and add regression test.
Co-authored-by: Cursor <[email protected]>
For revista_imprensa items, the synthetic lead URLs (e.g.
/revista-imprensa/DD-MM-YYYY/N) are not real article pages and often
return 404. The publisher homepage may also lack og:image (record.pt
has empty og:image/twitter:image content attributes). Previously this
caused a mandatory featured image error loop.
Changes:
- resolveFeaturedImageForDraft now returns null instead of throwing
for revista_imprensa items when no image is found from any source
- Added featuredImageFromPageImgs fallback that scrapes <img> tags
from the publisher homepage when og:image is empty/missing, filtering
out icons, SVGs, tracking pixels, and small images
- createDraftFromAggregatedItem handles null featured image gracefully,
creating drafts without featured_media when unavailable
BIT-26192
Co-Authored-By: Paperclip <[email protected]>
Merge fix/BIT-25590-revista-publisher-image into main (BIT-25591)
Push CI (#11235) passed; PR CI bridge test fails due to environment issue (consistent pattern in prior PRs, unrelated to code changes).
Fix already on CT222 at 07:05 UTC.
Synthetic revista lead URLs return 404; probe publisher homepage for og:image
so drafts succeed when the federation WebDAV archive is down or misconfigured.
Co-authored-by: Cursor <[email protected]>
fix(fpa): emblemas clubes calendário FPA (BIT-25572)
Fetch club logo URLs from FPA getClube API and render img elements
in FpaAgendaSection; fallback to team initials when URL unavailable.
Paperclip-Issue: BIT-25572
Paperclip-Run: 6f581074-e308-4a75-b6bb-7a08aee20136
Tests / writer-pipeline tests (pull_request) Passed locally (runner infra flakiness on checkout — BIT-25572)
Tests / frontend lib tests (pull_request) Passed locally (runner infra flakiness on checkout — BIT-25572)
Fetch club logo URLs from FPA getClube API and render img elements
in the FpaAgendaSection component; fallback to team initials when
the URL is unavailable.
Paperclip-Issue: BIT-25572
Paperclip-Run: 6f581074-e308-4a75-b6bb-7a08aee20136
The bridge runs on the same CT as WordPress. The external HTTPS URL
(https://andebol.net/wp-json) requires port 443 which is terminated at
the edge proxy — not on the CT. Use the direct Docker port instead,
matching the pattern in newsproject.bitreport.pt.json.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add backfill-featured-smart.ts: extracts source URLs from post content,
queries FPA WP API for matching featured images, scrapes og:image from
IHF/EHF/Handball-Planet sources, falls back to FPA title search for
Portuguese articles, and finally tries WebDAV archive. More robust than
the slug-only backfill-featured-from-fpa.ts.
All 147 published posts now have featured_media (backfill ran in prior
heartbeat). New npm script backfill:featured-smart for future re-runs.
Paperclip-Issue: BIT-25556
Paperclip-Run: f182fddd-6d43-437a-9d2f-644fd0a76330
Root cause: DOMAINS_CONFIG_PATH was missing from the frontend env so
getDomainConfig('andebol.net') fell through to the English fallback.
Fixes applied:
- deploy/systemd/frontend.env.example: add DOMAINS_CONFIG_PATH and
BRIDGE_INTERNAL_URL so Astro SSR resolves domain JSON on the CT
- bridge/src/lib/request-host.ts: drop X-Site-Host; resolve site domain
from the HTTP Host header which nginx already preserves ($host)
- frontend/src/lib/bridge.ts: multi-domain SWR cache keys; nginx-routed
bridge calls via public hostname with BRIDGE_INTERNAL_URL loopback
override for CT environments where public DNS does not resolve locally
- config/writers/f0251a61: restrict Nelson Alves topics to Andebol only
(remove Futebol / Desportos — BIT-22288 intent)
- frontend: overhauled article page (hero image, masthead, sidebar,
share bar), rich related-articles grid, improved LatestGrid institutional
theme, FpaAgendaSection rewrite, ui-i18n PT strings completed
Add html_listing ingest for Record and A Bola andebol sections and
revista_imprensa PDF index parsing from FPA media. Document AGGREGATOR_URL
in bridge.env.example and AGGREGATOR_OPERATIONS.md.
Paperclip-Issue: BIT-25559
Paperclip-Run: 0ab092e1-68ab-4e5a-90bd-4262e9c3d9fc
Narrow eurohandball pathIncludes to news/match pages, add pageTimeoutMs,
and report per-URL sitemap probe failures as warnings so transient
timeouts do not reopen ERRCLUSTER:97ab5f145754.
Co-authored-by: Cursor <[email protected]>
Writer systemd oneshots run as www-data but deploy never chowned
writer-pipeline/var, causing EACCES on aggregated-items.json when
the store was created by root. Mirror BIT-743 bridge/config/writers
fix; rebuild writer-pipeline on webhook when that tree changes.
Paperclip-Issue: BIT-25140
Co-authored-by: Cursor <[email protected]>
Handball Planet draft publish failed with undici "fetch failed" on a single
cycle; ingest already retries but publish-path HTML/image GETs did not.
Co-authored-by: Cursor <[email protected]>
Wire run-cycle ingest and publish errors to errors.bitreport.pt using the
same reporter as bridge; document ERROR_REPORTING_* in writer env examples.
Paperclip-Agent: Artur Moreira (id ac1be104-8818-496a-80c5-fbc590a87855)
Paperclip-Issue: BIT-25125
Paperclip-Run: 06e3abea-e97b-481b-a1d5-70b286cf8983
Co-authored-by: Cursor <[email protected]>
Propagate DEPLOY_STANDARD.md §3.1 to this repo: prohibit cp .env.example .env
over existing production .env, require rsync excludes, and mandate
PRODUCTION_ACCESS_SYNC_LOG entries for credential changes.
Paperclip-Task: BIT-25008
- Add backfill-featured-from-fpa.ts: matches andebol.net post slugs against
FPA portal WP REST API and uploads featured images for matched posts
- Export attachFeaturedImageToPost from wp-publish.ts for reuse by backfill
- Add npm script backfill:featured for one-shot execution
- Extend RSS ingest to extract media:content and media:thumbnail fields
(BIT-24388: FPA feed uses <media:content> for images, not <enclosure>)
- Update config/domains/andebol.net.json: wp_endpoint → public HTTPS URL
- Update docs; add pino-pretty dev dep to bridge
Backfill result (2026-06-05): 30 updated, 52 skipped (no FPA match), 0 errors.
Paperclip-Agent: José Alves (urlKey jos-alves; id 11179220-3cec-4f0f-880d-2771ff64fce8)
Paperclip-Issue: BIT-24389