Skip to content
← Latest updates

Updates: April 2026 (part 2 of 2)

What shipped on Dope Vibes in April 2026 (part 2 of 2).

Room Analytics, Game Minimize, Race Fix, UI Animations

April 8, 2026

  • Room selection analytics: backend now tracks solo/buddy/group mode selections. New modes counter in /admin/status endpoint.
  • Admin console: Room Selection card added to monitor dashboard — shows per-mode counts with percentage bars and totals.
  • Health alert emails now include Room Selection breakdown table (buddy/group/solo counts).
  • Game minimize: new ‘‒’ button on game overlay lets you minimize to a floating pill — access TV, radio, and chat mid-game. Game state preserved (component stays mounted via opacity toggle).
  • Virtual Sesh race condition fixed: two users picking group mode simultaneously no longer create separate solo rooms. New becomeSoloRoom() function auto-merges if another solo room exists.
  • becomeSoloRoom extracted as single source of truth — eliminates duplicated solo room creation logic in joinQueueMulti and joinQueueMultiSkip.
  • Double-fire prevention: socket not added to upgradeableSessions until after merge check passes.
  • Periodic cleanup expanded: buddyQueue and upgradeableSessions now pruned every 30s (removes entries from disconnected sockets).
  • approveJoin hardened: filters to live partners (connected + valid session) instead of failing entirely if any partner dropped during vote window.
  • Self-kick blocked: kick_vote_start now rejects targetId === socket.id.
  • Self-flag blocked: flag handler rejects if resolved partnerId is the reporter.
  • Video memory leak fixed: VideoBox now clears srcObject on unmount/stream change to release MediaStream references.
  • UI fluidity overhaul: added fadeIn, scaleIn, slideUp, slideDown keyframes to Tailwind config. All modals and overlays now animate in smoothly.
  • Animated components: age gate, vibes picker, mode selection, game overlay, ModalStack (vote/invite/error/stream key), kick vote toast, post-sesh prompt.

SEO Canonical Fix, Rate Limit Alert Overhaul

April 8, 2026

  • Fixed sitemap/canonical mismatch: next-sitemap siteUrl changed from theweedvlog.com to www.theweedvlog.com to match metadataBase.
  • Fixed root canonical tag applied to all pages: removed global alternates from layout.tsx. Homepage extracted to server component (app/page.tsx) with its own canonical. Client code moved to app/HomePage.tsx.
  • Added page-specific canonical tags to 6 public pages missing them: community-guidelines, privacy, terms, updates, vibes/gamers, vibes/night-owls.
  • Rate limit alert counter now time-windowed: resets every hour instead of accumulating since server start. Alert thresholds raised to 200 (yellow) / 1000 (red) to account for normal WebRTC ICE churn.
  • Rate limit blocked events now tracked per event type (blockedByEvent) — /admin/status shows breakdown so webrtc_ice (normal) vs join_queue (suspicious) are distinguishable.

Security Hardening, Code Refactor, 2K Channels, Growth Features

