diff --git a/.replit b/.replit index a942ce2..d2b4742 100644 --- a/.replit +++ b/.replit @@ -26,10 +26,6 @@ externalPort = 3002 localPort = 35385 externalPort = 6800 -[[ports]] -localPort = 35573 -externalPort = 8000 - [[ports]] localPort = 37431 externalPort = 5000 diff --git a/client/src/components/calendar-view.tsx b/client/src/components/calendar-view.tsx index 1292da5..5a1c5fb 100644 --- a/client/src/components/calendar-view.tsx +++ b/client/src/components/calendar-view.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { Button } from "@/components/ui/button"; -import { ChevronLeft, ChevronRight, Calendar as CalendarIcon, Trash2, Edit } from "lucide-react"; +import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; +import { ChevronLeft, ChevronRight, Calendar as CalendarIcon, Trash2, Edit, MoreHorizontal } from "lucide-react"; import { useQuery, useMutation } from "@tanstack/react-query"; import { useToast } from "@/hooks/use-toast"; import { apiRequest, queryClient } from "@/lib/queryClient"; @@ -57,7 +58,11 @@ export default function CalendarView() { return (scheduledPosts || []).filter(post => { if (!post.scheduledAt) return false; const postDate = new Date(post.scheduledAt); - return postDate.toDateString() === date.toDateString(); + + // Compare using local date components to avoid timezone issues + return postDate.getFullYear() === date.getFullYear() && + postDate.getMonth() === date.getMonth() && + postDate.getDate() === date.getDate(); }); }; @@ -246,9 +251,74 @@ export default function CalendarView() { ); })} {postsForDay.length > 2 && ( -