From b1baf2fd10407db22b416ad7c34b6b4c25500ecf Mon Sep 17 00:00:00 2001 From: Local Administrator Date: Thu, 25 Jun 2026 14:15:39 +0000 Subject: [PATCH] Content Partners: match Broadcast Beat partner logos (bb schema + broadcastbeat advertisers) --- .gitignore | 4 +++- src/components/SponsorLogoStrip.tsx | 17 +++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 5211b43..818eadf 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,6 @@ jest-test-results.json .idea/ # Optional: if using TurboRepo or monorepo -turbo/ \ No newline at end of file +turbo/ +# Legacy WP uploads served from Supabase/CDN, not git +public/wp-content/uploads/ diff --git a/src/components/SponsorLogoStrip.tsx b/src/components/SponsorLogoStrip.tsx index 79a11ed..78694dc 100644 --- a/src/components/SponsorLogoStrip.tsx +++ b/src/components/SponsorLogoStrip.tsx @@ -7,19 +7,22 @@ type Sponsor = { logoUrl: string | null; }; +/** + * Content Partners strip — mirrors Broadcast Beat partner list (bb schema + + * broadcastbeat advertisers) so both RMP sites show the same logos. + */ async function fetchSponsors(): Promise { try { const adv = createAdminClient("adv"); const { data: ads } = await adv .from("active_advertisers_by_property") .select("company_name_lower") - .eq("property", "avbeat"); + .eq("property", "broadcastbeat"); const names = Array.from(new Set((ads || []).map((r: any) => String(r.company_name_lower)))); - const bb = createAdminClient(); + const bb = createAdminClient("bb"); const bySlug = new Map(); - // Layer 1 — currently active advertisers. if (names.length > 0) { const { data: dir } = await bb .from("tracked_companies") @@ -43,8 +46,6 @@ async function fetchSponsors(): Promise { } } - // Layer 2 — pinned content partners (directory.featured=true). These - // surface here whether or not they have an active ad campaign. const { data: pinned } = await bb .from("tracked_companies") .select("slug, company_name, logo_url") @@ -68,12 +69,12 @@ export default async function SponsorLogoStrip() { if (sponsors.length === 0) return null; return ( -
+
Content Partners -
+
Advertise → @@ -99,4 +100,4 @@ export default async function SponsorLogoStrip() {
); -} +} \ No newline at end of file