fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555) #24

Merged
spark merged 2 commits from task/BIT-25555-andebol-fixes into main 2026-06-18 11:45:02 +01:00
Owner

BIT-25555 — FIX: erros constantes andebol.net

Root causes

  1. English UI — DOMAINS_CONFIG_PATH missing from frontend env → English fallback locale
  2. Non-handball articles — Nelson Alves writer had Futebol/Desportos topics
  3. Bridge multi-domain — X-Site-Host was fragile; now uses nginx Host header + BRIDGE_INTERNAL_URL loopback override
  4. Frontend — hero image, sidebar, share bar, PT-PT i18n complete

Deploy checklist

DOMAINS_CONFIG_PATH=/opt/news-platform/config/domains
BRIDGE_INTERNAL_URL=http://127.0.0.1:3200
systemctl restart news-frontend news-bridge
## BIT-25555 — FIX: erros constantes andebol.net ### Root causes 1. **English UI** — `DOMAINS_CONFIG_PATH` missing from frontend env → English fallback locale 2. **Non-handball articles** — Nelson Alves writer had Futebol/Desportos topics 3. **Bridge multi-domain** — X-Site-Host was fragile; now uses nginx Host header + BRIDGE_INTERNAL_URL loopback override 4. **Frontend** — hero image, sidebar, share bar, PT-PT i18n complete ### Deploy checklist ``` DOMAINS_CONFIG_PATH=/opt/news-platform/config/domains BRIDGE_INTERNAL_URL=http://127.0.0.1:3200 systemctl restart news-frontend news-bridge ```
spark added 2 commits 2026-06-18 11:40:18 +01:00
feat(writer-pipeline): PT imprensa ingest for andebol.net (BIT-25559)
Tests / bridge tests (push) Failing after 7s
Tests / writer-pipeline tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Successful in 26s
Tests / bridge tests (pull_request) Successful in 27s
Tests / frontend lib tests (pull_request) Successful in 31s
3f7b4eff71
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
fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555)
Tests / frontend lib tests (push) Failing after 9s
Tests / writer-pipeline tests (push) Successful in 26s
Tests / bridge tests (push) Successful in 28s
Tests / bridge tests (pull_request) Failing after 7s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / frontend lib tests (pull_request) Successful in 29s
919153aaf7
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
spark added 1 commit 2026-06-18 11:43:08 +01:00
ci: retrigger tests (BIT-25555)
Tests / frontend lib tests (push) Failing after 11s
Tests / writer-pipeline tests (push) Successful in 28s
Tests / bridge tests (push) Successful in 30s
Tests / writer-pipeline tests (pull_request) Successful in 33s
Tests / bridge tests (pull_request) Successful in 29s
Tests / frontend lib tests (pull_request) Successful in 30s
80ec057745
Co-Authored-By: Paperclip <[email protected]>
spark merged commit ddd92427f4 into main 2026-06-18 11:45:02 +01:00
Sign in to join this conversation.