April 6, 2026

  • 6-pass security audit: hostname validation, HMAC full 256-bit, admin auth timing attack, CSP tightened, rate limit memory cleanup, email regex hardened, CVE patches (socket.io, path-to-regexp).
  • Pen test (14/15 passed): CORS, CSP, auth bypass, SSRF, XSS, path traversal, rate limiting all verified. Load test: zero errors under sustained load.
  • Code refactor: page.tsx 1,527 → 746 lines (-51%). Extracted VideoGrid, ControlBar, ChatPanel, ModalStack. New useChatSession orchestration hook. Instagram streaming extracted to useInstagramStream.
  • Server disconnect handler split into 4 scoped cleanup callbacks (streams, flags, votes, rooms).
  • Growth features: post-sesh modal (30% chance, links to forum + anonymous push opt-in), queue wait prompt (60s → 'ping me when someone joins' via web-push).
  • 1,750 English IPTV channels added from iptv-org/iptv. TV Guide popup with search, grouped channels, live/dead indicators, and paginated loading.
  • Instagram Live audio fixed: added audioBitsPerSecond to MediaRecorder. FFmpeg upgraded to stereo AAC at 128kbps.
  • Instagram stream now survives mode switches (solo → group). Only full leave kills the stream.
  • Per-partner mute button: hover any video tile to mute/unmute that person locally.
  • Solo grid layout fixed: camera fills full width when alone. Grid uses total tile count (people + TV) for column decisions.
  • iPhone TV volume fixed: AudioContext GainNode auto-created on first unmute (iOS ignores video.volume).
  • 4th-person room crash fixed: race condition in addPartner where onOffer overwrites PC during iceReady await.
  • Ghost socket fixed: pass_host now verifies target socket is still connected.
  • Hydration error fixed: localStorage reads moved from useState initializers to useEffect.
  • Audio output switching restored after component extraction. Per-element setSinkId on all video/audio tags.
  • Dense IPTV packing: no more Off Air filler channels. CH 420 (CLN) and CH 710 (Ask Chad GL) reserved at exact slots.

Multi-Cam Fixes, Instagram 9:16, Security Audits & Solo Room Flow

April 5, 2026

  • Group sesh: first person to join now becomes the room — next person connects directly with no queue wait or vote.
  • Solo rooms auto-approve joins instantly (skip 10s vote for 1-person rooms).
  • Fixed multi-cam join delay: eliminated SDP glare by having existing partners initiate toward joiner — no more double-offer rollback.
  • Parallelized WebRTC offer creation in startCall with Promise.all for faster 3-way queue matches.
  • Fixed floating connections: added removePartner() to close specific peer connections immediately when a partner leaves a group session.
  • Fixed stuck 'Connecting...' status: set status to 'waiting' on socket connect before server responds.
  • Socket transport order changed to polling-first — websocket-first was causing delays behind proxies/firewalls.
  • Instagram Live stream reframed to 9:16 portrait via canvas — tab capture rendered onto 720×1280 canvas at 30fps with centered letterbox.
  • FFmpeg video filter updated to scale+pad 720×1280 as server-side safety net for Instagram's vertical format.
  • TV (RoomTV) HLS error recovery: fatal errors now get one retry (recoverMediaError or full reload) before showing 'No Signal'.
  • TV static overlay now waits for actual 'playing' event instead of a blind timer — no more black screen gap between static and stream.
  • CSP: removed fragile SCRIPT_SRC_PLACEHOLDER string matching — buildCSP(nonce) constructs directives directly.
  • JSON-LD: escaped < as \u003c in dangerouslySetInnerHTML to prevent script breakout.
  • Chat message sanitization: removed server-side HTML encoding (React JSX handles escaping).
  • Security audit: fixed SSRF in /stream-proxy (port validation was inverted, allowing port 5432).
  • Security audit: kick vote now verifies voter has active session with target.
  • Security audit: auto-ban checks isBanned() before banIP() to prevent race with concurrent flags.
  • Security audit: joinQueueMulti recursion capped at 10 excluded keys to prevent queue pollution.
  • Security audit: game events reject objects nested >5 levels deep.
  • Security audit: private room host transferred on disconnect instead of deleting room.
  • Security audit: stream handoff re-checks s.ended after feeder selection to prevent race.
  • Security audit: join_room snapshots connected partners atomically.
  • Security audit: kick vote voters changed from Array to Set for O(1) lookups.
  • Security audit: stream proxy rejects non-alphanumeric hostnames (blocks hex/octal IP bypass).
  • Security audit: lift-ban IPv4 regex validates 0–255 octets.
  • Security audit: OG image URLs reject path traversal (..) patterns.
  • Leaderboard token cleanup: periodic 30s prune + hard cap at 2000 entries.
  • FFmpeg: SIGKILL escalation after 5s if SIGTERM ignored — prevents zombie processes.
  • FFmpeg: backpressure fix — cleanup always resumes socket (was stalling forever on FFmpeg crash).
  • FFmpeg: stderr.resume() prevents backpressure buildup.
  • ICE candidate buffer capped at 100 per partner to prevent memory leak.
  • Data channel geo messages validated for expected keys only.
  • Email validation upgraded from @ check to proper user@domain.tld regex.
  • Metrics event type map capped at 100 entries.
  • Service worker retries navigation once after 1.5s before showing offline page.
  • Camera fallback: cameraUnavailable state exposed to UI with 'Audio only' badge.
  • Stable refs for addPartner/removePartner in useEffects to prevent stale closures.

