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
3 Commits
Author SHA1 Message Date
José AlvesandCursor 3c1466f048 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
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]>
2026-07-13 07:17:24 +00:00
José AlvesandPaperclip d057709297 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
- 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]>
2026-07-13 07:14:35 +00:00
José AlvesandPaperclip 9b6fbe027c 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
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]>
2026-07-06 06:21:12 +00:00