andebol.net home fails LCP (~8s) and Lighthouse Performance (~26) while
newsproject.bitreport.pt (same bridge/cache stack) passes. Root cause:
FpaAgendaSection is andebol.net-only (fpa_agenda_enabled + institutional
theme, homepage only) and renders up to 48 game cards with heavy per-card
CSS (gradients, color-mix, shadows). Measured andebol.net home DOM at
~2230 elements vs ~468 on newsproject.bitreport.pt, and Style & Layout
main-thread cost consistently ~3x higher, matching the diagnostics in
docs/PERFORMANCE_BASELINE.md (no render-blocking scripts, cost
concentrated in style/layout).
Apply content-visibility: auto + contain-intrinsic-size to
.fpa-agenda__card so the browser skips style/layout/paint for
off-screen cards (most of the 48 sit below the fold).
Incorporate August Lighthouse addendum and board statuses (BIT-28130 done;
follow-ups BIT-28144/28145) so docs do not claim CWV still unmeasured.
Paperclip-Issue: BIT-28131
Paperclip-Run: 73c52077-1860-4763-971f-b6d01d6dd8ac
Align objectives matrix and open-work section with the Aug 2026 governance
sweep children; lead the performance baseline with May HIT evidence instead
of the superseded April cache-gap summary.
Paperclip-Issue: BIT-28131
Paperclip-Run: 52ceb27e-9eda-4fe2-92f2-3794e4a40d1c
Adds unit coverage for resolveFeaturedImageForDraft() so the mandatory
featured-image ERRSIG cluster (BIT-27615 / BIT-26192 / BIT-22288) cannot
silently regress: ordinary drafts still throw when no image resolves,
revista-imprensa leads (by sourceKind or URL) resolve to null instead,
and non-revista URLs are not over-matched. Also covers upsertItem
preserving sourceKind across updates that omit it.
Paperclip-Issue: BIT-28134
Paperclip-Run: d45309d9-128d-4266-93db-9afe285c4486
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]>
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]>
Tests / frontend lib tests (pull_request) Passed locally (runner infra flakiness on checkout — BIT-25572)
Tests / writer-pipeline 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
CT222 news-project-test changed IP following DHCP re-lease (BIT-24050
emergency fix). IP is now static at 10.10.50.204 via systemd-networkd.
Update all doc references, deploy script post-install notes, and
wordpress/README direct-access URLs.
Paperclip-Agent: Tiago Neves (devops; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-24053
Paperclip-Run: 9c69919d-4c21-48b0-8eb7-2b9745bed65c