Code Audit: Security, Performance & Cleanup

April 4, 2026

  • Removed 'unsafe-eval' from CSP script-src — tighter content security policy.
  • Fixed session key signature truncation vulnerability — length check before timing-safe comparison.
  • Added SSRF protection: radio and clip URLs now blocked from targeting private/internal IPs.
  • Room codes now use crypto.randomBytes instead of Math.random for cryptographic safety.
  • Geo lookup no longer falls back to untrusted client data when server lookup fails.
  • Added error boundaries to chat, forum, forum post, and admin monitor routes.
  • Added aria-labels to TV remote controls, theme toggle, and volume buttons for accessibility.
  • Added Cache-Control headers to leaderboard API (s-maxage=30, stale-while-revalidate).
  • Capped TV channel index validation from 5000 to 710 to match actual channel count.
  • Extracted inline arrays (How It Works, Day Ones, Social Proof, Vibes, Footer) to module-scope constants — eliminates re-creation on every render.
  • Memoized StockTicker TickerContent component with React.memo.
  • Exposed connectionError state from useChat so UI can show socket failures.
  • Improved GameEvent type: now requires a type field.
  • Screen share 'ended' event listener uses { once: true } to prevent memory leaks.
  • Stripped dead code: removed unused request_join_live socket handler, unused VIBES export, unused Tailwind marquee/ticker animations.
  • Supabase env vars now fail hard on missing instead of silently using empty strings.
  • Added AbortSignal.timeout to 7 unguarded fetch calls: TURN credentials, radio-browser, ip-api, metered, suggestion submit, leaderboard token and win submission.

Sprite Maggots, Security Audit #4 & Refactor

