From 4c0ba5574334b06f0817dfb92dc3203816c61488 Mon Sep 17 00:00:00 2001 From: migration-tooling Date: Sat, 16 May 2026 00:54:53 +0000 Subject: [PATCH] Use real article authors (remove Staff Reporter): removed mock staticArticles + changed fallback to Broadcast Beat --- src/app/authors/[slug]/page.tsx | 2 +- src/app/home-page/components/ArticleFeed.tsx | 184 +------------------ src/app/news/NewsPageClient.tsx | 2 +- src/app/search/page.tsx | 2 +- src/app/show-coverage/[slug]/page.tsx | 4 +- src/components/FeaturedBentoFromDb.tsx | 2 +- src/components/FeaturedCarouselServer.tsx | 4 +- src/lib/articles/legacy-source.ts | 6 +- 8 files changed, 12 insertions(+), 194 deletions(-) diff --git a/src/app/authors/[slug]/page.tsx b/src/app/authors/[slug]/page.tsx index fefab85..b9da8c1 100644 --- a/src/app/authors/[slug]/page.tsx +++ b/src/app/authors/[slug]/page.tsx @@ -38,7 +38,7 @@ interface AuthorArticle { const authors: Record = { "staff-reporter": { slug: "staff-reporter", - name: "Staff Reporter", + name: "Broadcast Beat", title: "Broadcast Beat Editorial Team", avatar: "https://img.rocket.new/generatedImages/rocket_gen_img_1aa16f5c7-1766559876206.png", coverImage: "https://img.rocket.new/generatedImages/rocket_gen_img_1aa16f5c7-1766559876206.png", diff --git a/src/app/home-page/components/ArticleFeed.tsx b/src/app/home-page/components/ArticleFeed.tsx index 1d5c119..4bda80a 100644 --- a/src/app/home-page/components/ArticleFeed.tsx +++ b/src/app/home-page/components/ArticleFeed.tsx @@ -20,188 +20,6 @@ interface ArticleItem { externalUrl?: string; } -const staticArticles: ArticleItem[] = [ - { - title: "Telestream Expands Its Cloud Services with the Introduction of UP", - excerpt: "New cloud-native platform extends Telestream Cloud Services to support Global Ingest, automation, review, and real-time monitoring across hybrid and distributed production environments.", - category: "BROADCAST", - date: "March 11, 2026", - author: "Staff Reporter", - authorSlug: "staff-reporter", - slug: "telestream-expands-cloud-services-up", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_11ff3d2ff-1773287949660.png", - alt: "Cloud services infrastructure for broadcast production environments", - source: "live" - }, - { - title: "Operative Launches AOS Configuration for Digital-First Monetization", - excerpt: "Enterprise-grade intelligent ad management built to scale digital-first revenue across every channel — from linear to streaming and everything in between.", - category: "BROADCAST", - date: "March 11, 2026", - author: "James Whitfield", - authorSlug: "james-whitfield", - slug: "operative-launches-aos-configuration", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1805d1575-1773287951103.png", - alt: "Digital monetization analytics dashboard for broadcast advertising", - source: "live" - }, - { - title: "Calrec Redefines Broadcast Workflows at NAB 2026 with its Most Powerful Audio Lineup Yet", - excerpt: "The broadcast industry is going through a rapid evolution that's signalling a more collaborative and location-independent future for live production.", - category: "BROADCAST", - date: "March 10, 2026", - author: "Sarah Chen", - authorSlug: "sarah-chen", - slug: "calrec-redefines-broadcast-workflows-nab-2026", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_10468e182-1773287953747.png", - alt: "Calrec audio mixing console for broadcast production at NAB 2026", - source: "live" - }, - { - title: "Ease Live Powers Interactive Premier Padel Experiences on Red Bull TV as Viewership Surges 30%", - excerpt: "Real-time fan engagement enhances viewing and accelerates growth of the world's fastest-growing racket sport across digital broadcast platforms.", - category: "BROADCAST", - date: "March 10, 2026", - author: "Marcus Rivera", - authorSlug: "marcus-rivera", - slug: "ease-live-premier-padel-red-bull-tv", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1747232a3-1773287951222.png", - alt: "Interactive sports broadcast experience on streaming platform", - source: "live" - }, - { - title: "From Metadata to Meaning: Why Semantic Intelligence Is Media's Next Competitive Advantage", - excerpt: "Strategic conversations about content performance and audience intelligence are shifting the way media organizations approach their metadata strategies.", - category: "FEATURED", - date: "March 9, 2026", - author: "Elena Vasquez", - authorSlug: "elena-vasquez", - slug: "from-metadata-to-meaning-semantic-intelligence", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1c523ae5f-1773287954372.png", - alt: "Media metadata intelligence and content analytics visualization", - source: "live" - }, - { - title: "Mediagenix Title Management Accelerates Content Monetization Through Advanced Semantic Intelligence", - excerpt: "Advancing Semantic Intelligence capabilities to help studios and networks unlock greater value from their content libraries and distribution pipelines.", - category: "POST PRODUCTION", - date: "March 9, 2026", - author: "David Park", - authorSlug: "staff-reporter", - slug: "mediagenix-title-management", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_19f6e3fe6-1769744394519.png", - alt: "Content management system for media title management and monetization", - source: "live" - }, - { - title: "Emergent Launches Fusion: The 'Interactive Anything' Platform Transforming Data-Driven Storytelling", - excerpt: "No-code application builder designed to transform complex live data into immersive interactive storytelling experiences for broadcasters and enterprises.", - category: "BROADCAST", - date: "March 8, 2026", - author: "Staff Reporter", - authorSlug: "staff-reporter", - slug: "emergent-launches-fusion-platform", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_188669b2b-1773287951738.png", - alt: "Interactive data storytelling platform for broadcast and enterprise use", - source: "live" - }, - { - title: "KOKUSAI DENKI Electric America Welcomes Mondae Hott as Regional Sales Manager, Northeast", - excerpt: "Industry veteran joins the team to drive growth across the northeastern United States broadcast market.", - category: "BROADCAST", - date: "March 8, 2026", - author: "Lisa Thompson", - authorSlug: "staff-reporter", - slug: "kokusai-denki-mondae-hott", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1b072efa4-1772991129883.png", - alt: "Professional broadcast industry executive portrait in office setting", - source: "live" - }, - { - title: "Matrox Video Enables the Next Era of Software-Defined Media Production at NAB 2026", - excerpt: "New solutions demonstrated at NAB 2026 showcase how software-defined workflows are reshaping the economics and flexibility of professional media production.", - category: "BROADCAST", - date: "March 7, 2026", - author: "Carlos Mendez", - authorSlug: "staff-reporter", - slug: "matrox-video-software-defined-nab-2026", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_17266f6cf-1773287953058.png", - alt: "Matrox video production hardware and software at NAB 2026 exhibition", - source: "live" - }, - { - title: "GlobalM Introduces Distributed Video Gateway Architecture, Advancing Scalable Live IP Transport", - excerpt: "New distributed architecture addresses the growing demand for scalable, resilient live IP transport solutions in modern broadcast infrastructure.", - category: "BROADCAST", - date: "March 7, 2026", - author: "Staff Reporter", - authorSlug: "staff-reporter", - slug: "globalm-distributed-video-gateway", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1876db6da-1773287949606.png", - alt: "Network infrastructure for distributed video gateway IP transport system", - source: "live" - }, - { - title: "Video is King: 2026 Iconik Media Stats Report Finds Video Consumes 64% of Storage Needs", - excerpt: "Annual media statistics report reveals video's growing dominance in enterprise storage requirements, with implications for media asset management strategies.", - category: "FEATURED", - date: "March 6, 2026", - author: "Rachel Kim", - authorSlug: "rachel-kim", - slug: "video-is-king-2026-iconik-media-stats", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_140568f68-1773287953452.png", - alt: "Video storage statistics and media asset management data visualization", - source: "live" - }, - { - title: "QuickLink's Latest StudioEdge Models to Make North American Debut at NAB 2026", - excerpt: "New StudioEdge models bring enhanced remote production capabilities and simplified IP workflows to North American broadcast professionals.", - category: "BROADCAST", - date: "March 6, 2026", - author: "Tom Bradley", - authorSlug: "staff-reporter", - slug: "quicklink-studioedge-nab-2026", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_19c4ba922-1773287953682.png", - alt: "QuickLink StudioEdge broadcast production equipment at NAB exhibition", - source: "live" - }, - { - title: "Cost Savings, Scalability, and Smarter Monetization: Viaccess-Orca Brings Efficiency to NAB 2026", - excerpt: "Purpose-driven solutions designed to help broadcasters reduce operational costs while improving content monetization across all distribution channels.", - category: "BROADCAST", - date: "March 5, 2026", - author: "Staff Reporter", - authorSlug: "staff-reporter", - slug: "viaccess-orca-nab-2026", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_12c71bf4d-1768883320639.png", - alt: "Broadcast technology monetization solutions at NAB Show 2026", - source: "live" - }, - { - title: "Digital Alert Systems Unveils Version 6 Software for DASDEC-III Platforms", - excerpt: "Major software update brings enhanced EAS capabilities, improved user interface, and expanded integration options for emergency alerting systems.", - category: "BROADCAST", - date: "March 5, 2026", - author: "Nina Okafor", - authorSlug: "staff-reporter", - slug: "digital-alert-systems-dasdec-iii-v6", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_116c1855d-1773287954967.png", - alt: "Emergency alert system DASDEC-III platform software interface", - source: "live" - }, - { - title: "Utah Scientific Expands Technology Partner Program With Integrations From Audinate, Bitfocus, and Skaarhoj", - excerpt: "New partnerships extend the ecosystem of compatible solutions for Utah Scientific routing and control systems in professional broadcast facilities.", - category: "BROADCAST", - date: "March 4, 2026", - author: "Staff Reporter", - authorSlug: "staff-reporter", - slug: "utah-scientific-partner-program", - image: "https://img.rocket.new/generatedImages/rocket_gen_img_1ea12f02f-1768375990494.png", - alt: "Broadcast routing and control system technology partner integration", - source: "live" - } -]; const ALL_CATEGORIES = ["All", "BROADCAST", "FEATURED", "POST PRODUCTION", "ANIMATION"]; @@ -292,7 +110,7 @@ export default function ArticleFeed() { }; // Merge: interleave imported posts with static (imported first by recency, then static) - const allArticles: ArticleItem[] = [...wpPosts, ...staticArticles]; + const allArticles: ArticleItem[] = [...wpPosts]; const uniqueAuthors = getUniqueAuthors(allArticles); diff --git a/src/app/news/NewsPageClient.tsx b/src/app/news/NewsPageClient.tsx index da4252f..ee85210 100644 --- a/src/app/news/NewsPageClient.tsx +++ b/src/app/news/NewsPageClient.tsx @@ -275,7 +275,7 @@ export default function NewsPage({ articles }: { articles: Article[] }) {

{article.excerpt || ""}

- By {article.author || "Staff Reporter"} + By {article.author || "Broadcast Beat"} · {article.readTime || ""}
diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 8c76e15..79954bc 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -84,7 +84,7 @@ export default async function SearchPage({ searchParams }: SearchPageProps) { {article.excerpt || ""}

- By {article.author || "Staff Reporter"} + By {article.author || "Broadcast Beat"} · {article.readTime || ""}
diff --git a/src/app/show-coverage/[slug]/page.tsx b/src/app/show-coverage/[slug]/page.tsx index 3dd173e..5a6fbd4 100644 --- a/src/app/show-coverage/[slug]/page.tsx +++ b/src/app/show-coverage/[slug]/page.tsx @@ -78,7 +78,7 @@ async function fetchArticles(refs: ArticleRef[]): Promise { excerpt: r.excerpt || "", image: null, date: r.published_at || r.created_at, - author: Array.isArray(r.persona) ? r.persona[0]?.name || "Staff Reporter" : r.persona?.name || "Staff Reporter", + author: Array.isArray(r.persona) ? r.persona[0]?.name || "Broadcast Beat" : r.persona?.name || "Broadcast Beat", source_table: "ai_rewritten", }); } @@ -96,7 +96,7 @@ async function fetchArticles(refs: ArticleRef[]): Promise { excerpt: r.excerpt || "", image: r.featured_image, date: r.wp_published_at, - author: r.author_name || "Staff Reporter", + author: r.author_name || "Broadcast Beat", source_table: "wp_imported", }); } diff --git a/src/components/FeaturedBentoFromDb.tsx b/src/components/FeaturedBentoFromDb.tsx index 360d25e..b74d434 100644 --- a/src/components/FeaturedBentoFromDb.tsx +++ b/src/components/FeaturedBentoFromDb.tsx @@ -104,7 +104,7 @@ export default async function FeaturedBento() {

)}
- {hero.author_name || "Staff Reporter"} + {hero.author_name || "Broadcast Beat"} · {ago(hero.wp_published_at)} diff --git a/src/components/FeaturedCarouselServer.tsx b/src/components/FeaturedCarouselServer.tsx index 3947713..f56d05f 100644 --- a/src/components/FeaturedCarouselServer.tsx +++ b/src/components/FeaturedCarouselServer.tsx @@ -54,7 +54,7 @@ export default async function FeaturedCarouselServer() { for (const r of (ai.data || []) as any[]) { const persona = Array.isArray(r.persona) ? r.persona[0] : r.persona; - const author = persona?.name || "Staff Reporter"; + const author = persona?.name || "Broadcast Beat"; slides.push({ id: r.id, slug: r.slug, @@ -74,7 +74,7 @@ export default async function FeaturedCarouselServer() { for (const r of (wp.data || []) as any[]) { const image = r.featured_image ? rewriteLegacyImageUrl(r.featured_image) : null; - const author = r.author_name || "Staff Reporter"; + const author = r.author_name || "Broadcast Beat"; slides.push({ id: String(r.wp_id), slug: r.wp_slug, diff --git a/src/lib/articles/legacy-source.ts b/src/lib/articles/legacy-source.ts index 0471a13..ea18d5c 100644 --- a/src/lib/articles/legacy-source.ts +++ b/src/lib/articles/legacy-source.ts @@ -112,7 +112,7 @@ function rowToArticle(row: ImportedPostRow, section: Section = "news"): Article ? rewriteLegacyImageUrl(row.featured_image) : FALLBACK_IMAGE; const content = rewriteLegacyImageUrlsInHtml(row.content || ""); - const author = row.author_name || "Staff Reporter"; + const author = row.author_name || "Broadcast Beat"; return { slug: row.wp_slug, section, @@ -145,7 +145,7 @@ function inferSectionFromCategory(cat: string | null): Section { function rewriteRowToArticle(row: RewriteRow, sectionOverride?: Section): Article { const sortedPublishedAt = row.published_at || row.created_at; const persona = Array.isArray(row.persona) ? row.persona[0] || null : row.persona || null; - const author = persona?.name || "Staff Reporter"; + const author = persona?.name || "Broadcast Beat"; const personaSlug = persona?.slug || "staff-reporter"; const avatar = persona?.avatar_url || FALLBACK_IMAGE; return { @@ -157,7 +157,7 @@ function rewriteRowToArticle(row: RewriteRow, sectionOverride?: Section): Articl date: formatDate(sortedPublishedAt), author, authorSlug: personaSlug, - authorTitle: persona?.beat ? humanBeat(persona.beat) : "Staff Reporter", + authorTitle: persona?.beat ? humanBeat(persona.beat) : "Broadcast Beat", authorAvatar: avatar, image: REWRITE_FALLBACK_IMAGE, alt: row.title,