From 42028946a98d656571a9b4b2b507f59cc37bc7b3 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:55:23 +0200 Subject: [PATCH] fix: remove dead predexon feed, hide feeds tab when empty --- src/app/prediction-markets/page.tsx | 4 ++-- src/app/products/[slug]/page.tsx | 3 +-- src/components/pm-hub-tabs.tsx | 18 ++++++++++-------- src/lib/pm-stats.ts | 3 ++- src/lib/pm-venue-context.ts | 7 ------- 5 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/app/prediction-markets/page.tsx b/src/app/prediction-markets/page.tsx index 3e8953db..408af976 100644 --- a/src/app/prediction-markets/page.tsx +++ b/src/app/prediction-markets/page.tsx @@ -193,8 +193,8 @@ export default async function PredictionMarketsHubPage() { tip="Median of per venue p50 latency on the warm price endpoint, trailing 24h." /> 0 ? ` + ${cohort.dataFeeds.length}` : ""}`} /> diff --git a/src/app/products/[slug]/page.tsx b/src/app/products/[slug]/page.tsx index f1abb55d..68d7d089 100644 --- a/src/app/products/[slug]/page.tsx +++ b/src/app/products/[slug]/page.tsx @@ -579,8 +579,7 @@ export default async function ProviderPage({ p.slug === "polymarket" || p.slug === "kalshi" || p.slug === "limitless" || - p.slug === "myriad" || - p.slug === "predexon" + p.slug === "myriad" ) && ( <> · diff --git a/src/components/pm-hub-tabs.tsx b/src/components/pm-hub-tabs.tsx index e4752e36..414345a1 100644 --- a/src/components/pm-hub-tabs.tsx +++ b/src/components/pm-hub-tabs.tsx @@ -39,17 +39,19 @@ export function PmHubTabs({ cohort }: { cohort: PmCohortSummary }) { > Venues - setTab("feeds")} - count={feedsCount} - > - Data feeds - + {feedsCount > 0 && ( + setTab("feeds")} + count={feedsCount} + > + Data feeds + + )} {tab === "venues" && } - {tab === "feeds" && } + {tab === "feeds" && feedsCount > 0 && } ); } diff --git a/src/lib/pm-stats.ts b/src/lib/pm-stats.ts index c59f4a8c..bfaff899 100644 --- a/src/lib/pm-stats.ts +++ b/src/lib/pm-stats.ts @@ -81,7 +81,8 @@ const PM_VENUES: VenueSeed[] = [ ]; const PM_DATA_FEEDS: DataFeedSeed[] = [ - { slug: "predexon", name: "Predexon", coverage: ["polymarket", "kalshi", "limitless"], isReference: false }, + // Predexon was tracked via pm-data-freshness (retired 2026-07). Re-add + // when a replacement freshness harness ships. ]; function promUrl(): string | null { diff --git a/src/lib/pm-venue-context.ts b/src/lib/pm-venue-context.ts index a3d061c5..575363e0 100644 --- a/src/lib/pm-venue-context.ts +++ b/src/lib/pm-venue-context.ts @@ -25,15 +25,8 @@ export const PM_VENUE_META: Record myriad: { url: "https://myriad.markets", chainLabel: "Abstract L2" }, }; -// Logo paths come from the central manifest (`src/lib/logo-manifest.ts`) -// so a slug whose file extension changes (e.g. predexon.svg → predexon.png) -// only needs the manifest edit, not a parallel update here. The previous -// shape hardcoded ".png" for slugs whose actual asset was ".svg" and the -// header in PmDataFeedSection rendered a broken-image glyph for codex, -// mobula, and predexon. export const PM_FEED_META: Record = { "polymarket-clob": { url: "https://polymarket.com" }, - predexon: { url: "https://predexon.com" }, }; export type PmVenueContext = {