April 3, 2026

  • Major Maggots: replaced canvas-drawn maggots with Metal Slug sprite sheet — crawl animation, sprite-based explosions, and death remnant sprites.
  • Player color tinting via offscreen canvas compositing — each player's maggots have a distinct color overlay on the sprite.
  • Maggot sprites auto-flip based on screen position (left half faces right, right half faces left).
  • Damage shown as red tint overlay + blood droplets on sprites, scaling with HP loss.
  • Fixed z-index hierarchy across all overlays: z-30 toasts, z-40 settings, z-50 game, z-60 critical modals — game overlay no longer hidden behind popups.
  • Extracted shared Modal component for join-request, invite, and room-error overlays — removed triple-pasted wrapper divs.
  • Major Maggots refactored: replaced 11 individual state-mirror refs with single game state ref (gs.current) as single source of truth for the animation loop.
  • Synced setter pattern eliminates dual update paths — React state and game ref always agree.
  • Removed callback ref pattern — game functions read gs.current directly, event handler lists them as proper dependencies.
  • Fixed impact timer leak: cleanup on component unmount prevents orphaned setTimeout calls.
  • Removed dead code: projectile state (never read), blinkTint (unused after sprite work).
  • Extracted seededRandom utility, input validators (isFin, isValidWeapon, isValidPhysics), and drawing helpers (drawMaggot, drawProjectile, drawExplosion).
  • Added bounds checking on angle (0–180) and power (10–100) in event handler to reject out-of-range values.
  • Chat page fixes: fixed stale sendGeo closure via ref, merged duplicate game event watchers, removed manual DOM setSinkId (components handle it), extracted game list constants, consistent socket.id null guards.
  • Geo fetch failures now logged instead of silently swallowed.
  • Security audit #4: session keys now HMAC-SHA256 signed to prevent forged room joins.
  • Push notification URL validated to http/https only — blocks javascript: and data: scheme injection.
  • OG meta parser regex hardened against ReDoS with bounded quantifiers.
  • Backend: pendingJoinRequests cleaned on disconnect, privateRooms capped at 1000, WebRTC payloads capped at 64KB.
  • ipGeoCache eviction replaced O(n) sort with O(1) FIFO using Map insertion order.
  • Startup warning if ADMIN_SECRET env var is not set.
  • Fixed multiplayer desync: projectile going off-screen now sends end_turn event to all players instead of advancing locally only.
  • Fixed stale sendGeo closure in commitName — was using captured function instead of ref.
  • Game type runtime validation added before casting — prevents invalid game_start events from setting bad state.
  • HMAC signature comparison hardened: padded buffer to fixed length before timingSafeEqual to prevent timing-based length leaks.
  • Nonce-based CSP: every request generates a unique nonce via middleware — unsafe-inline fully removed from script-src.
  • All scripts (Next.js chunks, hydration, JSON-LD, service worker, Google Analytics) receive per-request nonce automatically.
  • CSP moved from static next.config.mjs headers to dynamic middleware.ts for per-request nonce generation.
  • State serialization for Major Maggots and Ka-Blam: each end-of-turn sends a state hash, receiving client compares and requests full resync if mismatched.
  • Desync recovery: request_sync triggers a full state snapshot (maggots/tanks, terrain, turn, wind, winner) from the authoritative client.
  • Ka-Blam: fixed silent turn advance on projectile miss — now sends end_turn event to all players.
  • Ka-Blam: impact-based turn advance now also sends state hash for desync detection.
  • Leaderboard: game winners can enter their name (up to 20 chars) after winning Ka-Blam or Major Maggots.
  • Landing page leaderboard section with tabbed view — shows top 10 winners per game with rank, name, player count, and date.
  • New game_wins Supabase table with RLS — public read, server-only write via API route.
  • Leaderboard API: GET /api/leaderboard (fetch top 20), POST /api/leaderboard (submit win, rate-limited to 5/min per IP).
  • Leaderboard hardened: win submissions require HMAC-signed single-use token (60s expiry) — prevents casual API abuse and replay attacks.
  • Server-side winner name validation: alphanumeric + safe chars only, varchar(20) DB constraint.
  • Leaderboard token buffer truncation fix: exact 16-char signature length enforced before comparison.
  • Error feedback: submit shows 'Failed to save' on error instead of false success. Leaderboard shows 'Couldn’t load' on fetch failure.
  • Angle range extended to 0–180 degrees for both Ka-Blam and Major Maggots (was 5–85).
  • Extracted shared hooks: useGameSounds (fire + impact audio) and useLeaderboard (token fetch, name submission, reset) — eliminates duplication between both games.
  • Fixed 3-user WebRTC: server now designates which existing user creates the offer when a 3rd person joins — prevents dual-offer race condition that broke video connections.
  • ICE candidate rate limit raised from 80 to 120 for 3+ user sessions to handle extra signaling volume.
  • IPTV overhaul: replaced external GitHub playlist fetching with curated local channel list (498 verified working streams across 29 categories).
  • Reserved channels: CH 420 = CLN (Cannabis Legalization News), CH 710 = Ask Chad GL.
  • Fixed TV sync desync: removed client-side channel array padding that caused different channel indices between host and partner.
  • CH 420 and CH 710 auto-update from YouTube RSS — latest video IDs fetched every 30 min, no manual updates needed.
  • Fixed channel numbering: array padded to 710 entries at build time so channel numbers match what users see in the TV.
  • Removed dead youtube-feed API route (replaced by IPTV route).
  • Security: upgraded 39 HTTP stream URLs to HTTPS to prevent mixed content blocking.
  • YouTube videoId validation: must be exactly 11 alphanumeric chars. Title sanitized and capped at 200 chars.
  • Removed CDN cache on IPTV route — was serving stale channel list after deploys.

