feat: PocketVeto v1.0.0 — initial public release

Self-hosted US Congress monitoring platform with AI policy briefs,
bill/member/topic follows, ntfy + RSS + email notifications,
alignment scoring, collections, and draft-letter generator.

Authored by: Jack Levy
This commit is contained in:
Jack Levy
2026-03-15 01:35:01 -04:00
commit 4c86a5b9ca
150 changed files with 19859 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { useQuery } from "@tanstack/react-query";
import { dashboardAPI } from "../api";
import { useAuthStore } from "@/stores/authStore";
export function useDashboard() {
const token = useAuthStore((s) => s.token);
return useQuery({
queryKey: ["dashboard", !!token],
queryFn: () => dashboardAPI.get(),
staleTime: 2 * 60 * 1000,
refetchInterval: 5 * 60 * 1000,
});
}