Commit Graph
165 Commits
Author SHA1 Message Date
spark 8057f1ffee Merge pull request 'fix(writer-pipeline): revista featured image without sourceKind (BIT-27615)' (#36) from fix/BIT-27615-revista-featured-sourcekind into main
Tests / writer-pipeline tests (push) Successful in 48s
Tests / frontend lib tests (push) Successful in 44s
Tests / bridge tests (push) Successful in 46s
fix(writer-pipeline): revista featured image without sourceKind (BIT-27615)

Paperclip-Issue: BIT-27615
Paperclip-Agent: bug-squasher
2026-07-27 07:23:46 +01:00
José Alves 60366a95ae fix(writer-pipeline): detect revista leads by URL when sourceKind missing
Tests / bridge tests (push) Successful in 2m6s
Tests / writer-pipeline tests (pull_request) Successful in 2m1s
Tests / writer-pipeline tests (push) Successful in 2m12s
Tests / frontend lib tests (push) Successful in 2m6s
Tests / bridge tests (pull_request) Successful in 43s
Tests / frontend lib tests (pull_request) Successful in 33s
Synthetic /revista-imprensa/ URLs without sourceKind skipped the publisher
image probe and threw Mandatory featured image (ERRSIG 88492922d213).

Paperclip-Issue: BIT-27615
Paperclip-Run: 17d5ee4b-579f-4833-943f-ea9e815e5dec
2026-07-27 06:20:21 +00:00
spark 9a2f82d825 Merge pull request 'feat(frontend): home magazine photo-led latest (BIT-26761)' (#35) from task/BIT-26761-home-magazine-photo into main
Tests / frontend lib tests (push) Successful in 43s
Tests / writer-pipeline tests (push) Successful in 48s
Tests / bridge tests (push) Successful in 47s
Paperclip-Issue: BIT-26761
2026-07-17 10:39:26 +01:00
José Alves bfa895c821 feat(frontend): photo-led home magazine mosaic for latest news (BIT-26761)
Tests / writer-pipeline tests (push) Successful in 1m7s
Tests / writer-pipeline tests (pull_request) Successful in 1m14s
Tests / bridge tests (pull_request) Successful in 1m13s
Tests / bridge tests (push) Successful in 1m6s
Tests / frontend lib tests (push) Successful in 1m4s
Tests / frontend lib tests (pull_request) Successful in 1m11s
Replace text-only latest-compact with a magazine mosaic that shows
featured_image thumbs on every latest item (lead + stack + tiles + dense rail).

Paperclip-Issue: BIT-26761
Paperclip-Run: 684a021c-56a1-40d4-bdb7-eeea39402746
2026-07-17 09:35:27 +00:00
spark c899d5abdd Merge pull request 'fix(devops): wp-login ops-only gate + branded auth smoke (BIT-26754)' (#34) from fix/BIT-26754-wp-login-gate-smoke into main
Tests / writer-pipeline tests (push) Successful in 50s
Tests / bridge tests (push) Successful in 48s
Tests / frontend lib tests (push) Successful in 47s
2026-07-17 10:31:24 +01:00
José AlvesandPaperclip f37d4f7318 fix(devops): wp-login ops-only gate + smoke for branded auth (BIT-26754)
Tests / writer-pipeline tests (push) Successful in 40s
Tests / bridge tests (push) Successful in 39s
Tests / frontend lib tests (push) Successful in 38s
Tests / writer-pipeline tests (pull_request) Successful in 47s
Tests / bridge tests (pull_request) Successful in 48s
Tests / frontend lib tests (pull_request) Successful in 49s
- Nginx: add auth_basic gate on wp-login.php (ops htpasswd, BIT-26754)
- deploy.sh: note htpasswd step 5 in post-deploy manual steps
- smoke-andebol.sh: update /entrar+/registar checks to verify branded
  Astro 200 (no WordPress strings); add wp-login.php 401/403 gate check;
  add /api/homepage latest ≥24 density check (BIT-26752)

Co-Authored-By: Paperclip <[email protected]>
2026-07-17 09:18:47 +00:00
spark 2528e3fa0e Merge pull request 'feat(frontend): branded auth, denser home, editorial visual (BIT-26753)' (#32) from task/BIT-26753-frontend-auth-home-visual into main
Tests / writer-pipeline tests (push) Successful in 35s
Tests / bridge tests (push) Successful in 37s
Tests / frontend lib tests (push) Successful in 36s
feat(frontend): branded auth, denser home, editorial visual (BIT-26753)

Fixes wp-login.php and /wp-admin exposure; replaces entrar/registar WP redirect
with branded Astro auth pages; denser home layout.

Also fixes flaky ranking.test freshness assertion (BIT-26754).
2026-07-17 10:09:57 +01:00
José Alves 6b89206f82 fix(bridge): ranking.test flaky freshness assertion (BIT-26754)
Tests / writer-pipeline tests (push) Successful in 41s
Tests / bridge tests (push) Successful in 40s
Tests / frontend lib tests (push) Successful in 43s
Tests / bridge tests (pull_request) Successful in 43s
Tests / writer-pipeline tests (pull_request) Successful in 45s
Tests / frontend lib tests (pull_request) Successful in 42s
2026-07-17 09:06:28 +00:00
spark 2f3755c75a Merge pull request 'feat(bridge): auth session + homepage 24 latest items (BIT-26752)' (#33) from task/BIT-26752-auth-session-homepage-density into main
Tests / writer-pipeline tests (push) Successful in 37s
Tests / bridge tests (push) Successful in 35s
Tests / frontend lib tests (push) Successful in 36s
2026-07-17 10:00:41 +01:00
José AlvesandCursor 70e862f18e feat(frontend): branded auth, denser home, editorial visual (BIT-26753)
Tests / bridge tests (push) Successful in 50s
Tests / writer-pipeline tests (push) Successful in 53s
Tests / bridge tests (pull_request) Failing after 42s
Tests / writer-pipeline tests (pull_request) Successful in 44s
Tests / frontend lib tests (push) Successful in 50s
Tests / frontend lib tests (pull_request) Successful in 42s
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]>
2026-07-17 08:43:32 +00:00
José Alves 6d54443539 feat(bridge): auth endpoints + homepage 24 latest items (BIT-26752)
Tests / bridge tests (push) Successful in 54s
Tests / writer-pipeline tests (push) Successful in 57s
Tests / frontend lib tests (push) Successful in 54s
Tests / writer-pipeline tests (pull_request) Successful in 43s
Tests / bridge tests (pull_request) Successful in 41s
Tests / frontend lib tests (pull_request) Successful in 40s
- POST /auth/login — validates credentials via WP wp-login.php (server-side),
  issues HttpOnly np_sid session cookie backed by Redis/in-memory
- POST /auth/register — creates subscriber via admin app password, auto-login
- POST /auth/logout — destroys session, clears cookie
- GET /auth/session — returns current WpSessionUser or 401
- LATEST_COUNT 12 → 24 on /homepage (WP fetch budget already covered the delta)
- .env.example: WP_ADMIN_USER, WP_ADMIN_APP_PASSWORD, SESSION_TTL_SECONDS

Paperclip-Issue: BIT-26752
Paperclip-Agent: cto
2026-07-17 08:34:33 +00:00
spark 6b9737a58d Merge pull request 'feat(bridge): importar agenda FPA para BD local (BIT-26500)' (#31) from feat/BIT-26500-fpa-agenda-db-import into main
Tests / writer-pipeline tests (push) Successful in 30s
Tests / bridge tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 31s
2026-07-13 09:01:21 +01:00
José Alves 6e82cc0106 feat(bridge): importar agenda FPA para BD local em vez de ws.fpa.pt em runtime (BIT-26500)
Tests / writer-pipeline tests (push) Successful in 31s
Tests / bridge tests (push) Successful in 32s
Tests / frontend lib tests (push) Successful in 32s
Tests / writer-pipeline tests (pull_request) Successful in 31s
Tests / bridge tests (pull_request) Successful in 31s
Tests / frontend lib tests (pull_request) Successful in 32s
- 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
2026-07-13 07:59:44 +00:00
spark c0a1787b93 fix(andebol): remove FPA feed origin copy from agenda UI (BIT-26494) (#30)
Tests / writer-pipeline tests (push) Successful in 30s
Tests / bridge tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 32s
2026-07-13 08:41:17 +01:00
spark 225d65c2c5 Merge pull request 'fix(andebol): use official FPA name in agenda UI strings (BIT-26494)' (#29) from fix/BIT-26494-fpa-federation-name into main
Tests / bridge tests (push) Successful in 1m29s
Tests / frontend lib tests (push) Successful in 1m28s
Tests / writer-pipeline tests (push) Successful in 1m32s
2026-07-13 08:21:20 +01:00
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
spark c1a12cf520 Merge pull request 'fix(writer): revista_imprensa publisher og:image before WebDAV (BIT-25590)' (#28) from fix/BIT-25590-revista-publisher-image into main
Tests / writer-pipeline tests (push) Successful in 32s
Tests / bridge tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 34s
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.
2026-06-19 08:15:12 +01:00
José AlvesandCursor 47fcb053da fix(writer): revista_imprensa publisher og:image before WebDAV (BIT-25590)
Tests / bridge tests (push) Successful in 48s
Tests / writer-pipeline tests (push) Successful in 50s
Tests / frontend lib tests (push) Successful in 48s
Tests / writer-pipeline tests (pull_request) Successful in 32s
Tests / bridge tests (pull_request) Failing after 31s
Tests / frontend lib tests (pull_request) Successful in 34s
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]>
2026-06-19 07:04:52 +00:00
spark 8e83cb0011 Merge pull request 'fix(fpa): emblemas clubes calendário FPA (BIT-25572)' (#27) from feat/BIT-25572-emblemas-fpa-calendario into main
Tests / writer-pipeline tests (push) Successful in 29s
Tests / bridge tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 31s
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
2026-06-18 16:47:53 +01:00
José Alves eb4da37692 fix emblemas clubes calendário FPA
Tests / bridge tests (push) Failing after 7s
Tests / writer-pipeline tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 31s
Tests / bridge tests (pull_request) Successful in 28s
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
2026-06-18 15:44:06 +00:00
spark 006b6edd2d Merge pull request 'fix(config): andebol.net wp_endpoint use internal Docker port (BIT-25555)' (#26) from feat/BIT-25556-smart-backfill into main
Tests / writer-pipeline tests (push) Successful in 26s
Tests / bridge tests (push) Successful in 28s
Tests / frontend lib tests (push) Successful in 31s
fix(config): andebol.net wp_endpoint use internal Docker port
2026-06-18 11:59:13 +01:00
José AlvesandClaude Sonnet 4.6 66b2373a1d fix(config): andebol.net wp_endpoint must use internal Docker port
Tests / bridge tests (push) Failing after 7s
Tests / writer-pipeline tests (push) Successful in 28s
Tests / frontend lib tests (push) Successful in 30s
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
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]>
2026-06-18 10:57:05 +00:00
spark 44f0169b8e Merge pull request 'feat(writer-pipeline): smart featured-image backfill for andebol.net (BIT-25556)' (#23) from feat/BIT-25556-smart-backfill into main
Tests / writer-pipeline tests (push) Successful in 42s
Tests / bridge tests (push) Successful in 41s
Tests / frontend lib tests (push) Successful in 44s
2026-06-18 11:47:53 +01:00
José AlvesandPaperclip 8fcb9f5803 ci: retrigger tests (BIT-25556)
Tests / writer-pipeline tests (push) Failing after 12s
Tests / bridge tests (push) Successful in 46s
Tests / writer-pipeline tests (pull_request) Successful in 42s
Tests / frontend lib tests (push) Successful in 47s
Tests / bridge tests (pull_request) Successful in 44s
Tests / frontend lib tests (pull_request) Successful in 41s
Co-Authored-By: Paperclip <[email protected]>
2026-06-18 10:46:05 +00:00
José Alves 7fb7ca272a feat(writer-pipeline): smart featured-image backfill for andebol.net (BIT-25556)
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
2026-06-18 10:46:04 +00:00
spark ddd92427f4 Merge pull request 'fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555)' (#24) from task/BIT-25555-andebol-fixes into main
Tests / bridge tests (push) Successful in 37s
Tests / writer-pipeline tests (push) Successful in 49s
Tests / frontend lib tests (push) Successful in 37s
fix(frontend): force pt-PT locale and handball-only for andebol.net (BIT-25555)
2026-06-18 11:45:01 +01:00
spark 152397932e Merge pull request 'feat(writer-pipeline): PT imprensa ingest for andebol.net (BIT-25559)' (#25) from feat/BIT-25559-pt-imprensa-ingest into main
Tests / writer-pipeline tests (push) Successful in 30s
Tests / bridge tests (push) Successful in 38s
Tests / frontend lib tests (push) Successful in 41s
feat(writer-pipeline): PT imprensa ingest for andebol.net (BIT-25559)
2026-06-18 11:44:42 +01:00
José AlvesandPaperclip 80ec057745 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
Co-Authored-By: Paperclip <[email protected]>
2026-06-18 10:43:05 +00:00
José AlvesandPaperclip 7ecda44d40 ci: retrigger tests (BIT-25559)
Tests / bridge tests (push) Failing after 7s
Tests / writer-pipeline tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 32s
Tests / writer-pipeline tests (pull_request) Successful in 35s
Tests / bridge tests (pull_request) Successful in 34s
Tests / frontend lib tests (pull_request) Successful in 32s
Co-Authored-By: Paperclip <[email protected]>
2026-06-18 10:43:00 +00:00
José Alves 919153aaf7 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
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
2026-06-18 10:09:35 +00:00
José Alves 3f7b4eff71 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
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
2026-06-18 10:01:28 +00:00
spark 129c43336b Merge pull request 'fix(writer-pipeline): stop eurohandball sitemap timeout error loop (BIT-25342)' (#22) from fix/BIT-25342-eurohandball-sitemap-timeout into main
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m44s
Tests / writer-pipeline tests (push) Successful in 1m49s
2026-06-16 18:09:49 +01:00
José AlvesandCursor 4238ee0aa3 fix(writer-pipeline): stop eurohandball sitemap timeout error loop (BIT-25342)
Tests / writer-pipeline tests (push) Successful in 1m24s
Tests / bridge tests (push) Successful in 1m40s
Tests / frontend lib tests (push) Successful in 1m34s
Tests / writer-pipeline tests (pull_request) Successful in 1m44s
Tests / bridge tests (pull_request) Successful in 1m13s
Tests / frontend lib tests (pull_request) Successful in 1m45s
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]>
2026-06-16 17:03:00 +00:00
spark 58e1fb85eb Merge pull request 'fix(deploy): ensure writer-pipeline var is writable by www-data (BIT-25140/BIT-25141)' (#21) from task/BIT-25140-writer-var-eacces into main
Tests / writer-pipeline tests (push) Failing after 17s
Tests / bridge tests (push) Successful in 42s
Tests / frontend lib tests (push) Successful in 49s
fix(deploy): ensure writer-pipeline var is writable by www-data
2026-06-14 21:13:11 +01:00
José Alves 31a6431b54 ci: retrigger writer-pipeline tests (BIT-25141)
Tests / writer-pipeline tests (push) Failing after 10s
Tests / bridge tests (push) Failing after 12s
Tests / frontend lib tests (push) Successful in 40s
Tests / writer-pipeline tests (pull_request) Successful in 43s
Tests / bridge tests (pull_request) Successful in 42s
Tests / frontend lib tests (pull_request) Successful in 41s
Paperclip-Issue: BIT-25141
2026-06-14 20:09:16 +00:00
José AlvesandCursor be0b0c9c6f fix(deploy): ensure writer-pipeline var is writable by www-data
Tests / writer-pipeline tests (push) Failing after 11s
Tests / bridge tests (push) Successful in 29s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Failing after 11s
Tests / bridge tests (pull_request) Failing after 13s
Tests / frontend lib tests (pull_request) Successful in 29s
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]>
2026-06-14 20:04:03 +00:00
spark eff2fdc9de Merge pull request 'fix(writer-pipeline): retry featured-image fetches on transient network errors (BIT-25135)' (#20) from task/BIT-25135-writer-fetch-retry into main
Tests / writer-pipeline tests (push) Successful in 1m53s
Tests / bridge tests (push) Successful in 1m51s
Tests / frontend lib tests (push) Successful in 2m2s
2026-06-14 20:28:56 +01:00
José AlvesandCursor dbd8c52359 ci: retrigger writer-pipeline push checks (BIT-25135)
Tests / writer-pipeline tests (push) Successful in 2m37s
Tests / bridge tests (push) Successful in 2m50s
Tests / writer-pipeline tests (pull_request) Successful in 3m1s
Tests / frontend lib tests (push) Successful in 3m7s
Tests / bridge tests (pull_request) Successful in 3m4s
Tests / frontend lib tests (pull_request) Successful in 3m19s
Paperclip-Issue: BIT-25135
Co-authored-by: Cursor <[email protected]>
2026-06-14 19:24:50 +00:00
José AlvesandCursor 6079046c5c fix(writer-pipeline): retry featured-image fetches on transient network errors
Tests / writer-pipeline tests (push) Failing after 55s
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m44s
Tests / bridge tests (pull_request) Successful in 1m28s
Tests / writer-pipeline tests (pull_request) Successful in 1m59s
Tests / frontend lib tests (pull_request) Successful in 1m56s
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]>
2026-06-14 19:20:37 +00:00
spark 70cdc516dc Merge pull request 'feat(writer-pipeline): report ingest failures to error hub (BIT-25125)' (#19) from task/BIT-25023-error-hub-reporters into main
Tests / writer-pipeline tests (push) Successful in 1m47s
Tests / bridge tests (push) Successful in 1m45s
Tests / frontend lib tests (push) Successful in 1m49s
feat(writer-pipeline): report ingest failures to error hub (BIT-25125)
2026-06-14 19:01:37 +01:00
José AlvesandCursor bcb95f6a0e feat(writer-pipeline): report ingest failures to error hub (BIT-25125)
Tests / writer-pipeline tests (push) Successful in 1m20s
Tests / bridge tests (push) Successful in 1m18s
Tests / frontend lib tests (push) Successful in 1m23s
Tests / writer-pipeline tests (pull_request) Successful in 1m27s
Tests / bridge tests (pull_request) Successful in 1m26s
Tests / frontend lib tests (pull_request) Successful in 1m25s
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]>
2026-06-14 17:45:23 +00:00
spark 7a43a8c67f Merge pull request 'feat(error-hub): wire BitReport error reporter (BIT-25023)' (#18) from task/BIT-25023-error-hub-reporters into main
Tests / writer-pipeline tests (push) Successful in 2m20s
Tests / frontend lib tests (push) Successful in 2m18s
Tests / bridge tests (push) Successful in 2m20s
2026-06-12 18:06:04 +01:00
José Alves dc5e7808e3 docs(env): document ERROR_REPORTING vars for bridge (BIT-25023)
Tests / writer-pipeline tests (push) Successful in 3m30s
Tests / bridge tests (push) Successful in 2m18s
Tests / frontend lib tests (push) Successful in 2m17s
Tests / writer-pipeline tests (pull_request) Successful in 2m49s
Tests / bridge tests (pull_request) Successful in 3m56s
Tests / frontend lib tests (pull_request) Successful in 2m57s
Paperclip-Issue: BIT-25023
Paperclip-Run: f1482381-ca8c-43d6-889f-effd16f8a314
2026-06-12 11:06:53 +00:00
spark 6695e1d2c7 Merge pull request 'docs(deploy): add .env runtime preservation rules (BIT-25005)' (#17) from task/BIT-25008-env-preservation into main
Tests / writer-pipeline tests (push) Successful in 2m5s
Tests / bridge tests (push) Successful in 2m23s
Tests / frontend lib tests (push) Successful in 2m45s
docs(deploy): add .env runtime preservation rules (BIT-25005)
2026-06-11 17:21:00 +01:00
José Alves ea9a7ad5d9 docs(deploy): add .env runtime preservation rules (BIT-25005)
Tests / writer-pipeline tests (push) Successful in 3m9s
Tests / bridge tests (push) Successful in 3m9s
Tests / frontend lib tests (push) Successful in 3m26s
Tests / writer-pipeline tests (pull_request) Successful in 3m16s
Tests / bridge tests (pull_request) Successful in 1m48s
Tests / frontend lib tests (pull_request) Successful in 1m40s
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
2026-06-11 15:37:19 +00:00
spark 8a330be214 Merge pull request 'feat(writer-pipeline): FPA featured-image backfill + media:content ingestion — BIT-24384' (#16) from feat/BIT-24389-backfill-featured-fpa into main
Tests / writer-pipeline tests (push) Successful in 32s
Tests / bridge tests (push) Successful in 31s
Tests / frontend lib tests (push) Successful in 34s
2026-06-05 03:31:09 +01:00
José Alves e08840af18 feat(writer-pipeline): FPA featured-image backfill + media:content ingestion — BIT-24384
Tests / writer-pipeline tests (push) Successful in 31s
Tests / bridge tests (push) Successful in 32s
Tests / frontend lib tests (push) Successful in 34s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / bridge tests (pull_request) Successful in 32s
Tests / frontend lib tests (pull_request) Successful in 31s
- 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
2026-06-05 02:29:47 +00:00
spark fc1c9066b6 Merge pull request 'fix(docs): CT222 IP 10.10.50.140 → 10.10.50.204 static — BIT-24053' (#15) from fix/bit-24053-ct222-static-ip into main
Tests / writer-pipeline tests (push) Successful in 26s
Tests / bridge tests (push) Successful in 28s
Tests / frontend lib tests (push) Successful in 29s
2026-06-01 14:30:46 +01:00