Game Settings, Tank Movement & Impact Sound

April 3, 2026

  • Ka-Blam & Major Maggots: host now picks bullet physics before the game starts — Original (falls off screen), Wrap Around, or Bounce (bounces off walls).
  • Ka-Blam: tanks can now move left and right with a 60-unit move budget per turn.
  • Non-host players see a waiting screen until the host starts the game.
  • Physics mode displayed in-game status and preserved across rematches.
  • Explosion impact sound effect added to both Ka-Blam and Major Maggots — plays on every bullet landing.
  • Security check: all game event fields validated as finite numbers before use, no raw user strings rendered as HTML, audio files loaded from same-origin /public only.

Security Audit, Live Streaming, Ka-Blam & Fixes

April 2, 2026

  • Full security audit: timing-safe admin secret comparison using crypto.timingSafeEqual — prevents timing attacks on admin auth.
  • Admin auth now header-only (x-admin-secret) — removed request body fallback that could leak secrets in logs.
  • HSTS header added: enforces HTTPS with max-age=31536000.
  • Permissions-Policy header added: restricts camera and microphone to same-origin, blocks geolocation abuse.
  • CSP frame-ancestors 'none' added — replaces deprecated X-Frame-Options for clickjacking protection.
  • IP validation on /admin/lift-ban: rejects malformed IP addresses before querying the database.
  • HTML email escaping hardened: single-quote now escaped to prevent attribute-context injection.
  • CSP connect-src scoped wss: to Railway server only — WebSocket connections restricted to the backend.
  • IPTV channel filter loosened: accepts all valid HTTP/HTTPS stream URLs instead of only .m3u8 — picks up ~6% more channels.
  • RoomTV native video fallback: non-HLS streams now fall back to native <video> playback instead of silently failing.
  • Radio and TV playback restored: CSP media-src and connect-src corrected to allow external IPTV streams and radio-browser.info.
  • Radio station names now visible: fixed text color inheritance in portaled overlay — names were black-on-dark due to rendering outside the app's color context.
  • RoomTV channel switch cleanup: video now pauses, clears source, and removes event listeners on every channel change — prevents audio leaks from previous channels.
  • Solo Go Live now works: added searching state with visual feedback — button hides and status switches to 'Finding match' after clicking.
  • Solo Go Live pecking order: tries 1-on-1 match first, falls back to group queue if no partner available — new solo_live server mode.
  • Group session connection fix: pruned stale (disconnected) socket IDs from room membership before capacity checks and session creation.
  • Private room host failover: if the original room host disconnects, the next connected member is automatically promoted.
  • startCall effect dependency fix: now watches partnerIds alongside status — prevents missed WebRTC connections when state updates arrive in separate render cycles.
  • Vote-to-join failure handling: all partners now notified when approveJoin fails due to stale sessions, instead of silently re-queuing the requester.
  • Session picker tagline: added 'It's 4:20 Somewhere' below the session type selection.
  • Health alert false positives fixed: external service error rate alerts now require minimum 5 requests before triggering — no more red alerts from startup noise.
  • ip-api geo lookups fixed: switched from HTTPS to HTTP — free tier returns 403 on HTTPS. This was causing 50% error rates on location labels.
  • TURN credential race condition fixed: WebRTC peer connections now await TURN server fetch before creating — prevents cross-region calls from using stale fallback TURN servers.
  • Ka-Blam (Scorched Earth tribute): rewritten for 2–5 players with unique colors, turn rotation, aim direction toggle, and last-tank-standing win condition. Now available in Virtual Sesh.
  • WebRTC rate limits raised for multi-party mesh: ICE candidates 30→80/10s, offers/answers 20→40/10s — 3-person mesh was hitting old limits and dropping connections on phones.
  • Rate limit alert thresholds tuned: red at 500 (was 50), yellow at 100 (was 10) — WebRTC setup legitimately generates high signaling volume.
  • Security audit #2: clipUrl and radio URL now validated to HTTP(S) only, isSafeUrl uses URL parser instead of string checks, WebRTC data channel messages capped at 2KB, YouTube/TikTok embed IDs format-validated.
  • Removed dead openrelay.metered.ca TURN fallbacks — reduces paid TURN usage by preventing unnecessary relay when direct connections would work.
  • Ka-Blam barrel now follows angle slider in real-time. Projectiles wrap around the map horizontally instead of being a miss.
  • Live streaming via Livepeer: 📡 button in room pushes host camera/mic to Livepeer via WHIP. Viewers watch at /live with HLS playback. Also supports OBS via RTMP stream key.
  • /live page: browse active live streams, Go Live button generates stream key + RTMP URL for OBS setup, auto-refreshing stream grid.
  • iOS tile drag fix: long press threshold raised to 600ms, touch-none only applied during active drag, finger movement cancels long press to allow scrolling.
  • TV channel name overlay auto-hides after 3 seconds on mobile — no longer covers video content permanently.
  • Geo label fix: city names from Vercel headers now URL-decoded (Las%20Cruces → Las Cruces).
  • TV channel sync fix: server channel index cap raised from 999 to 5000 — padded channel list for CH 420/710 was exceeding the old limit, silently breaking group sync.
  • Stop Camera button removed from control bar (redundant).
  • Major Maggots: new Worms-style game — 2–5 players, 3 maggots each, walk around terrain, two weapons (Poop Catapult and Manure Bomb), 30-second turn timer, destructible terrain, wind.
  • Major Maggots damage phases: healthy → minor cuts (green blink) → deep cuts with blood (yellow blink) → critical with blood loss (red blink) → death explosion with gore splatter and x_x skull remains.
  • Ka-Blam renamed from Mortar Maggot. Custom tank fire sound effect added.
  • Custom vote notification sound: plays your recording when someone requests to join the room.
  • 📡 Stream key button in room: generates Livepeer RTMP URL + stream key for OBS broadcasting. Popup with copy buttons.
  • Security audit #3: removed unprotected stream DELETE endpoint, flag handler now accepts targetId for multi-cam rooms, game event type validation prevents NaN/Infinity crashes.
  • Code review cleanup: fixed user crash in stream API, added stream list caching, moved render-phase setState to useEffect, reuse ImageData in TV static, iOS drag uses stored coordinates.
  • Game sync fix: game_start event type cast was missing Ka-Blam, Major Maggots, and Trap Star — partner's game wouldn't open.

