Commit Graph

7 Commits

Author SHA1 Message Date
Ryan Salazar
3334d11597 remove visible publication dates from articles (keep JSON-LD for SEO)
Drops the rendered date span from:
- ArticleFeed.tsx (homepage feed)
- news/page.tsx (news list — also drops the orphan separator)
- news/[slug]/NewsArticleDetailClient.tsx (article header + related-articles row, drops paired separators)
- AISuggestedArticles.tsx (sidebar — keeps readTime alone)

JSON-LD datePublished/publishedTime in news/[slug]/page.tsx and
articles/[slug]/page.tsx is unchanged so search engines still see the
publication date.
2026-05-08 00:18:12 +00:00
Ryan Salazar
eabe31f911 temporarily hide SpotlightCarousel (old stories) 2026-05-08 00:11:19 +00:00
Ryan Salazar
ef1921ca7c add legacy image rewrite helper
src/lib/legacy-image.ts exports rewriteLegacyImageUrl(url) and
rewriteLegacyImageUrlsInHtml(html) which translate WP origin URLs
(https://www.broadcastbeat.com/wp-content/uploads/...) to local paths
under /legacy/... served from the new persistent storage volume mounted
at /app/public/legacy/.

src/lib/legacy-image-map.json holds 3,856 URL→path entries built in
Phase 2: 3,839 featured images (mostly converted to webp, q=85) plus
27 ad creatives plus the site logo.

Use this helper at server-render time when emitting <img>/<Image> for
imported WP articles, so the 707 MB on-host cache replaces external
fetches to the origin.
2026-05-08 00:04:34 +00:00
Ryan Salazar
0d51dade6e Revert "hide admin nav links unless user has admin role"
This reverts commit 92a256bbe0.
2026-05-07 22:50:35 +00:00
Ryan Salazar
92a256bbe0 hide admin nav links unless user has admin role
Header was rendering all admin links unconditionally to every visitor
(including unauthenticated). Add an isAdmin state derived from
user_profiles.role (administrator|admin|super_admin) and wrap both the
desktop admin block and the mobile WP Import link in the guard.

Note: page-level auth checks on each /admin/* route remain authoritative;
this only suppresses menu visibility.
2026-05-07 22:25:33 +00:00
Ryan Salazar
7f63cf64fb force node provider in nixpacks (skip deno detection from supabase/functions/*.ts) 2026-05-07 17:00:42 +00:00
Ryan Salazar
70aa1ad46e initial commit: rocket.new export of broadcastbeat 2026-05-07 16:39:17 +00:00