fix(andebol): use official FPA name in agenda UI strings (BIT-26494) #29

Merged
spark merged 3 commits from fix/BIT-26494-fpa-federation-name into main 2026-07-13 08:21:21 +01:00
Owner
No description provided.
spark added 3 commits 2026-07-13 08:20:01 +01:00
fix(writer-pipeline): allow revista_imprensa drafts without featured image
Tests / bridge tests (push) Successful in 54s
Tests / writer-pipeline tests (push) Successful in 57s
Tests / frontend lib tests (push) Successful in 1m0s
9b6fbe027c
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]>
feat(andebol): AndebolTV live stream badges on FPA agenda (BIT-26493)
Tests / bridge tests (push) Successful in 37s
Tests / writer-pipeline tests (push) Successful in 39s
Tests / frontend lib tests (push) Successful in 39s
d057709297
- bridge: andeboltv.ts fetches Pixellot /api/event/list (live + upcoming)
- bridge: fpa-stream-match.ts matches FPA games to AndebolTV streams
- bridge: homepage route enriches agenda with stream_url, stream_status, is_live
- frontend: FpaAgendaSection renders Em direto badge + AndebolTV link
- i18n: PT-PT strings for live/stream status and watch links
- test: fpa-stream-match.test.ts (teams_overlap, teams_match_pair, find, enrich)

Co-Authored-By: Paperclip <[email protected]>
fix(andebol): use official FPA name in agenda UI strings (BIT-26494)
Tests / writer-pipeline tests (push) Successful in 52s
Tests / bridge tests (push) Successful in 49s
Tests / frontend lib tests (push) Successful in 48s
Tests / writer-pipeline tests (pull_request) Successful in 34s
Tests / bridge tests (pull_request) Successful in 32s
Tests / frontend lib tests (pull_request) Successful in 35s
3c1466f048
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]>
spark merged commit 225d65c2c5 into main 2026-07-13 08:21:21 +01:00
Sign in to join this conversation.