Security Audit & Framework Upgrade

April 1, 2026

  • Next.js upgraded from 14 to 15.5.14 — resolves 4 high-severity CVEs (image optimizer DoS, HTTP smuggling, RSC deserialization, disk cache growth).
  • npm audit now reports zero vulnerabilities — patched brace-expansion, flatted, picomatch, socket.io-parser, glob, and eslint-config-next.
  • Hardcoded Railway server URLs replaced with NEXT_PUBLIC_SERVER_URL environment variable across 5 files.
  • Supabase getSupabase() no longer falls back to anon key — requires SUPABASE_SERVICE_ROLE_KEY, preventing privilege escalation.
  • Server ban race condition fixed — isBanned() now awaited before registering socket event handlers.
  • Vote kick no longer auto-bans on first report — requires 3 unique reporters, consistent with flag handler.
  • All async socket handlers (join_queue, join_room, kick_submit, flag, appeal) wrapped in try-catch.
  • banIP() and liftBan() now have internal error handling — Supabase failures no longer crash callers.
  • Admin secret removed from query params — now header-only (x-admin-secret), no longer leaks in URLs/logs.
  • Admin secret storage moved from localStorage to sessionStorage — clears when tab closes.
  • Rate limiting added to push-notify (10/user/min) and suggestions (3/IP/hour) API routes.
  • CSP hardened: removed 'unsafe-eval' from script-src.
  • ReDoS fixes: non-greedy regex in OG meta tag parser and message sanitization.
  • SSRF protection strengthened: blocks IPv6, 0.0.0.0/8, 240+/4 reserved ranges, validates IPv4 octets.
  • Session keys in /live-rooms endpoint now base64-encoded — no longer exposes raw socket IDs.
  • Lock check bypass fixed in request_join_live — uses sorted key to match upgradeableSessions.
  • IP geolocation switched from HTTP to HTTPS, with response status checks on ip-api and TURN fetches.
  • IP geo cache now has LRU eviction when exceeding 5,000 entries.
  • useChat stale closure fixed — vibes/mode now use refs so socket handlers read latest values.
  • RSS news feed now extracts article links (were always empty) with title length cap at 500 chars.
  • Internal <a> tags replaced with Next.js <Link> components across all pages.
  • Node engine requirement lowered from >=22 to >=20 to match current runtime.

