From 10aced78b01ee2a7c2572cfa2fd3ff33381577fa Mon Sep 17 00:00:00 2001 From: Jack Levy Date: Sun, 1 Mar 2026 23:57:35 -0500 Subject: [PATCH] fix: remove Poll Now button from dashboard Admin-only actions belong in the admin panel, not the dashboard. Cleaned up dead imports and "Run a poll to populate" copy. Authored-By: Jack Levy Co-Authored-By: Claude Sonnet 4.6 --- frontend/app/page.tsx | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index ebc21a1..7d7b3cc 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -1,44 +1,23 @@ "use client"; -import { TrendingUp, BookOpen, Flame, RefreshCw } from "lucide-react"; +import { TrendingUp, BookOpen, Flame } from "lucide-react"; import Link from "next/link"; import { useDashboard } from "@/lib/hooks/useDashboard"; import { BillCard } from "@/components/shared/BillCard"; import { WelcomeBanner } from "@/components/shared/WelcomeBanner"; -import { adminAPI } from "@/lib/api"; -import { useState } from "react"; import { useAuthStore } from "@/stores/authStore"; export default function DashboardPage() { - const { data, isLoading, refetch } = useDashboard(); - const [polling, setPolling] = useState(false); + const { data, isLoading } = useDashboard(); const token = useAuthStore((s) => s.token); - const triggerPoll = async () => { - setPolling(true); - try { - await adminAPI.triggerPoll(); - setTimeout(() => { refetch(); setPolling(false); }, 3000); - } catch { setPolling(false); } - }; - return (
-
-
-

Dashboard

-

- Your personalized Congressional activity feed -

-
- +
+

Dashboard

+

+ Your personalized Congressional activity feed +

@@ -101,7 +80,7 @@ export default function DashboardPage() { {!data?.trending?.length ? (
- No trend data yet. Run a poll to populate. + No trend data yet.
) : (