feat(feeds): deepen Polish (pl) news sources — PAP wire, Gazeta Wyborcza, OKO.press#3895
feat(feeds): deepen Polish (pl) news sources — PAP wire, Gazeta Wyborcza, OKO.press#3895zionappp-ui wants to merge 2 commits into
Conversation
…OKO.press + server parity
|
@zionappp-ui is attempting to deploy a commit to the World Monitor Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR deepens the Polish (
Confidence Score: 4/5Safe to merge; the core feed additions and allowlist updates are correct and consistent across all config locations. The new sources are wired correctly end-to-end: direct-RSS domains added to all three allowlist files, Google News feeds need no allowlist entry, server and client feed arrays both updated. The two minor gaps — three parity-fixed feeds still missing from SOURCE_TYPES, and an editor-induced Unicode escape conversion on unrelated accented entries — are non-blocking but leave the codebase slightly less consistent than before. shared/source-tiers.json and scripts/shared/source-tiers.json for the Unicode escape side-effect; src/config/feeds.ts for the missing SOURCE_TYPES entries on TVN24, Polsat News, and Rzeczpospolita. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Client: src/config/feeds.ts\nFULL_FEEDS europe block] -->|rss proxy URL| B[RSS Proxy\napi/_rss-allowed-domains.js\nvite.config.ts]
A -->|source name| C[SOURCE_TYPES\ngetSourceType]
A -->|source name| D[source-tiers.json\ngetSourceTier]
E[Server: _feeds.ts\nVARIANT_FEEDS.full.europe] -->|direct or gnLocale URL| F[Server-side fetch\nno proxy needed]
B -->|www.pap.pl ✅| G[PAP direct RSS]
B -->|wiadomosci.onet.pl ✅| H[Onet direct RSS]
B -->|news.google.com ✅ existing| I[Wyborcza / Polityka /\nOKO.press / TVP Info\nvia Google News]
C -->|PAP → wire ✅| J[Analysis Worker]
C -->|OKO.press → intel ✅| J
C -->|TVN24 → other ⚠️ missing| J
C -->|Polsat News → other ⚠️ missing| J
C -->|Rzeczpospolita → other ⚠️ missing| J
D -->|PAP tier 1 ✅| K[Source Tier Scoring]
D -->|Gazeta Wyborcza tier 1 ✅| K
Reviews (1): Last reviewed commit: "feat(feeds): deepen Polish (pl) sources ..." | Re-trigger Greptile |
| "Yonhap News": 2, | ||
| "Chosun Ilbo": 2, | ||
| "El País": 2, | ||
| "El Pa\u00eds": 2, |
There was a problem hiding this comment.
Unintentional Unicode escape conversion on existing entries
Three pre-existing entries with accented characters — El País, Híradó, and La Silla Vacía — were rewritten from their native UTF-8 form to JSON Unicode escapes (\u00ed, \u00f3, \u00ed). The same change appears in scripts/shared/source-tiers.json. Both representations parse identically, but the diff noise suggests this was a side-effect of the editor or tool used to append the new entries. If any code does string-literal comparison against the raw JSON bytes rather than the parsed value, this would silently break those checks.
| // Polish (PL) additions | ||
| 'PAP': 'wire', 'Gazeta Wyborcza': 'mainstream', 'Polityka': 'mainstream', 'Onet': 'mainstream', 'OKO.press': 'intel', 'TVP Info': 'mainstream', |
There was a problem hiding this comment.
Pre-existing
TVN24, Polsat News, Rzeczpospolita still absent from SOURCE_TYPES
The server-parity fix adds these three feeds to _feeds.ts, but they remain missing from SOURCE_TYPES in this file. getSourceType() falls back to 'other' for any key not found in the map (line 103), so the analysis worker classifies all three as 'other' rather than 'mainstream'. Since this PR explicitly touches the Polish source set and SOURCE_TYPES, it's a natural place to close this gap alongside the six new entries.
…p Unicode escape noise from source-tiers
What this adds
Deepens the Polish (`pl`) locale with 6 new sources and fixes server/client parity for the 3 existing feeds (TVN24, Polsat News, Rzeczpospolita were in `src/config/feeds.ts` but missing from `server/worldmonitor/news/v1/_feeds.ts`).
New sources (6 feeds, all verified live)
Server parity fix
TVN24, Polsat News, Rzeczpospolita were in the client config but absent from the server digest — added to both.
PAP is Poland's national wire agency. OKO.press is Poland's leading fact-checking and investigative outlet.