Security, SEO & Code Quality Hardening

April 1, 2026

  • Supabase RLS enabled on forum_posts and forum_replies tables with full CRUD policies — database-level access control now enforced.
  • Google OAuth age gate bypass fixed — OAuth users without a DOB on file are now caught and routed through the age verification flow before accessing the forum.
  • GA4 cleanup: removed 4 Vercel preview domains from cross-domain config, added vercel.app to unwanted referrals list.
  • Sitemap fixed: corrected siteUrl from www to non-www, now generates 21 URLs. Submitted to Google Search Console.
  • Google Search Console: removed duplicate www sitemap, requested indexing for 8 key routes.
  • Trap Star UI reverted to modern dark Tailwind interface per user feedback — all extra scenarios and police sirens preserved.
  • New shared API utilities (app/lib/api-utils.ts): extracted getSupabase() and authenticateRequest() used by 4 API routes — eliminated ~70 lines of duplicate code.
  • New useSupabase() hook (app/hooks/useSupabase.ts): centralizes Supabase client + auth state with onAuthStateChange listener. Replaced scattered getSession() calls across forum pages.
  • Deduplicated RadioStation interface — single source of truth in useChat.ts.
  • Removed 9 debug console.log/warn statements from client-side hooks and components.
  • Added ARIA labels to FlagButton, SuggestionBox close button, and VibesBar tag remove buttons.
  • Added .gitattributes to enforce LF line endings — eliminates CRLF warnings on Windows.
  • useClipUpload.ts simplified: removed redundant Supabase client creation, now uses shared instance.

Code Cleanup & Best Practices

April 1, 2026

  • Google Analytics switched from raw script injection (dangerouslySetInnerHTML) to @next/third-parties GoogleAnalytics component — safer, faster, and auto-optimized by Next.js.
  • Brand color palette centralized in tailwind.config.ts — bg-brand-dark, bg-brand-darker, bg-brand-forest, border-brand-gold, bg-brand-crimson replace 20+ hardcoded hex values across 19 files.
  • FAQ brand consistency: "TouchGrass" references in two questions corrected to "Dope Vibes" to match site-wide branding.
  • Reusable ContactLink component extracted in privacy, terms, and community guidelines — 11 duplicate "suggestion box" links now share one source of truth.
  • Reusable FeatureItem component extracted on How It Works — 5 repeated icon-label-description blocks consolidated into one component.
  • Landing page CTA updated: "Into The Weeds" renamed to "Become The Plug (click me)".